Skip to content
Info disclosure Write-up Beginner

How I Discovered Sensitive App_ID and App_Key Disclosure in a JavaScript File and Earned $150

A JavaScript file exposed an App_ID and App_Key, and a URL containing these parameters returned a JSON file with private participant and event data. An attacker could use the exposed credentials to access that sensitive information.

dhananjay_00 Follow

Published on medium.com

I’m Dhananjay Pathak, a passionate security researcher, and today, I’m excited to share a recent vulnerability I discovered in a public program related to Information Disclosure or Sensitive Data Exposure. In this blog post, I’ll walk you through the entire process I used to uncover exposed Sensitive Authentication…

Dhananjay Pathak, 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 authentication credentials were hardcoded in a client-side JavaScript file, allowing anyone to retrieve them and access a data endpoint.

Impact

The exposed credentials allowed access to a JSON file containing private participant details and event data, which could lead to a privacy breach.

What the attacker needed

None

How it was found

  1. Enumerate subdomains of the target using multiple tools.
  2. Merge and sort the subdomain lists to remove duplicates.
  3. Check which subdomains are alive using HTTPX.
  4. Collect endpoints from the live subdomains using waybackurls.
  5. Filter the collected URLs to keep only JavaScript files.
  6. Run Mantra on the JavaScript files to extract secrets and endpoints.

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.

A website's JavaScript file is code that runs in your browser, and it can accidentally contain secret passwords or keys. Here, a key meant to be private was left in that file, and anyone who found it could use it to download a file full of private information.

What is Info disclosure?

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

More by dhananjay_00

View all

1 more disclosed report, best first.

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.