Skip to content
Business logic Disclosed report Beginner

Sending Unlimited Emails to anyone from zomato mail server.

The API key generation endpoint had no rate limit, so an attacker could repeatedly send the same API key email to any address. This could be used to spam a victim's mailbox and incur email sending costs for the company.

bihari_web Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 17 days

Summary by the program

We've been receiving similar issues, disclosing it publicly so that everyone reading this report can know that this is out of scope and hence going forward will be closed as N/A.

The report

Summary: Zomoto provides developers to get the rich data of restaurant from their API. https://developers.zomato.com/api But here there is a security issue that can we exploited against zomato's Simple Email Server on Aws.

**Description:**When we request the api_key from zomato they ask us for our email address and if the registration is successful then the developer would receive the confirmation email and they would get the api key. But there is no limit on number of times we can request the api_key. Although we get the same api_key every time but every time a email is sent to the specified email (This can we email of anyone). Platform(s) Affected: Website

Steps To Reproduce:

  1. Go to this url https://developers.zomato.com/api and click on the generate api key button.

Note:- This button is only shown to the users those who have not generated the api_key before.

2 . Intercept the request in proxy you would get a post request

POST /php/developer HTTP/1.1
Host: www.zomato.com
Connection: close
Content-Length: 223
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://developers.zomato.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
DNT: 1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://developers.zomato.com/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,fr;q=0.8,hi;q=0.7,ru;q=0.6
Cookie: PHPSESSID=f735ebfd3e11e47782417af48ab7ee23700ba818; 

context=api&action=generate_api_key&plan=premium&token=c8bb20d4e575cf91aa8028ac9802a050&name=VIPIN+BIHARI&email=<ANY_EMAIL>&phone=8127411000&company=XYZ.com&country=1

F454847: Screenshot from 2019-03-30 10-31-02.png

3 . Now Attacker can Brute force the same request ( as above ) any numbers of times and the attacker would be able to send api_key email to anyone many times.

Impact

  1. The attacker can send api_key email to anyone ( It will be a spam mail for anyone ) any number of times and there making there mailbox out of storage.
  2. It cost money to send emails to anyone and here the company may have the financial loss (If attacker tries to send thousands of mail ).

Attachments

Screenshot_from_2019-03-30_10-31-02.png
Screenshot_from_2019-03-30_10-31-02.png From the original on HackerOne

The original report as published on HackerOne, by bihari_web. 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

Impact

An attacker could send the API key email to any address repeatedly, causing spam and potential financial loss from email sending costs.

What the attacker needed

Ability to intercept HTTP requests

How it was found

  1. Go to the API page and click the generate API key button.
  2. Intercept the POST request that is sent.
  3. Repeat the request many times with any email address.

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.

When you sign up for an API key, the website sends you a confirmation email. The report found that you could ask for that email over and over again, and you could put any email address in the request. So someone could flood another person's inbox with these emails, which is annoying and costs the company money.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by bihari_web

View all

1 more disclosed report, 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.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.