Authentication bypass via unauthenticated JWT generation on a telecom provider
A hardcoded AWS Lambda URL in the frontend bundle exposed an internal API whose token endpoint issued a signed JWT for any email address without authentication. The token was accepted by the main web application, and a further endpoint returned live AWS credentials, allowing access to S3 buckets holding subscriber data.
Published on medium.com
How a hardcoded Lambda URL in a JS bundle led to admin token generation with no credentials required — and a full chain to AWS credential exposure
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 token-issuing endpoint performed no authentication or authorisation check on the supplied email, and the internal Lambda URL was hardcoded into the client bundle.
Impact
An attacker could obtain a valid token for any account including admin without credentials, and then retrieve live AWS credentials giving access to S3 buckets containing subscriber PII, billing, behavioural and location data.
What the attacker needed
None for the token endpoint; knowledge of a valid email address; access to the public web app
How it was found
- Load the target's single-page app and open the browser developer tools to find the main JavaScript bundle.
- Search the bundle for the string lambda-url to locate a hardcoded Lambda function URL.
- Visit the docs path on that Lambda URL to see the exposed FastAPI Swagger documentation.
- Send a request to the token endpoint with an email address in the JSON body and receive a signed JWT.
- Use that token against authenticated endpoints on the main web application.
- Call the access key endpoint to obtain live AWS credentials and use them against S3.
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 JSON Web Token (JWT) is a signed piece of data a site gives you after login to prove who you are. Here the backend handed out a valid token to anyone who asked with an email address, so no password was ever needed. The frontend code also revealed the hidden backend address, which should never have been public.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.