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.
- 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:
<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.
Notice: Undefined index: importFileXML in /var/www/vhosts/lvps178-77-99-228.dedicated.hosteurope.de/httpdocs_localize/index.php on line 421
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
- Change the import field from file to URL.
- Submit a URL pointing to an invalid XML file.
- 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.