Skip to content
Info disclosure Disclosed report Beginner

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.

tbehroz Follow

Originally disclosed on HackerOne

Informational View original
  • 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

The original report as published on HackerOne, by tbehroz. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by tbehroz

View all

1 more disclosed report, best first.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.