2021-07-07 15:21:33 +00:00
|
|
|
id: git-config
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Git Config Disclosure
|
|
|
|
author: pdteam,pikpikcu,Mah3Sec_
|
|
|
|
severity: medium
|
|
|
|
description: Searches for the pattern /.git/config and log file on passed URLs.
|
|
|
|
tags: config,git,exposure
|
|
|
|
|
|
|
|
requests:
|
2021-07-29 13:17:15 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.git/config"
|
2021-07-07 15:21:33 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "[core]"
|
|
|
|
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "!contains(tolower(body), '<html')"
|
|
|
|
- "!contains(tolower(body), '<body')"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2021-07-29 13:17:15 +00:00
|
|
|
- 200
|