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


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
- Go to the /pages/settings page.
- Change a string parameter to an array.
- Submit the form.
- 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.