Skip to content

XAMPP Environment Variables Exposure

ID: xampp-environment-variables

Severity: low

Author: melbadry9,DhiyaneshDK

Tags: exposure,xampp,files

printenv.pl file is exposed in XAMPP leaking environment variables.

id: xampp-environment-variables
info:
name: XAMPP Environment Variables Exposure
author: melbadry9,DhiyaneshDK
severity: low
description: printenv.pl file is exposed in XAMPP leaking environment variables.
metadata:
max-request: 1
tags: exposure,xampp,files
http:
- method: GET
path:
- "{{BaseURL}}/cgi-bin/printenv.pl"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "<TITLE>Environment Variables</TITLE>"
- "Environment Variables:"
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200
# digest: 490a0046304402202900ddd4bc2327d3102b3d47b201f0f6c645a314612c72ed6df815803c62b91c022029b4b5caf913f1bd0ffe6d9fc2a884537a8bb5c2e9efbecc398a6713ae294a42:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/files/xampp-environment-variables.yaml"

View on Github