2021-07-21 05:49:35 +00:00
|
|
|
id: git-credentials-disclosure
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Git Credentials Disclosure
|
|
|
|
author: dhiyaneshDk
|
|
|
|
severity: medium
|
|
|
|
reference: https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/git-credentials-disclosure.json
|
|
|
|
tags: exposure,config
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.git-credentials"
|
2021-07-23 04:14:54 +00:00
|
|
|
|
2021-07-21 05:49:35 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2021-07-23 19:00:53 +00:00
|
|
|
|
2021-07-21 05:49:35 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
2021-07-23 19:00:53 +00:00
|
|
|
- "https://"
|
|
|
|
- "@github.com"
|
|
|
|
condition: and
|
|
|
|
|
2021-07-21 05:49:35 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2021-07-23 19:00:53 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "text/html"
|
|
|
|
negative: true
|