id: git-exposure

info:
  name: Git Metadata Directory Exposure
  author: tess
  severity: medium
  description: Git Metadata Directory exposed.
  metadata:
    verified: true
    max-request: 1
  tags: logs,git,exposure

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "403 Forbidden"
          - "You do not have permission to access /.git/"
        condition: and

      - type: status
        status:
          - 403
# digest: 4a0a004730450221008ae3d369c70db8d26d0d54e90bb5b6ede0ef1c351608ad85e5acbffc5a44ffe702206b5ffb7b29e01e5c885b9d4baa547fbfa33348ac94391468d16e9d57869015ca:922c64590222798bb761d5b6d8e72950