From Wayback to Account Takeover
Archived copies of the site captured in the Wayback Machine contained leaked Plex authentication tokens in URLs. An attacker who found those tokens could reuse them to log in as the affected users, including premium account holders.
Published on medium.com
Hi, I would like to share how Wayback Machine leads to limited Account Takeover.
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 authentication tokens were placed in URLs that were crawled and archived, so the tokens remained valid and reusable long after being captured.
Impact
An attacker could take over the accounts of users whose tokens were archived, though the author describes it as a limited account takeover.
What the attacker needed
Archived URLs containing tokens; valid leaked tokens
How it was found
- Register on the target site and browse its features with an intercepting proxy running.
- Review the proxy history and identify the authentication request carrying the token.
- Search archived URLs for leaked tokens using archive-scraping tools.
- Test the recovered tokens by substituting them into the authentication request to log in as the corresponding users.
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 token is a short string that acts like a password, proving who you are to a website. If a token ends up in a URL that gets saved by an archiving service, anyone who later searches that archive can find it and use it to log in as that person. The fix is to keep such tokens out of URLs and to expire them quickly.
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.