2020-04-04 18:19:48 +00:00
|
|
|
id: git-config
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Git Config Disclosure
|
2021-01-10 14:15:36 +00:00
|
|
|
author: pd-team & pikpikcu
|
2020-04-04 18:19:48 +00:00
|
|
|
severity: medium
|
2020-07-15 08:10:17 +00:00
|
|
|
description: Searches for the pattern /.git/config on passed URLs.
|
2021-03-29 18:27:05 +00:00
|
|
|
tags: config,git
|
2020-04-04 18:19:48 +00:00
|
|
|
|
|
|
|
requests:
|
2020-09-02 07:18:50 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /.git/config HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
|
|
|
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
|
|
|
|
Accept-Language: en-US,en;q=0.5
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
Content-Length: 1
|
|
|
|
Connection: close
|
|
|
|
|
2020-10-27 18:56:58 +00:00
|
|
|
matchers-condition: and
|
2020-04-04 18:19:48 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
2020-10-11 09:32:03 +00:00
|
|
|
- "[core]"
|
|
|
|
|
2020-10-27 18:56:58 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'contains(tolower(body), "<html") == false && contains(tolower(body), "</body>") == false'
|