Skip to content
Business logic Write-up Beginner

Bludit Brute Force Mitigation Bypass

Bludit versions up to 3.9.2 trust the X-Forwarded-For and Client-IP HTTP headers to determine the client IP for its brute-force protection, without validating them. An attacker can spoof these headers to avoid being locked out after 10 failed login attempts, enabling prolonged brute-force attacks.

rastating.github.io

Published on rastating.github.io

Versions prior to and including 3.9.2 of the Bludit CMS are vulnerable to a bypass of the anti-brute force mechanism that is in place to block users that have attempted to incorrectly login 10 times or more. Within the bl-kernel/security.class.php file, there is a function named getUserIp which attempts to determine…

The author, on rastating.github.io

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

The application trusts client-supplied HTTP headers (X-Forwarded-For and Client-IP) to identify the client IP for rate limiting, without validating that the values are legitimate IP addresses or that the request came from a trusted proxy.

Impact

An attacker could perform prolonged brute-force attacks without being blocked after 10 failed attempts, potentially recovering user passwords.

What the attacker needed

Network access to the login page; no account required

The fix

The vulnerability was fixed in versions later than 3.9.2 and a patch was merged.

How it was found

  1. Send a login request with a spoofed X-Forwarded-For header value.
  2. Observe that the failed attempt is logged against the spoofed value in the security log.
  3. Automate generation of unique header values for each attempt to avoid the 10-failure block.

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 is trying many passwords until one works. Bludit tries to block this by counting failed logins per IP address, but it believes the IP address supplied in a header that the client controls. So an attacker can pretend to be a new IP for every attempt and never get blocked.

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.