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
|
2022-01-07 08:32:29 +00:00
|
|
|
tags: exposure,generic,cgi
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
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
|
|
|
|
|
|
|
|
# Enhanced by md on 2023/02/08
|