Skip to content
Business logic Write-up Beginner

Breaking Through the Limits: How I Bypassed Rate-Limiting with IP and Username Rotation

The application's login rate limit could be reset by alternating changes to the source IP address and the username, allowing an attacker to sustain brute-force attempts. The sign-up page also revealed whether a username was already taken, enabling enumeration of valid usernames to target.

abdelrahhmanhisham Follow

Published on medium.com

السلا� عليك� و رح� ه الله و بركاته الح� د لله وحده و الصلاه و السلا� علي � ن لا نبي بعده ا� ا بعد

Abdelrahhmanhisham, on medium.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-limit counters for IP address and username were reset independently, so alternating changes to either value cleared the limit.

Impact

An attacker with a list of valid usernames could carry out sustained brute-force password guessing against accounts.

What the attacker needed

Multiple IP addresses available; a list of candidate usernames; no account needed to reach login

How it was found

  1. Send login attempts until the 100-per-10-minutes limit is reached.
  2. Change the source IP address to reset the limit once.
  3. Change the username to reset the limit again, then alternate between the two.
  4. Use the sign-up page to test guesses and note which return an 'already taken' response.

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 rate limit is a cap on how many tries you get in a period, meant to slow down password guessing. Here the cap was tracked separately for each IP address and each username, so switching one of them cleared the counter. The sign-up form also told attackers which usernames exist, giving them a list to aim at.

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.