Merge pull request #7783 from m4lwhere/git-config-creds
adding check for git credentials within configpatch-1
commit
aae07ce11c
|
@ -2,16 +2,16 @@ id: git-config
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: Git Configuration - Detect
|
name: Git Configuration - Detect
|
||||||
author: pdteam,pikpikcu,Mah3Sec_
|
author: pdteam,pikpikcu,Mah3Sec_,m4lwhere
|
||||||
severity: medium
|
severity: medium
|
||||||
description: Git configuration was detected via the pattern /.git/config and log file on passed URLs.
|
description: Git configuration was detected via the pattern /.git/config and log file on passed URLs.
|
||||||
classification:
|
classification:
|
||||||
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
|
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
|
cvss-score: 5.3
|
||||||
cwe-id: CWE-200
|
cwe-id: CWE-200
|
||||||
tags: config,git,exposure
|
|
||||||
metadata:
|
metadata:
|
||||||
max-request: 1
|
max-request: 1
|
||||||
|
tags: config,git,exposure
|
||||||
|
|
||||||
http:
|
http:
|
||||||
- method: GET
|
- method: GET
|
||||||
|
@ -21,8 +21,11 @@ http:
|
||||||
matchers-condition: and
|
matchers-condition: and
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: word
|
||||||
|
part: body
|
||||||
words:
|
words:
|
||||||
|
- "[credentials]"
|
||||||
- "[core]"
|
- "[core]"
|
||||||
|
condition: or
|
||||||
|
|
||||||
- type: dsl
|
- type: dsl
|
||||||
dsl:
|
dsl:
|
||||||
|
@ -33,3 +36,12 @@ http:
|
||||||
- type: status
|
- type: status
|
||||||
status:
|
status:
|
||||||
- 200
|
- 200
|
||||||
|
|
||||||
|
extractors:
|
||||||
|
- type: regex
|
||||||
|
part: body
|
||||||
|
group: 1
|
||||||
|
regex:
|
||||||
|
- "url ?= ?https?://(.*:.*)@"
|
||||||
|
- "AUTHORIZATION: basic (.*)"
|
||||||
|
- "pass = (.*)"
|
||||||
|
|
Loading…
Reference in New Issue