Unauthorized update of merchants' information via /php/merchant_details.php
The merchant details endpoint accepted unauthenticated POST requests to update merchant information, allowing an attacker to change fields such as email, phone, and bank account details. This could lead to merchant account takeover if the email is used to bind the account.
- Paid in 10 hours
- Disclosed after 48 days
Hello!
I discovered an interesting file :
https://www.zomato.com/php/merchant_details.php
If I add in post content :
action=update-merchant&merchant_id=95292&type=1&[email protected]&[email protected]&name=update
With the report #255648, I was able to create a merchant, I should use this merchant to provide a screenshot like in a real situation.
I'm also able to change :
address, pincode, city, email, phone tan_number, bank account name, company_id, payu_id, contact, restaurants and more...
An attacker would change the mail to receive confidential mails it may can be leading to an merchant takeover if you use the mail to bound it with the account of the user. I couldn't try this scenario due to your rules about users data.
Do you have a test merchant_id i can play with to test that before you resolve the report?
Screenshot : updatehttp.png
If you have any questions... nbsp
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 missing authentication and authorization checks on the merchant details update endpoint.
Impact
An attacker could change merchant email addresses to receive confidential emails, potentially leading to merchant account takeover.
What the attacker needed
No authentication required; Knowledge of a merchant ID
How it was found
- Send a POST request to the merchant details endpoint with parameters to update a merchant.
- Include the merchant ID and new values for fields like email and contact.
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.
A web page that updates merchant details did not check who was making the request. Anyone could send a request to change a merchant's email or bank details. If the email is used to log in, the attacker could take over the merchant's account.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.