Email = Token = Broken Auth in Booking System
The login endpoint returned a valid authentication token for any email address without verifying the requester. An attacker could use that token to make restaurant bookings on another user's account without their knowledge.
Published on medium.com
Hi I’m Mohamed Ahmed. In this write-up I’ll show how I was able to use only an email address to obtain a user’s token and book a restaurant reservation on their behalf without them knowing.
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 login endpoint issued an authentication token based only on the submitted email address, without verifying the user's credentials.
Impact
An attacker who knows a user's email address could create restaurant reservations on that user's account without their knowledge.
What the attacker needed
Victim's email address; attacker account
How it was found
- Go to the login page.
- Type an email address and observe a token returned in the response.
- Log in to your own account.
- Start a restaurant booking from your account.
- Enable interception and replace your token with the token obtained for the victim's email.
- Submit the booking, which is then made on the victim's 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 log in, the server usually checks your password and then gives you a token, which is like a temporary pass that proves who you are. Here the server handed out that pass to anyone who typed an email address, so a stranger could act as another person. The attacker then used the pass to book a table in the victim's name.
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.