Merge pull request #9825 from NaN-KL/main

Correct False Positive Result from `server-status-localhost.yaml` and rename it to `apache-server-status-localhost.yaml`
patch-4
Dhiyaneshwaran 2024-06-13 13:46:01 +05:30 committed by GitHub
commit 8199773688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 51 additions and 36 deletions

View File

@ -0,0 +1,51 @@
id: apache-server-status-localhost
info:
name: Server Status Disclosure
author: pdteam,geeknik,NaN-kl
severity: low
description: |
Apache Server Status page is exposed, which may contain information about pages visited by the users, their IPs or sensitive information such as session tokens.
metadata:
max-request: 2
tags: apache,debug,misconfig
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}/server-status"
matchers:
- type: status
status:
- 403
- 404
- 401
condition: or
internal: true
- method: GET
path:
- "{{BaseURL}}/server-status"
headers:
Forwarded: 127.0.0.1
X-Client-IP: 127.0.0.1
X-Forwarded-By: 127.0.0.1
X-Forwarded-For: 127.0.0.1
X-Forwarded-For-IP: 127.0.0.1
X-Forwarded-Host: 127.0.0.1
X-Host: 127.0.0.1
X-Originating-IP: 127.0.0.1
X-Remote-Addr: 127.0.0.1
X-Remote-IP: 127.0.0.1
X-True-IP: 127.0.0.1
matchers:
- type: word
words:
- "Apache Server Status"
- "Server Version"
condition: and

View File

@ -1,36 +0,0 @@
id: server-status-localhost
info:
name: Server Status Disclosure
author: pdteam,geeknik
severity: low
description: Apache Server Status page is exposed, which may contain information about pages visited by the users, their IPs or sensitive information such as session tokens.
metadata:
max-request: 1
tags: apache,debug,misconfig
http:
- method: GET
headers:
Forwarded: "127.0.0.1"
X-Client-IP: "127.0.0.1"
X-Forwarded-By: "127.0.0.1"
X-Forwarded-For: "127.0.0.1"
X-Forwarded-For-IP: "127.0.0.1"
X-Forwarded-Host: "127.0.0.1"
X-Host: "127.0.0.1"
X-Originating-IP: "127.0.0.1"
X-Remote-Addr: "127.0.0.1"
X-Remote-IP: "127.0.0.1"
X-True-IP: "127.0.0.1"
path:
- "{{BaseURL}}/server-status"
matchers:
- type: word
words:
- "Apache Server Status"
- "Server Version"
condition: and
# digest: 4a0a00473045022100978e79f5293059d77d7f12996faeb5e7327979bbdc03480dfaa632ce3692895002201fd20b313ef4e49782dca03918a3d53e057bdec80e366451c875c462b9992e8d:922c64590222798bb761d5b6d8e72950