id: readme-md

info:
  name: README.md file disclosure
  author: ambassify
  severity: info
  description: Internal documentation file often used in projects which can contain sensitive information.
  metadata:
    max-request: 1
    shodan-query: html:"README.MD"
  tags: exposure,markdown,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/README.md"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "#"
          - "##"
        condition: or

      - type: word
        part: header
        words:
          - "text/markdown"
          - "text/plain"
        condition: or

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