Bypass OTP verification when placing Order
The OTP verification step when placing a food order leaked the correct OTP in the error message returned for a wrong code. An attacker could read that code, verify any phone number, and also tamper with the final order request to place unlimited orders.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 3 hours
- Disclosed after 23 hours
User can bypass the OTP verification needed while placing an order with a restaurant. User can give a random number and intercept the OTP request. If wrong OTP is provided then the error message shows the session code which is the OTP in this case. Hence that session code can be used to verify the phone number and the order can be placed. Similarly,by intercepting the final order placing request,one can change the number and place N number of orders with restaurant.
Please Refer to the attached POC.
Attachments
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 server included the expected OTP (called a session code) in the error response for an incorrect OTP, and the final order request trusted a client-supplied phone number without re-checking it.
Impact
An attacker could bypass phone verification and place many orders using arbitrary phone numbers.
What the attacker needed
Ability to intercept HTTP requests; a restaurant order flow
How it was found
- Start placing an order and enter a random phone number.
- Intercept the OTP request.
- Submit a wrong OTP and read the session code from the error message.
- Use that session code as the OTP to verify the phone number and place the order.
- Intercept the final order request and change the phone number to place many orders.
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 order food, the app sends a one-time code (OTP) to your phone to prove it is you. Here, if you typed the wrong code, the app's error message accidentally told you the right one. That let someone skip the phone check and also change the phone number in the final order request to place many orders.
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.