34 lines
628 B
YAML
34 lines
628 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
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/.git/logs/HEAD"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "!contains(tolower(body), '<html')"
|
|
- "!contains(tolower(body), '<body')"
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "application/octet-stream"
|
|
|
|
- type: regex
|
|
regex:
|
|
- '^([a-z0-9]+) '
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|