id: springboot-trace

info:
  name: Detect Springboot Trace Actuator
  author: that_juan_,dwisiswant0,wdahlenb
  severity: low
  description: View recent HTTP requests and responses
  metadata:
    max-request: 1
  tags: misconfig,springboot,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/trace"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"timestamp"'
          - '"info"'
          - '"method"'
          - '"path"'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"
          - "application/vnd.spring-boot.actuator"
          - "application/vnd.spring-boot.actuator.v1+json"
          - "application/vnd.spring-boot.actuator.v2+json"
          - "application/vnd.spring-boot.actuator.v3+json"
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a0047304502204b982a2c4ac1d5f92211021f1c1ad6d6ea28d9a8396330bfd46f33c9de9faac0022100f2e029c2f7081951cc6a5fe026cc7850bca5ffa208feea78b81230f4de15c2d1:922c64590222798bb761d5b6d8e72950