Skip to content
Info disclosure Disclosed report Beginner

No rate limiting for confirmation email lead to email flooding and leads to enumeration of emails in publishers.basicattentiontoken.org

The publisher settings endpoint for changing a contact email had no rate limiting and returned different HTTP status codes depending on whether the submitted email already existed. An attacker could repeatedly submit addresses to flood a victim's inbox and to enumerate which emails were registered.

root_geek280 Follow

Originally disclosed on HackerOne

  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 7 months

There is no bruteforce protection here https://publishers.basicattentiontoken.org/publishers when i try to changes email's contact account. Also the actual thing is when I put an existing email in the above url's "publisher[pending_email]" parameter I get an error response status (400 Bad Request) But if i put non-existing email, i get "200 OK" status. As this do not have any bruteforce protection an attacker may get all the emails of the publishers.basicattentiontoken.org.

####How to reproduce 1.Use Burp Suite and capture below request upon navigation to https://publishers.basicattentiontoken.org/publishers/settings?locale=en# at changes emails contact 2.Click on Save button after entering email address {code} POST /publishers HTTP/1.1 Host: publishers.basicattentiontoken.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0 Accept: application/json Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://publishers.basicattentiontoken.org/publishers/settings X-CSRF-Token: K3ImpMdB22SFYupK9nbc9IEubpRgmVTYVKQ/HnPFcbglcbkSKBb5wdJ4GCx436E1TuPddMUZR0u5Nh0f9r6pJQ== X-Requested-With: XMLHttpRequest Content-Type: multipart/form-data; boundary=---------------------------115523927333677217472699996749 Origin: https://publishers.basicattentiontoken.org Content-Length: 466 DNT: 1 Connection: close Cookie: _publishers_session=ed2071cd116ba7c96b346bb91a89720e; __cfduid=d906d4d29ca3e5455a66f2a903dea07071587447187; _pk_testcookie..undefined=1; _pk_testcookie.6.8f93=1; _pk_id.6.8f93=2ad1aec69df84899.1587447189.1.1587447535.1587447189.; _pk_ses.6.8f93=1

-----------------------------115523927333677217472699996749 Content-Disposition: form-data; name="publisher[name]"

Victim User -----------------------------115523927333677217472699996749 Content-Disposition: form-data; name="publisher[pending_email]"

[email protected] -----------------------------115523927333677217472699996749 Content-Disposition: form-data; name="_method"

patch -----------------------------115523927333677217472699996749--

{code} 3.Send the captured request to Intruder and repeat the request in loop 3.Set the payload position into email address parameter with list of any random email address (option to enumerate email exist/non-exist) 4.Victim will get email flooding as much as payload has generated in his/her mailbox

####Remediation: Rate limiting should be implemented

####References: https://hackerone.com/reports/297359 https://hackerone.com/reports/39486 https://hackerone.com/reports/751604 https://hackerone.com/reports/774050 https://hackerone.com/reports/245147

Impact

Email flooding and bruteforcing

Attachments

Capture2.PNG
Capture2.PNG From the original on HackerOne
Capture.PNG
Capture.PNG

The original report as published on HackerOne, by root_geek280. 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 lacked rate limiting and returned distinguishable responses for existing versus non-existing email addresses.

Impact

An attacker could flood a victim's mailbox with confirmation emails and could enumerate registered publisher email addresses; the text does not show a defence blocking this.

What the attacker needed

A publisher account; ability to send many requests

The fix

Rate limiting should be implemented on the email change endpoint.

How it was found

  1. Capture the request sent when changing the contact email in the publisher settings.
  2. Enter an email address and click Save.
  3. Send the captured request to Intruder and repeat it in a loop.
  4. Set the payload position to the email parameter with a list of random addresses to test existence.
  5. The victim receives a confirmation email for each payload sent.

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 change your contact email on this site, the server checks whether the new address is already used. It answers with a different status code for an existing address than for a new one, and it lets you ask as many times as you like. That lets someone guess which email addresses have accounts and also send many confirmation emails to a victim.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by root_geek280

View all

3 more disclosed reports, best first.

More from Brave Software

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.