Sweet Security Disaster: How I Could Verify Any Account on a Dess
The account verification link contained the user's email address only as a Base64-encoded parameter, with no other secret or signature. An attacker could change that parameter to any email address and activate or verify an account they do not own.
What started as casual browsing on a traditional sweets website turned into an unexpected security adventure. Recently, I was looking through a popular dessert website (which shall remain unnamed for security reasons) and decided to create an account just to explore their offerings.
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 verification endpoint trusted a client-supplied, merely encoded email parameter instead of a server-generated unguessable token tied to the pending account.
Impact
An attacker could verify or take over accounts for email addresses they do not own, bypassing identity verification; the author did not demonstrate this against a live account.
What the attacker needed
Ability to sign up; access to a verification link
The fix
The verification link should use a random, single-use token stored server-side and linked to the pending account, rather than an encoded email address.
How it was found
- Sign up with an email address and receive the verification email.
- Notice the verification link has an e parameter holding a Base64 string.
- Decode the string and see it is the email address.
- Change the Base64 value to another email address to activate that account.
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 often emails you a link to prove the address is yours. Here, that link simply carried your email address in a scrambled-looking format called Base64, which anyone can decode and re-encode. Because nothing else proved the link was genuine, changing the address in the link would let someone confirm an account for an email 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.