Lab: Information disclosure on debug page
Summary: PortSwigger's Web Security Academy lab presents an application with a debug page that discloses sensitive information, including the SECRET_KEY environment variable. The solution path runs from an HTML comment on the home page linking to /cgi-bin/phpinfo.php, found via Burp's Find comments engagement tool, to sending that request in Repeater and reading the exposed variable.
What you should know: The exposure here is a single environment variable sitting on a reachable phpinfo.php page, found through a comment left in production HTML - the kind of leftover that turns one forgotten debug endpoint into a disclosed secret.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026