nuclei-templates/http/exposures/configs/apache-config.yaml

32 lines
1012 B
YAML

id: apache-config
info:
name: Apache Configuration File - Detect
author: sheikhrishad
severity: medium
description: Apache configuration file was detected.
remediation: Remove the configuration file from the web root.
reference:
- https://httpd.apache.org/docs/2.4/configuring.html
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.3
cwe-id: CWE-200
metadata:
max-request: 1
tags: config,exposure,apache
http:
- method: GET
path:
- "{{BaseURL}}/apache.conf"
matchers:
- type: dsl
dsl:
- "contains(body, '<Directory') && contains(body, '</Directory>') && status_code == 200"
- "contains(body, '<VirtualHost') && contains(body, '</VirtualHost>') && status_code == 200"
condition: or
# digest: 490a0046304402206ce734229f3fe43a990eca7a176878c7d0261f607053ff05f58dec53f2a9220e02206ec277b5d9894ac13f11a80a1ee029b011fda4db93b7e47cb4310cce1411c5f8:922c64590222798bb761d5b6d8e72950