Skip to content
Leaked secrets Write-up Beginner

“Account Takeovers Made Easy: Critical JWT Exposure via Archived URLs”

Archived URLs contained active JWT tokens in query parameters, exposing user email addresses, payment tokens and internal identifiers. An attacker could use these tokens to initiate login flows and potentially take over accounts.

choudharinayan05 Follow

Published on medium.com

While performing reconnaissance on a popular digital platform, I discovered a serious vulnerability that exposed sensitive user data through archived URLs. Over 25+ URLs were leaking active JWT tokens, revealing private user details like email addresses, payment information, and internal access keys.

Nayan Choudhary, on medium.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 application placed sensitive JWT tokens in URL query parameters, which then got archived and publicly indexed.

Impact

An attacker could use the exposed JWTs to initiate login flows and potentially take over accounts, though the report only confirms that OTP codes were sent, not full account takeover.

What the attacker needed

Access to archived URLs; No authentication needed

The fix

Tokens should not be placed in URLs; they should be sent in headers or secure cookies, and any exposed tokens should be revoked.

How it was found

  1. Gather historical URLs for the target using waybackurls.
  2. Filter the URLs for sensitive parameters such as jwt, token, access_key, or email.
  3. Visit the filtered URLs to observe exposed JWT tokens.
  4. Decode the JWTs to reveal email addresses, payment tokens, and internal identifiers.
  5. Use the exposed URLs to initiate login flows and confirm that OTP codes are sent to linked email addresses.

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 who you are, like a temporary ID card. The site had put these tokens into web addresses that were saved by archiving services, so anyone could find them. With a valid token, an attacker could pretend to be the user and start logging in as them.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.