Skip to content
Account takeover Write-up Intermediate

In GUID We Trust

Password reset tokens were generated as version 1 GUIDs, which are predictable because they embed a timestamp, a clock sequence and a node ID. An attacker could request a reset for a victim, predict the token from a sample of their own, and take over the account.

Daniel Thatcher Follow

Published on intruder.io

GUIDs (often called UUIDs) are widely used in modern web applications. However, seemingly very few penetration testers and bug bounty hunters are aware of the different versions of GUIDs and the security issues associated with using the wrong one.

Daniel Thatcher (@_danielthatcher), on intruder.io

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

The application used version 1 GUIDs, which are time-based and predictable, as password reset tokens instead of cryptographically random values.

Impact

An attacker could take over another user's account by predicting their password reset token, provided the estimate of the generation time is close enough.

What the attacker needed

Ability to request password resets; knowledge of approximate generation time; a sample GUID from own reset link

The fix

Password reset tokens should be generated using a cryptographically secure random number generator rather than a predictable GUID version.

How it was found

  1. Request a password reset for an account you own and inspect the GUID in the reset link.
  2. Use the tool to extract the node ID and clock sequence from that sample GUID.
  3. Request a password reset for the victim's account and note the server time when it was generated.
  4. Generate all possible GUIDs for a window around that time using the extracted values and the timestamp precision.
  5. Submit the password reset using each generated GUID until the victim's token is found, then set a new password.

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 GUID is a long random-looking string used as an identifier. Version 1 GUIDs are not random: they contain the time they were made and details about the machine that made them, so someone who sees one can guess others made around the same time. Here the password reset link used such a guessable GUID, so an attacker could work out the victim's reset link and change their password.

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.

More by Daniel Thatcher

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.