Skip to content
DoS Disclosed report Intermediate

Send email asynchronously

The email modification endpoint lacked throttling on distinct email addresses, allowing an attacker to send many emails synchronously. This could tie up server threads and connections, potentially causing a denial of service and incurring email sending costs.

hharry Follow

Originally disclosed on HackerOne

Bounty$10 Medium 5.3 View original
  • Triaged in 24 days
  • Fixed in 11 months
  • Paid in 11 months
  • Disclosed after 11 months

It seems like the https://gratipay.com/~USER/emails/modify.json endpoint has some protection to prevent email flooding as seen here https://github.com/gratipay/gratipay.com/blob/master/gratipay/models/participant.py#L407 plus CSRF validation.

However, it is possible to flood the server with multiple email requests as long as you send different email addresses. This might be a door to a DoS attack considering emails are sent synchronous on the request (this means each email sending request will hold that thread and connection for quite a good time). Finally, depending on what email server you are using, if this can be abused you might end up paying for a lot of sent emails.

Note that I'm not 100% sure there's no other kind of throttling on this endpoint and I was too afraid to test.

Below is the screenshot of a few sent emails showing how all of them were sent correctly and high time it took on the server and another one of me receiving all of them.

Attachments

emails.PNG
emails.PNG From the original on HackerOne
emails2.png
emails2.png

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

Root cause

Likely the endpoint only rate-limited per email address rather than globally or per user, and sent emails synchronously during the request.

Impact

An attacker might cause a denial of service by tying up server threads and connections, and the site owner might incur email costs depending on the email server.

What the attacker needed

Access to the email modification endpoint; ability to supply different email addresses

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 feature that sends confirmation emails could be abused by someone to make the server send lots of emails quickly. Because each email is sent while the request waits, the server can get overwhelmed and slow down for everyone else.

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.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.