Skip to content
Info disclosure Disclosed report Beginner

Unexpected array leaks information about the system

Sending an array instead of a string in POST parameters on the settings page caused a PHP warning that revealed the server's file path and internal function names. An attacker could use this information to learn about the server environment and plan further attacks.

melvin Follow

Originally disclosed on HackerOne

  • Fixed in 8 hours
  • Disclosed after 13 hours

By changing a string parameter on the /pages/settings page to an array (see example.png) and submitting the form, the page shows an error message leaking information about the server and functions used (see error.png). This works on multiple POST parameters.

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 85

Attachments

example.png
example.png From the original on HackerOne
error.png
error.png

The original report as published on HackerOne, by melvin. 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 POST parameters were strings before passing them to functions like trim(), so PHP emitted a warning with the full file path.

What the attacker needed

Access to the settings page

How it was found

  1. Go to the /pages/settings page.
  2. Change a string parameter to an array.
  3. Submit the form.
  4. Observe the error message leaking server information.

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 expects a single value but receives a list of values (an array), it can crash and show an error. This error message included the server's folder path and the name of the function that failed, which helps an attacker understand how the site is built.

What is Info disclosure?

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

More by melvin

View all

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