Apache Configuration File - Detect
ID: apache-config
Severity: medium
Author: sheikhrishad
Tags: config,exposure,apache
Description
Section titled “Description”Apache configuration file was detected.
YAML Source
Section titled “YAML Source”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: 4a0a00473045022028f4be2cdcb788e57db5922b73daf11a90e3512b6db5238d8cc97bbf7d829fe10221009a504247929bc3f9c4a8d4a896f0ecceb7bd68eda283a320389b48aa8aece76e:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”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.
$ nuclei -u "URL" -t "http/exposures/configs/apache-config.yaml"