Coolwinks.com Account Takeover
A failed-payment email contained a link with a Base64-encoded email address in a parameter, and visiting that link automatically logged the user in. An attacker could encode any registered email address and open the link to log in as that user.
Published on addictivehackers.blogspot.com
The original lives on addictivehackers.blogspot.com
We do not hold its text, 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 application trusted a client-supplied, Base64-encoded email address in a URL parameter to authenticate users, instead of using a secret, single-use token.
Impact
An attacker could log in as any registered user whose email address they know, leading to full account takeover.
What the attacker needed
Knowledge of victim's registered email; victim has an account
The fix
The issue was fixed, likely by replacing the predictable email-based parameter with a secret, single-use authentication token.
How it was found
- Place an order and let the payment fail to receive an automated email.
- Open the link in the email and note the xmzfd parameter containing a Base64 value.
- Decode the Base64 value to reveal the registered email address.
- Encode another registered user's email address in Base64 and replace the xmzfd value.
- Open the modified link in a browser to be logged in as that user.
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 a payment failed, the site sent an email with a link that logged the user in automatically. The link contained the user's email address, only scrambled with a simple encoding called Base64, which anyone can reverse. By changing that scrambled email to another user's email, an attacker could log in as that person without knowing 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.