Skip to content
Info disclosure Write-up Beginner

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.

Harsh kothari Follow

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.

Harsh kothari, on infosecwriteups.com

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

  1. Extract API endpoints from JavaScript files or browser tools
  2. Feed the endpoint into the Wayback Machine
  3. Review archived responses for sensitive data
  4. 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.

More by Harsh kothari

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.