2021-07-07 15:21:33 +00:00
|
|
|
id: git-config
|
|
|
|
|
|
|
|
info:
|
2023-02-09 21:01:21 +00:00
|
|
|
name: Git Configuration - Detect
|
2023-07-31 08:23:31 +00:00
|
|
|
author: pdteam,pikpikcu,Mah3Sec_,m4lwhere
|
2021-07-07 15:21:33 +00:00
|
|
|
severity: medium
|
2023-02-09 21:01:21 +00:00
|
|
|
description: Git configuration was detected via the pattern /.git/config and log file on passed URLs.
|
|
|
|
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
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-07-31 08:23:31 +00:00
|
|
|
tags: config,git,exposure
|
2021-07-07 15:21:33 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
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
|
2023-07-31 08:23:31 +00:00
|
|
|
part: body
|
2021-07-07 15:21:33 +00:00
|
|
|
words:
|
2023-07-31 08:23:31 +00:00
|
|
|
- "[credentials]"
|
2021-07-07 15:21:33 +00:00
|
|
|
- "[core]"
|
2023-07-31 08:23:31 +00:00
|
|
|
condition: or
|
2021-07-07 15:21:33 +00:00
|
|
|
|
|
|
|
- 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
|
2023-07-31 08:23:31 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- "url ?= ?https?://(.*:.*)@"
|
|
|
|
- "AUTHORIZATION: basic (.*)"
|
|
|
|
- "pass = (.*)"
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a00483046022100868867eb2c914442ac8ea1e7eecdce5eea99a3fb45aba31948abb038e8d901490221008eec29dd0500c508866239e959ec9e52690d31892168289da3a56a40aca7c4fc:922c64590222798bb761d5b6d8e72950
|