2022-08-10 02:18:12 +00:00
|
|
|
id: pre-commit-config
|
|
|
|
|
|
|
|
info:
|
2023-02-22 21:15:22 +00:00
|
|
|
name: Pre-commit Configuration File - Detect
|
2022-08-10 02:18:12 +00:00
|
|
|
author: DhiyaneshDk
|
2023-03-02 20:58:29 +00:00
|
|
|
severity: info
|
2023-02-22 21:15:22 +00:00
|
|
|
description: Pre-commit configuration file was detected.
|
2023-03-02 20:58:29 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
|
|
|
|
cvss-score: 0.0
|
|
|
|
cwe-id: CWE-200
|
|
|
|
reference: https://pre-commit.com/
|
2022-08-10 02:18:12 +00:00
|
|
|
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:"
|
2022-08-10 05:28:07 +00:00
|
|
|
condition: and
|
2022-08-10 02:18:12 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-02-22 21:15:22 +00:00
|
|
|
|
|
|
|
# Enhanced by md on 2023/02/22
|