id: springboot-httptrace

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/httptrace"
      - "{{BaseURL}}/actuator/httptrace"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"traces"'
          - '"timestamp"'
          - '"principal"'
          - '"session"'
        condition: and

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

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