Zomato, which currently serves various Indian cities and 21 other countries, has over 62.5 million registered users. The team quickly responded and solved the bug.
Usually when a user makes an account on Zomato, they get an option to store phone number, addresses, date of birth etc., the hacker in a blogpost, explained that in one of the API call, they were reflecting the user data based on the “browser_id” parameter in the API request. He mentioned that the “browser_id” sequentially resulted in data leakage of other Zomato users. The data leaked also had Instagram access token which could be used to see private photos on Instagram of respective Zomato users.
Below are the details given by the hacker about the vulnerability in his blog:
Insecure Direct Object References occur when an application provides direct access to objects based on user-supplied input. As a result of this vulnerability, attackers can bypass authorization and access resources in the system directly, for example database records or files.
Insecure Direct Object References allow attackers to bypass authorization and access resources directly by modifying the value of a parameter used to directly point to an object. Such resources can be database entries belonging to other users, files in the system, and more. This is caused by the fact that the application takes user supplied input and uses it to retrieve an object without performing sufficient authorization checks.