Skip to content
Info disclosure Disclosed report Beginner

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.

uyga Follow

Originally disclosed on HackerOne

  • 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:

  1. Navigate to http://beta.apitest.io/newsletter, modify csrf-token "_token" to any data.
  2. input something to "email" and "name" fields.
  3. 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

Screenshot_at_Apr_11_17-48-52.png
Screenshot_at_Apr_11_17-48-52.png From the original on HackerOne

The original report as published on HackerOne, by uyga. 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 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

  1. Go to the newsletter page on the beta site.
  2. Change the CSRF token to any value.
  3. Enter something in the email and name fields.
  4. 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.

More from APITest.IO

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.