Discovering a weakness leading to a partial bypass of the login rate limiting in the AWS Console
The AWS Console authentication endpoint applied a rate limit that could be partially bypassed by sending authentication attempts in parallel batches, allowing an attacker to try more than 280 passwords per minute. This could enable brute-force or credential stuffing attacks against IAM users without MFA.
Christophe Tafani-Dereeper Follow
Published on securitylabs.datadoghq.com
Cloud Security Researcher and Advocate](https://securitylabs.datadoghq.com/articles/?author=ChristopheTafani-Dereeper)
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 only counted requests sequentially and did not account for parallel bursts within a short window, allowing a higher effective rate.
Impact
An attacker could attempt brute-force or credential stuffing attacks at a higher rate than intended, but only against IAM users without MFA, and AWS has since mitigated the issue.
What the attacker needed
Target IAM username; No MFA on target account; Network access to AWS sign-in
The fix
AWS rolled out a more aggressive rate limiting mechanism that considers a larger time window and blocks bursts.
How it was found
- Send a POST request to the AWS Console authentication endpoint with an IAM username and a candidate password.
- Observe that after 30 invalid passwords, the server responds with a rate limit message asking to wait 4 seconds.
- Modify the script to pause for 5 seconds when the rate limit message appears, then continue.
- Further modify the script to send 30 authentication attempts in parallel using threads, then pause for 5 seconds.
- Run the script with a wordlist and observe that it can try over 280 passwords per minute without being blocked.
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.
When you log in to a website, the server checks your password. To stop attackers from guessing many passwords quickly, servers often limit how many attempts you can make in a short time. Here, the limit could be avoided by sending many guesses at once, so an attacker could try lots of passwords fast. This only mattered for accounts without a second login step (MFA).
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.