Skip to content
Info disclosure Disclosed report Beginner

Full Path Disclosure (2)

The import feature accepted a URL instead of a file, and when an invalid XML was fetched, a PHP notice revealed the full server path of the application. An attacker could use this path information to learn the server's directory structure and potentially aid further attacks.

siddiki Follow

Originally disclosed on HackerOne

  • Fixed in 13 hours
  • Disclosed after 16 hours

During the import of an XML file,I edited the "file" to "url" for importing XML's through URL.So it became:

HTML
<input id="importFileXML" class="form-control" type="url" name="importFileXML"></input>

And then I tried to import a random XML file.I tried with this: http://www.swarthmore.edu/libraries.xml It was not a valid XML file.And after the importing it showed the following error which discloses full path of the application.

Text
Notice: Undefined index: importFileXML in /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/index.php on line 421 

The original report as published on HackerOne, by siddiki. 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 suppress PHP notices and did not validate the input field name, so an undefined index error exposed the absolute file path.

Impact

The error message could reveal the server's absolute path, which may assist an attacker in further exploitation.

What the attacker needed

Access to the import feature

How it was found

  1. Change the import field from file to URL.
  2. Submit a URL pointing to an invalid XML file.
  3. Observe the error message containing the full server 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.

A website sometimes shows error messages that include the full folder path on the server. This is called a full path disclosure. It helps an attacker learn where files are stored, which can make other attacks easier.

What is Info disclosure?

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

More by siddiki

View all

18 more disclosed reports, best first.

More from Localize

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.