Cyber Risks · PortSwigger Research

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