Skip to content
Access control Disclosed report Beginner

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.

adibou Follow

Originally disclosed on HackerOne

  • 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

updatehttp.png
updatehttp.png From the original on HackerOne

The original report as published on HackerOne, by adibou. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Send a POST request to the merchant details endpoint with parameters to update a merchant.
  2. 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.

More by adibou

View all

2 more disclosed reports, best first.

More from Eternal

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.