Skip to content
Business logic Disclosed report Beginner CVE-2022-2368

Microweber before 1.2.21 allows attacker to bypass IP detection to brute-force password

The login API blocks an IP address after more than five failed login attempts, but an attacker can bypass this by sending a spoofed X-Forwarded-For header to make each attempt appear from a different IP. This allows unlimited password brute-force attempts.

microweber/microweber

Originally disclosed on huntr

In the login API, an IP address will by default be blocked when the user tries to login incorrectly more than 5 times. However, a bypass to this mechanism is possible by abusing a X-Forwarded-For header to bypass IP detection and perform a password brute-force. A patch for this issue is available in Microweber version 1.2.21.

From the GitHub Advisory Database (GHSA-9wqr-9787-p4rf, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 application trusts the client-supplied X-Forwarded-For header to determine the client IP for rate limiting, instead of using the actual connection IP or a trusted proxy configuration.

Impact

An attacker could perform unlimited password brute-force attempts against user accounts, potentially leading to account takeover.

What the attacker needed

Login API accessible; attacker can send custom headers

The fix

The issue was fixed in Microweber version 1.2.21.

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.

The login page tries to stop people from guessing passwords by blocking an IP address after five wrong tries. But the server trusts a header called X-Forwarded-For, which the client can set to any value, so the attacker can pretend to come from a new IP each time. This lets them keep guessing passwords without being 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.

More from microweber/microweber

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.