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
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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
|