31 lines
573 B
YAML
31 lines
573 B
YAML
id: pre-commit-config
|
|
|
|
info:
|
|
name: Pre Commit Configuration File Exposure
|
|
author: DhiyaneshDk
|
|
severity: low
|
|
metadata:
|
|
verified: true
|
|
tags: exposure,devops,config,cicd
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/.pre-commit-config.yaml"
|
|
- "{{BaseURL}}/pre-commit-config.yaml"
|
|
|
|
stop-at-first-match: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "repos:"
|
|
- "hooks:"
|
|
- "rev:"
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|