How I Got Access To auth0 Management Api
A staging application's backend returned a 500 error containing an Auth0 Management API bearer token when sent an empty JSON object. The attacker used this token to access the Auth0 Management API, listing users, applications, and updating user data.
Published on infosecwriteups.com
Recently, while hunting on a private bug bounty program I got full API Access to target’s Auth0 Management API. This was my first comeback vuln/bounty after taking a pause from Bug Bounty Hunting.
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 the backend unmarshalled the request body into an object and then used that same object to call the Auth0 Management API, so an empty JSON object led to an error response that included the Authorization header.
Impact
The attacker could access the Auth0 Management API with the token's permissions, potentially reading and modifying user data for around 300 users in the staging environment.
What the attacker needed
Access to the staging application; valid credentials for the staging app
How it was found
- Log in to the staging application with provided credentials.
- Use Burp Suite to crawl and click through the application.
- Find a PATCH request to /api/path/data with a language preference in the body.
- Send an empty JSON object {} in the request body.
- Observe a 500 error response containing an Authorization header with a Bearer token.
- Use the token to access the Auth0 Management API and perform actions like listing users and updating users.
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.
When a web server hits an unexpected error, it sometimes includes internal details in the error message. Here, an empty request caused the server to reveal a secret access token for a third-party service, which the attacker then used to read and change user data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.