Zomato Map server going out of memory while resizing map image
The static map endpoint accepted an oversized image size parameter, causing the server to spend excessive resources and time out. An attacker could repeatedly request large maps to make the map feature unavailable.
- Disclosed after under an hour
Go to
https://maps.zomato.com/php/staticmap?center=0,0&size=240x150&maptype=zomato&markers=180,180,pin_res32&sensor=false&scale=%&zoom=eval(2147483647+1)&language=en
a map will be displayed
Now increase the map size by 10x
https://maps.zomato.com/php/staticmap?center=0,0&size=2400x1500&maptype=zomato&markers=180,180,pin_res32&sensor=false&scale=%&zoom=eval(2147483647+1)&language=en
It will always timeout after waiting from 1-15 minutes
POC video is attached.
Impact
Zomato Map servers can be bought down making map feature completely non functional and causing millions of dollars loss for Zomato.
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 the server did not limit the requested image dimensions, so a large size caused excessive memory or CPU use.
Impact
The map feature could become completely non-functional, and the report claims this could cause millions of dollars in loss.
What the attacker needed
None
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 website that generates map images can be asked to make a very large picture. If the picture is too big, the server works so hard that it stops responding to normal requests. This report shows that asking for a much larger map made the server time out.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.