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