IDOR in treat subscriptions
The treat subscriptions tab used a user ID parameter that was not checked against the logged-in user, so changing it returned another user's subscription details. An attacker could view the subscription ID, purchase date and validity of any user's Zomato Treats subscription.
- Fixed in 28 days
- Paid in 29 days
- Disclosed after 3 months
Summary by the program
@harsh13 found an IDOR which leaked Subscription ID, Purchased Date, Validity of Zomato Treats. Thanks @harsh13 for helping us in making @zomato secure :)
Cheers.
The report
The treat subscriptions tab in my profile has an IDOR.
The corresponding api:
POST /php/filter_user_tab_content.php HTTP/1.1 user_id=██████&tab=treat_subscription&order_history_offset=0&order_history_limit=20
You can give any user id and you will be able to see the treat subscriptions of that user.
Impact
A user can view treat subscriptions of any other user.
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
Impact
A user could view the treat subscriptions of any other user, including the subscription ID, purchased date and validity.
What the attacker needed
Knowledge of another user's ID
How it was found
- Open the treat subscriptions tab in your profile.
- Observe the POST request to the filter_user_tab_content endpoint with a user_id parameter.
- Change the user_id value to another user's ID and send the request.
- The response shows that user's treat subscription details.
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.
An IDOR (Insecure Direct Object Reference) happens when a website lets you ask for a record by its identifier but never checks that the record belongs to you. Here the request included a user ID, and the server simply returned that user's subscription information without confirming it was your account. Anyone who changed the number could read other people's subscription details.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.