How A Zomato Feature Enables Stalking Which They Call Working As Intended
Zomato's Friend Recommendations API allows unilateral contact syncing, so anyone with a phone number can retrieve that user's restaurant recommendation history and restaurant coordinates. By mapping overlapping delivery radii, an attacker can estimate the user's approximate physical location without consent.
Published on infosecwriteups.com
Last week, I reported a privacy flaw in Zomato’s “Friend Recommendations” feature with a proof-of-concept video and an automated script. Eternal (Zomato’s parent company after the rebrand) closed the ticket in 12 minutes, labelling the ability to track a stranger’s approximate physical location as “Intended Behaviour.”
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The Friend Recommendations feature uses a unilateral contact-sync model with no mutual consent or notification, so any user who uploads a phone number can read another user's recommendation data.
Impact
An attacker with only a phone number could obtain a named individual's approximate residential area, food preferences and spending patterns, which the author says is enough for stalking or targeted social engineering; Zomato's security team closed the report as intended behaviour and the endpoints remained unpatched at the time of writing.
What the attacker needed
Target's phone number; a Zomato account and API token; no victim interaction needed
The fix
The report suggests Zomato should check whether a connection is mutual before returning recommendation data, and users can manually disable Friend Recommendations and delete past recommendations.
How it was found
- Upload target phone numbers to the sync-contacts endpoint.
- Call get-contacts to check which numbers are Zomato users and obtain their encrypted user IDs.
- Query get_listing_by_usecase with the encrypted user ID to list restaurants the target recommended.
- Call the menu endpoint for each restaurant to retrieve specific ordered dishes and prices.
- Call the restaurant info endpoint for each restaurant to obtain its latitude and longitude.
- Plot the restaurant coordinates and intersect their delivery radii to estimate the target's approximate location.
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 write-up has not been written yet. The Original tab links to the source.
A phone number is enough to look up what restaurants someone has recommended on Zomato, because the app treats anyone who has your number as a 'friend' without asking you. The attacker then takes the locations of those restaurants and draws circles around them showing how far each delivers; where the circles overlap is roughly where the person lives. No notification is sent to the victim at any point.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.