Skip to content

Pre-commit Configuration File - Detect

ID: pre-commit-config

Severity: info

Author: DhiyaneshDk

Tags: exposure,devops,config,cicd

Pre-commit configuration file was detected.

id: pre-commit-config
info:
name: Pre-commit Configuration File - Detect
author: DhiyaneshDk
severity: info
description: Pre-commit configuration file was detected.
reference: https://pre-commit.com/
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
cwe-id: CWE-200
metadata:
verified: true
max-request: 2
tags: exposure,devops,config,cicd
http:
- 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
# digest: 4a0a00473045022100d904036df050a83ed77a07fe0dcc8b7f6a49971cad9d15d16cfdbba6c934a14002201424a104894115c73cd12fee05cfc4d65b293b3717a845a0ce54026a3b320660:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/configs/pre-commit-config.yaml"

View on Github