2021-04-26 07:50:34 +00:00
|
|
|
id: apache-config
|
|
|
|
|
|
|
|
info:
|
2023-02-08 18:12:01 +00:00
|
|
|
name: Apache Configuration File - Detect
|
2021-04-26 07:50:34 +00:00
|
|
|
author: sheikhrishad
|
2023-02-13 15:17:03 +00:00
|
|
|
severity: medium
|
2023-02-08 18:12:01 +00:00
|
|
|
description: Apache configuration file was detected.
|
2023-02-13 15:18:10 +00:00
|
|
|
remediation: Remove the configuration file from the web root.
|
2023-02-13 15:17:03 +00:00
|
|
|
reference:
|
|
|
|
- https://httpd.apache.org/docs/2.4/configuring.html
|
2023-02-13 15:18:10 +00:00
|
|
|
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
|
2021-04-26 07:50:34 +00:00
|
|
|
tags: config,exposure,apache
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2021-04-26 07:50:34 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-04-26 07:50:34 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/apache.conf"
|
2021-04-26 08:36:32 +00:00
|
|
|
|
2021-04-26 07:50:34 +00:00
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "contains(body, '<Directory') && contains(body, '</Directory>') && status_code == 200"
|
|
|
|
- "contains(body, '<VirtualHost') && contains(body, '</VirtualHost>') && status_code == 200"
|
2023-02-08 18:12:01 +00:00
|
|
|
condition: or
|
|
|
|
|
2023-02-13 15:17:03 +00:00
|
|
|
# Enhanced by cs on 2023/02/13
|