Skip to content
Business logic Disclosed report Beginner

Login page vulnerable to bruteforce attacks via rate limiting bypass

The login endpoint applied rate limiting per email identifier, but the limit was not carried over when a different email was used, and appending whitespace or newline characters to the identifier bypassed the limit entirely. An attacker could therefore keep guessing passwords against an account without being locked out, potentially leading to account takeover.

Brandon Roldan Follow

Originally disclosed on HackerOne

  • Disclosed after 48 days

#SUMMARY This report consists of two vulnerabilities.

#1st vulnerability: I found out that there is a rate limiting in place after 25 failed attempts. Now that is good, but when i use other email address to bruteforce, The rate limit didnt preserve to the new email. This may looks like a minor issue but such vulnerabilities may lead to mass account bruteforce. I dont know if it is an intentional behaviour but it may pose a risk for your users. I included a video poc and the python poc file for the proof

#POC (Attachment on the original report: exploit.py)

bandicam_2020-11-22_16-26-42-774.mp4 From the original on HackerOne

#2nd vulnerability I found a way to bypass the rate limit. While trying to bypass the rate limit, i tried adding spaces in the identifier parameter and to my surprise, that bypassed the rate limiting, i then dig deeper into it and i found out that the character \n also bypass it. Now whenever we got locked out, we can just simply add \n again. And it looks like there is no limit on how much \n we can add. This completely bypassed the rate limiting in place

#STEPS TO REPRODUCE

  1. Go to khanacademy.org
  2. Login with any creds and intercept the request
  3. Send it to intruder and use null payloads and use 30 payloads
  4. You will see that you will get rate limited on the email that you use.
  5. Now add \n after the email
  6. You will see that the rate limit is not in place anymore

#POC █████████

Impact

This may allow an attacker to do bruteforce attacks on users that may leads to account takeover

The original report as published on HackerOne, by tomorrowisnew_. 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 rate limiter keyed on the raw, unnormalised identifier string, so trivial variations such as trailing whitespace or newline characters were counted as separate identifiers.

Impact

An attacker could perform brute-force attacks against user accounts, which may lead to account takeover.

What the attacker needed

No account needed; network access to the login endpoint

How it was found

  1. Open the login page and submit any credentials while intercepting the request.
  2. Send the request to an intruder tool with null payloads and around 30 attempts.
  3. Observe that the email used becomes rate limited.
  4. Append a newline character after the email in the identifier.
  5. Observe that the rate limit no longer applies.

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 login page counts failed attempts and stops you after a while. Here the limit was tied to the exact email text, so adding a space or newline bypassed it, letting someone keep trying passwords.

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 Brandon Roldan

View all

2 more disclosed reports, best first.

More from Khan Academy

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.