Skip to content
Race condition Write-up Intermediate

Security Feature Bypass In ASP.NET and Visual Studio – Race Condition

ASP.NET Core's SignInManager had a race condition in its account lockout logic, so concurrent login attempts could update the failed-attempt counter inconsistently. An attacker could therefore make far more brute-force login attempts than the configured lockout threshold before the account was locked.

Jack Moran Follow

Published on zxsecurity.co.nz

During an engagement, Jack Moran, with the aide of TC and Ethan McKee-Harris, discovered a security feature bypass within ASP.NET SignInManager. The SignInManager was found to be susceptible to a race condition which when exploited could allow for thousands of brute-force login attempts to be conducted before ever…

Jack Moran, TC, Ethan McKee-Harris, on zxsecurity.co.nz

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 SignInManager updated the failed-attempt counter without proper concurrency control, so simultaneous requests overwrote each other's updates and the lockout threshold was not reliably enforced.

Impact

An attacker could perform thousands of brute-force login attempts before the lockout threshold was triggered, potentially guessing user credentials.

What the attacker needed

ASP.NET Core app using SignInManager; account lockout enabled; ability to send concurrent requests

The fix

Microsoft fixed the issue so that the failed-attempt count update is handled correctly under concurrency.

How it was found

  1. Set up a test ASP.NET web app with individual authentication and enable account lockout.
  2. Configure the login page to lock out on failure and set a low maximum failed attempt count.
  3. Send many concurrent login requests, most with wrong passwords and one with a correct password.
  4. Observe that the number of failed attempts before lockout far exceeds the configured threshold.

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 type a wrong password several times, a website usually locks your account for a while to stop guessing. This report found that if you send many login attempts at the same moment, the website's counter gets confused and does not lock the account as early as it should. That lets an attacker keep guessing passwords much longer than intended.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.