2022-01-07 08:32:29 +00:00
|
|
|
id: cgi-printenv
|
|
|
|
|
|
|
|
info:
|
2023-02-08 19:19:26 +00:00
|
|
|
name: Test CGI Script - Detect
|
2022-04-22 10:38:41 +00:00
|
|
|
author: emadshanab
|
2022-01-07 08:32:29 +00:00
|
|
|
severity: medium
|
2023-02-08 19:19:26 +00:00
|
|
|
description: Test CGI script was detected. Response page returned by this CGI script exposes a list of server environment variables.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://www.acunetix.com/vulnerabilities/web/test-cgi-script-leaking-environment-variables/
|
2023-02-08 19:19:26 +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
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: exposure,cgi
|
2022-01-07 08:32:29 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-01-07 08:32:29 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/cgi-bin/printenv.pl"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- 'MYSQL_HOME'
|
|
|
|
- 'OPENSSL_CONF'
|
|
|
|
- 'REMOTE_ADDR'
|
|
|
|
- 'SERVER_ADMIN'
|
|
|
|
- 'Environment Variables:'
|
|
|
|
condition: or
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2023-02-08 19:19:26 +00:00
|
|
|
- 200
|
2023-10-19 13:13:52 +00:00
|
|
|
# digest: 4a0a0047304502210095272ec2b88f4c79b9fdf8ec43643c53b5a7c348b8a88ed9a8cb1dfbb5fd7dcc02200991fb008f21a4292717d56f7966cd48158aaf0bdb6028acde2343c81517dcb2:922c64590222798bb761d5b6d8e72950
|