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,vuln

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: 4b0a00483046022100b26b09960c76bcade01924784ac4508bb23d5c925254a5c64ad17f589350c7ef022100afd64dbacaccc16c2d8de1d6dd998089a1228aea1fdbb3985357d700a4e75517:922c64590222798bb761d5b6d8e72950