[www.zomato.com/dubai/gold] CRITICAL - Allowing arbitrary amount to become a GOLD Member
The plan_id parameter in a GET request could be brute-forced to find a hidden 1 AED Gold membership plan. The upgrade plan feature did not validate the plan amount, allowing the attacker to set the price to 0 AED and obtain a 1-year Premium Gold membership for 1 AED.
Originally disclosed on HackerOne
- Fixed in 23 hours
- Paid in 5 days
- Disclosed after 3 months
Summary by the program
Hacker was able to find the internal testing Zomato Gold membership.
Summary by the researcher
I was able to purchase the PREMIUM GOLD MEMBERSHIP by selecting the amount of our own choice, here it required two conditions first is that you must have a valid premium membership. So, when I looked up the cost of the membership was something which I wouldn't have afforded to take a risk. So, I decided to play around with the plan_id which was a numeric parameter being passed in the GET REQUEST, so I started Intruder and bruteforced that parameter to find if there are any other plans available, and immediately after few mins I found where it was like I needed to pay 1 AED to become a GOLD Member. Ahh that was cool stuff, so I paid 1 AED and then the UPGRADE PLAN feature had a vulnerability in which the developers were not checking the plan amount, so I selected the plan_id for 1 Year and modified the request with our own amount "0 AED" and succeeded in getting a Premium Membership for 1 year at the cost of 1 AED. That was some interesting find to be honest.
If you still have any questions, hit me up on [Twitter] (https://twitter.com/prateek_0490).
Thanks.
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 trusted the client-supplied plan amount and did not verify it against the actual plan price.
Impact
An attacker could obtain a 1-year Premium Gold membership for only 1 AED instead of the full price.
What the attacker needed
A valid premium membership; ability to intercept and modify requests
How it was found
- Brute-force the plan_id parameter in a GET request to discover other plans.
- Find a plan that costs 1 AED to become a Gold member.
- Purchase that plan to obtain a valid premium membership.
- Select the 1-year plan_id and modify the request to set the amount to 0 AED.
- Complete the purchase and receive a 1-year Premium Gold membership for 1 AED.
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.
The website let users choose a membership plan by sending a number in the web address. The attacker guessed other numbers and found a cheap plan. Then, when upgrading, the site trusted the price the user sent, so the attacker changed it to zero and got a full year of premium for almost nothing.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.