id: http-trace

info:
  name: HTTP TRACE method enabled
  author: nodauf
  severity: info
  reference:
    - https://www.blackhillsinfosec.com/three-minutes-with-the-http-trace-method/
  metadata:
    max-request: 2
  tags: miscellaneous,misc,generic

http:
  - method: TRACE
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        name: trace-request
        part: body
        words:
          - "TRACE / HTTP"

  - method: OPTIONS
    path:
      - "{{BaseURL}}"

    matchers:
      - type: regex
        name: options-request
        part: header
        regex:
          - "(?i)Allow: [A-Z,]*TRACE"
# digest: 490a0046304402200c190cfe7dd0f08cec4fa5c4b27210104dc25fcb764b67ecf81f590a8d6683cb02207a0b0f61a22f0d8ec1de9c222c04e0c3a66e217904c301693cb1ba11f3601e4f:922c64590222798bb761d5b6d8e72950