beta version reveals paths, environment variables and partially files contents
The beta version of a website displayed detailed error pages when a form was submitted with an invalid CSRF token. An attacker could view file paths, source code, and environment variables.
- Fixed in under an hour
- Disclosed after 17 hours
Hi guys! You should disable error reporting on beta version. It reveals lot of information and even files contents.
How to reproduce:
- Navigate to http://beta.apitest.io/newsletter, modify csrf-token "_token" to any data.
- input something to "email" and "name" fields.
- submit the form.
As result you will be redirected to exception page with list of files, source code and environment variables. Please take a look at screenshot.
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 beta version had error reporting enabled, which displayed detailed exception pages to users.
Impact
An attacker could learn internal file paths, source code, and environment variables, which might help in further attacks.
What the attacker needed
Access to the beta site
How it was found
- Go to the newsletter page on the beta site.
- Change the CSRF token to any value.
- Enter something in the email and name fields.
- Submit the form.
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 has a bug, it sometimes shows a detailed error page. This page can accidentally reveal private information about how the site is built, like file locations and secret settings. Here, the beta site did that, so anyone who triggered an error could see those secrets.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.