30 lines
626 B
YAML
30 lines
626 B
YAML
|
id: git-logs-exposure
|
||
|
|
||
|
info:
|
||
|
name: Git Logs Disclosure
|
||
|
author: NullFuzz
|
||
|
severity: Info
|
||
|
description: Searches Git Logs files and passed URLs.
|
||
|
tags: logs,git,exposure
|
||
|
|
||
|
requests:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}/.git/logs/HEAD"
|
||
|
- "{{BaseURL}}/.git/logs/refs"
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: dsl
|
||
|
dsl:
|
||
|
- "!contains(tolower(body), '<html')"
|
||
|
- "!contains(tolower(body), '<body')"
|
||
|
- type: word
|
||
|
part: header
|
||
|
words:
|
||
|
- "application/octet-stream"
|
||
|
condition: and
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 200
|