Skip to content
Account takeover Write-up Beginner

The Simple Bug That Led Me to My First Bounty (Account Takeover via Insecure Reusable Activation…

The account activation link was reusable and automatically logged the user in, so anyone who obtained the link could access the account for up to 48 hours. The author demonstrated this by opening the same link multiple times and being logged in each time.

sudo_a7med Follow

Published on medium.com

“بِسْ� ِ اللَّهِ، وَالْحَ� ْدُ لِلَّهِ، وَالصَّلَاةُ وَالسَّلَا� ُ عَلَى رَسُولِ اللَّهِ، اللَّهُ� َّ عَلِّ� ْنَا � َا يَنْفَعُنَا، وَانْفَعْنَا بِ� َا عَلَّ� ْتَنَا، وَزِدْنَا عِلْ� ًا” الله� انصر إخواننا ال� ستضعفين في فلسطين والسودان وفي كل � كان

sudo, 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 activation token was not invalidated after first use and was also used to create an authenticated session, rather than only marking the account as verified.

Impact

Anyone who obtained the activation link could log into the account for up to 48 hours, amounting to account takeover within that window.

What the attacker needed

Attacker obtains the activation link; link used within 48 hours

The fix

The activation link should be single-use, expire quickly, and only verify the account rather than creating a session.

How it was found

  1. Create a new account and receive an activation link by email.
  2. Click the activation link and observe that it logs you in.
  3. Open the same activation link again and observe that it logs you in again.

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, a website may email you a link to confirm your address. Normally that link should only work once and should not log you in. Here, the link kept working and logged the person in, so if someone else got hold of it they could use the 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.

More by sudo_a7med

View all

1 more disclosed report, 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.