Path Disclosure (Info Disclosure) in http://www.localize.io
The login form accepted array values for the username and password fields, causing a PHP warning that revealed the server's internal file path. An attacker could use this path information to learn about the server's directory structure and potentially aid further attacks.
Originally disclosed on HackerOne
- Fixed in 7 hours
- Disclosed after 10 hours
Hello, I found a information disclosure vulnerability. How to reproduce: GET : http://www.localize.io/ POST : sign_in[username][]=test&sign_in[password][]=test
The info from page is Warning: trim() expects parameter 1 to be string, array given in /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/index.php on line 732 Is disclosed the path of the site. Regards, Florin
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 validate that the username and password inputs were strings before passing them to the trim() function, and error display was enabled, exposing the file path.
Impact
The disclosed path could help an attacker understand the server's directory layout, but the report does not show any direct compromise.
What the attacker needed
None
How it was found
- Send a GET request to the site's homepage.
- Send a POST request to the sign-in endpoint with username and password fields as arrays instead of strings.
- Observe the PHP warning in the response that discloses the server file path.
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 asks for a username and password, it normally expects simple text. Here, the tester sent those fields as lists (arrays) instead of text, which confused the PHP code and made it print an error message. That error message included the full folder path on the server, which is information the site should not reveal.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.