git-credentials-disclosure: Git Credentials - Detect

日期: 2025-08-01 | 影响软件: Git Credentials | POC: 已公开

漏洞描述

Git credentials were detected.

PoC代码[已公开]

id: git-credentials-disclosure

info:
  name: Git Credentials - Detect
  author: dhiyaneshDk
  severity: medium
  description: Git credentials were detected.
  reference:
    - https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/git-credentials-disclosure.json
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: exposure,config,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "https://"
          - "@github.com"
        condition: and

      - type: status
        status:
          - 200

      - type: word
        part: header
        words:
          - "text/html"
        negative: true
# digest: 4a0a004730450221008470408b7022d96c229841e1c5dcd8070fedebfb566ef98255fe660fe615d1dd022077c50c596b2d728a246461841ecc4ca790386706f1d88b6360388d1bbcbdc252:922c64590222798bb761d5b6d8e72950