How I Escalated a Simple JWT from Archives to ATO!
A JWT token was found in an archive and was still valid, allowing the author to impersonate the associated user account. The author claims this led to account takeover, with almost 200 tokens found.
medium.com
Published on medium.com
Hello everyone! Phantom here, and today Iโm going to walk you through a security tip on how I escalated a simple JWT (JSON Web Token) from archives to an Account Takeover (ATO).
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
An attacker could impersonate users, including admins, leading to full account takeover and access to sensitive data.
What the attacker needed
Access to an archive containing JWTs; a valid, unexpired JWT
The fix
JWT tokens should be secured with proper encryption, short expiry times, and never stored where unauthorised users can access them.
How it was found
- Find a JWT token in an archive.
- Check if the JWT is expired by looking at the exp claim.
- If not expired, add the JWT to the Authorization: Bearer header.
- Decode the JWT payload to see user information and roles.
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 JWT is like a digital ID card that a website gives you after you log in. If someone finds a valid one, they can pretend to be you without needing your password. Here, old ID cards were left in a backup archive, and they still worked.
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.