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.
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…
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
- Enumerate subdomains of the target using multiple tools.
- Merge and sort the subdomain lists to remove duplicates.
- Check which subdomains are alive using HTTPX.
- Collect endpoints from the live subdomains using waybackurls.
- Filter the collected URLs to keep only JavaScript files.
- 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.