Skip to content
Business logic Write-up Beginner

Broken Brute-Force Protection: How to Bypass Rate Limiting in a Single Request — Authentication Labs

The lab's brute-force protection only counts login attempts per request, so an attacker can submit many username-password pairs in a single request to bypass rate limiting. This allows brute-forcing a user's password and logging into their account.

Bash Overflow Follow

Published on infosecwriteups.com

The “Broken brute-force protection, multiple credentials per request” lab demonstrates a security flaw in authentication mechanisms. It is designed to show how attackers can bypass weak brute-force protection by sending multiple credential attempts in a single request.

Bash Overflow, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the rate-limiting mechanism counts requests rather than individual credential attempts, so multiple guesses in one request are not limited.

Impact

An attacker could bypass brute-force protection and compromise a user's account, accessing sensitive data and settings.

What the attacker needed

Access to the PortSwigger lab; A password list

The fix

Brute-force protection should apply to each credential attempt, even when multiple credentials are sent in a single request.

How it was found

  1. Access the lab and enter the victim's username with a random password.
  2. Capture the login request in Burp Suite and send it to Repeater.
  3. Send the request to Intruder and mark the password parameter.
  4. Load the candidate password list and start the attack; observe rate limiting.
  5. Use a provided Python script to format the password list as a JSON array.
  6. Paste the array into the password field in Repeater and send; a 302 response indicates success.

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 write-up has not been written yet. The Original tab links to the source.

Brute-force protection normally stops someone from guessing passwords by limiting how many tries they can make. Here, the protection only looked at each request, not each password guess, so an attacker could put many guesses into one request and try them all at once. This let them find the correct password and log in as another user.

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 Bash Overflow

View all

35 more disclosed reports, best first.

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.