Skip to content
Business logic Write-up Beginner

Exploiting Broken Brute-Force Protection with Multiple Credentials per Request

The login endpoint accepted an array of passwords in a single request and checked each one against the account, so an attacker could try many guesses per request. This bypassed brute-force protections that count requests rather than individual password checks, making it easier to guess weak passwords.

Spoorthi Follow

Published on infosecwriteups.com

While testing a login endpoint, I discovered an interesting flaw in the application’s brute-force defense. The login API expected credentials in JSON format, but it failed to properly validate the structure of user input.

Spoorthi, 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 server did not validate that the password field was a single string and instead iterated over whatever value it received, including an array.

Impact

An attacker could submit many password guesses in one request, making brute-force attacks more efficient and potentially bypassing request-based rate limiting to gain unauthorised access to accounts with weak passwords.

What the attacker needed

Access to the login endpoint; target account with a weak password

The fix

The endpoint should strictly validate input types, reject password arrays, and count every password verification as an individual login attempt.

How it was found

  1. Send a normal login request with a single password to observe the expected JSON format.
  2. Modify the request to replace the single password value with an array of common passwords.
  3. Include the correct password in the array and observe that the account authenticates.

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.

A login form normally takes one username and one password. Here the server also accepted a list of passwords in one go and tried each one. That means a protection that only counts how many requests you send can be fooled, because one request can contain many guesses.

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.

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.