Skip to content
Info disclosure Write-up Beginner

Information Disclosure

JavaScript files exposed endpoints that returned sensitive user information such as userUid, Role, Email, and loginId. An attacker could access this data without authorisation.

medium.com

Published on medium.com

Hello, I am Ahmed Mahmoud, I work as a penetration tester at HackerOne, today I will show you how I discovered an information disclosure vulnerability.

Ahmed Mahmoud, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, sensitive endpoints were exposed in client-side JavaScript files without proper access controls, allowing unauthorised data retrieval.

Impact

Attackers could access all user information, including sensitive data like emails and roles, without authorisation.

What the attacker needed

None

How it was found

  1. Search the page source and discover JavaScript files.
  2. Find a file named main.xxxxxxx.js.
  3. Use the endext tool to extract all possible endpoints from the JavaScript files.
  4. Identify endpoints that contain sensitive information such as userUid, Role, Email, and loginId.

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 write-up has not been written yet. The Original tab links to the source.

Websites often use JavaScript files to make pages interactive. Sometimes these files contain hidden links (endpoints) that lead to private data. Here, those links exposed personal details like email addresses and user roles, which anyone could see.

What is Info disclosure?

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

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.