Flashback Fuzzing: How I Found JWT Tokens in the Past & Got Paid
An authentication endpoint returned JWT access tokens in its responses, and these responses were archived by the Wayback Machine. An attacker could retrieve the archived tokens and, if still valid, use them to access user APIs.
Published on infosecwriteups.com
It started like any other day: Low energy, 3 tabs open, 1 chai down. I wasn’t looking for a bug.
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 authentication endpoint returned sensitive tokens in a cacheable GET response, allowing them to be archived.
Impact
If the tokens were still valid, an attacker could have used them to access user APIs, but the report only shows expired tokens from the archive.
What the attacker needed
Access to Wayback Machine; knowledge of the endpoint
How it was found
- Extract API endpoints from JavaScript files or browser tools
- Feed the endpoint into the Wayback Machine
- Review archived responses for sensitive data
- Report the finding to the security team
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 a token that proves you are logged in. The website's login endpoint was saving these tokens in its responses, and an internet archive (Wayback Machine) copied those responses. Anyone could look at the archive and see the tokens, which might still work to access accounts.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.