How I Turned Forgotten Internet Archives into a Critical Account Takeover Vulnerability
Years-old password reset and account creation links remained active and were publicly indexed in internet archives. An attacker could use these links to take over existing accounts or pre-hijack new accounts by setting their passwords.
Published on medium.com
Have you ever imagined that a password reset link, sent years ago and forgotten by everyone, could be the key to taking over a full account today? In this article, I will share the story of my discovery of one of the strangest and most dangerous vulnerabilities, a bug that was hiding in plain sight in the forgotten…
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 a broken token lifecycle management system where password reset and account creation tokens never expired and were not revoked after use.
Impact
An attacker could take over existing user accounts or pre-hijack new accounts by setting their passwords, affecting a wide range of users over several years.
What the attacker needed
Publicly indexed archives; no authentication needed
The fix
The vulnerability was remediated one day after triage, and the recommended fix is to enforce strict token expiration and revoke tokens after use.
How it was found
- Identify common URL patterns for password reset and account creation links.
- Scan public archives like the Wayback Machine and Common Crawl using tools such as gau to collect URLs.
- Test whether links from years ago still load a live password reset or account creation page.
- Compare server responses for a leaked token versus a known-expired token to confirm validity.
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.
When you forget your password, a website emails you a special link to reset it. These links are supposed to stop working after a short time, but here they stayed valid for years and were saved by internet archive services. Anyone who found those old links could use them to reset someone else's password and take over their account.
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.