Skip to content
Info disclosure Write-up Beginner

Finding jwt tokens that lead to PII data leakage.

JWT tokens were found in archived URLs that contained sensitive personal information such as phone numbers, emails and names. Anyone who obtained these tokens could read that personal data.

infosecwriteups.com

Published on infosecwriteups.com

Free VPS for penetration and bug bounty hunting. Free link in the commentsinfosecwriteups.com

loyalonlytoday, 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, JWT tokens containing personal data were passed in URLs that were archived and publicly accessible.

Impact

The tokens contained personal data such as phone numbers, emails and names, which could be read by anyone who found them.

What the attacker needed

None

How it was found

  1. Collect archived URLs for the target domain using a URL archive tool.
  2. Filter the list for strings that look like the start of a JWT.
  3. Copy one of the found tokens.
  4. Decode the token on a JWT decoding website to view its contents.

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 small token a website gives you after you log in, and it often carries information about you inside it. If that token is placed in a web address and that address is saved by an archive, anyone can find it and read the personal details inside. The author searched old archived links for tokens and decoded one to see the data.

What is Info disclosure?

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

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.