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.
- 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


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.