Authentication Bypassing and Sensitive Information Disclosure on Verify Email Address in Registration Flow
The email verification link never expires and authenticates the user without a password, and it carries a Base64-encoded parameter containing the user ID, 4-digit code and email address. An attacker who obtains the link could log into the victim's account without knowing the password.
- Triaged in 27 hours
- Fixed in 2 months
- Disclosed after 2 months
The zomato.com web application is vulnerable to authentication bypassing and sensitive information disclosure.
The flaw exist in “Verify Email Address” link which is received in a mail after registration. Once the user enters Full Name, Email Address and Password during registration, he/she is either asked to enter a 4 digit code or directly verify email address by clicking the red button for successful account activation/creation. The verify email address link doesn’t expire even after successful user registration/account activation which allows a malicious user to authenticate into the victim’s session without password. When an user clicks on verify email address link, he/she is directly authenticated without a need of password, thereby bypassing authentication. Also, the verify email address link consist of ‘fbcid’ parameter which is just Base64 encoded. It leaks sensitive data like unique user id, 4 digit code and email address of the user. All these three parameter are being passed in URL itself (GET request).The application is authenticating a user using these three parameter without a need of a password.
The verify email address GET URL consisting of sensitive data like unique user id, 4 digit code and email address gets stored in cache, browser history, web server logs. If the victim has accessed this link or activated his account from a public computer/cyber cafe, any user with malicious intent can access and misuse this url in order to authenticate into the victim session without a need of a password.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the verification endpoint treats possession of the link as proof of identity, never invalidates the token after use, and puts sensitive values in a reversible encoding inside the URL.
Impact
An attacker who obtains a victim's verification link, for example from a shared or public computer, could authenticate into the victim's session without a password.
What the attacker needed
Victim has a registration link; attacker obtains the link; link used on a shared or public computer
How it was found
- Register with a full name, email address and password.
- Receive the verification email and open the verify email address link.
- Observe that the link logs the user in without a password.
- Decode the fbcid parameter to see the user ID, 4-digit code and email address.
- Reuse the same link later, even after activation, to authenticate 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 report has not been written yet. The Original tab links to the source.
When you sign up, the site emails you a link to confirm your address. This report says that link keeps working forever and logs you straight in without asking for your password again. It also hides your user ID, a short code and your email inside the link in a form that is easy to decode, so anyone who sees the link can use it to get into your 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.