Skip to content
Account takeover Write-up Intermediate

How I Could Pre-Take Over Accounts on Target.com with a Simple Tr

The email verification link used a predictable timestamp as the code parameter and a short 5-character uppercase ref token, allowing an attacker to brute-force the ref and confirm any email address without owning it. This could lead to account takeover by confirming emails without the real owner's consent.

JEETPAL Follow

Published on jeetpal2007.medium.com

Read Free

JEETPAL, on jeetpal2007.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 email verification token was generated from a timestamp and a short brute-forceable reference string instead of a cryptographically random value.

Impact

An attacker could confirm email addresses without user interaction and potentially hijack accounts by confirming emails without the real owner's consent, though the text does not show a completed takeover.

What the attacker needed

Ability to send requests to the verification endpoint; predictable timestamp code; brute-forceable ref token

The fix

The platform should use cryptographically random tokens, enforce expiration times, and add rate-limiting and CAPTCHA to prevent brute-force attacks.

How it was found

  1. Notice the verification link contains a code parameter that is a timestamp and a ref parameter that is a 5-letter uppercase string.
  2. Predict the code by using the current UTC time or a few seconds before or after.
  3. Brute-force the ref token by trying all 5-letter uppercase combinations.
  4. Use the predicted code and a valid ref to confirm any email address.

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 sign up, the site sends a link to prove the email is yours. This link had two parts: a code that was just the current time, and a short random-looking string. Because the time is easy to guess and the string was only five letters, an attacker could try all combinations quickly and confirm any email address, even one they do not control.

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 JEETPAL

View all

12 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.