Oauth client secret leak and possible IDOR leading to PII Disclosure
A JavaScript file on an OAuth login page exposed environment variables including a client secret, which allowed the researcher to generate an access token. Using that token, the researcher accessed API endpoints and enumerated site-specific ID values to retrieve PII of the bug bounty program's customers.
Given that this vulnerability is still in triage, I will give a vague overview of the bug chain.
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
Impact
The access token gave access to PII of the bug bounty program's customers, including full names, usernames, email addresses, phone numbers, employee IDs, job titles, and login timestamps; it is not clear whether this was due to an IDOR or special privileges of the system user.
What the attacker needed
Access to the OAuth login page; ability to read JavaScript source
How it was found
- Find a subdomain owned by the SaaS bug bounty program.
- Read the HTML source of the OAuth login page and notice a JavaScript file with environment variables.
- Craft a POST request to generate an access token using the exposed secret.
- Use the access token with Burp Intruder to test API endpoints and enumerate site-specific ID values.
- Access PII of the program's customers through the API 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 JavaScript file on a login page accidentally contained secret configuration values, including a client secret. The researcher used that secret to obtain an access token, which is like a temporary key that lets you talk to an API. With that key, they could query API endpoints and pull personal information about customers, such as names, emails, and phone numbers.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.