don't expose path of Python
The web application exposed the Python installation path in an error message when a URL containing three or more percent-encoded strings was requested. An attacker could use this information to learn about the server's internal file structure.
- Disclosed after 4 hours
Hello Team, While testing the web application I've found that if you enter the 3 or more strings including % then web application is exposing the path of Python in error.Application exposing path of Python in error when you enter the 3 or more strings including % .. if you only enter the 2 strings it will show you the 404 not found page
POC :
https://gratipay.com/%ff/ [3 strings]
Request is undecodable.(/app/.heroku/python/lib/python2.7/encodings/utf_8.py:16)
https://gratipay.com/%f/ [ 2 strings] - 404 Not Found
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application did not handle malformed percent-encoded input gracefully, causing an unhandled exception that included the Python file path in the error response.
Impact
The application could disclose the server's internal file path, which may aid an attacker in further exploitation.
What the attacker needed
None
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a website encounters an error, it sometimes shows a detailed message that includes the file path where the code lives. Here, sending a malformed URL with several percent signs caused the site to reveal the location of Python on the server. This helps an attacker understand the server's setup, which can be a step toward further attacks.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.