Cythera Cyber Security

Security Bypass Risk in ASP.NET Core and Visual Studio

A race condition in ASP.NET’s SignInManager permits attackers to sidestep key security controls, undermining authentication safeguards and increasing exposure to account compromise.
Talk to an expert

Introduction

During an engagement, Cythera discovered a security feature bypass in the ASP.NET SignInManager. The issue stems from a race condition that allows a malicious actor to initiate thousands of brute-force login attempts without activating the account lockout mechanism. This bypass significantly weakens login protection and could be exploited to gain unauthorised access to user accounts.

The Vulnerability

In a web application penetration test, Cythera observed unexpected behaviour in Zitadel’s login lockout threshold. Despite a default configuration that should trigger a lockout after three failed attempts, further analysis revealed inconsistent enforcement. In some tests, users were allowed between 10 and 50 incorrect attempts without being locked out, indicating a flaw in how the system handles failed login limits under certain conditions.

Vulnerability Discovery

CVE-2023-33170 Attribution

Microsoft Security Response Center (MSRC) acknowledged this vulnerability, as documented in their official records.

What Happened?

The issue was traced back to ASP.NET’s SignInManager, a function that manages user login using asynchronous operations. In scenarios where multiple threads access or alter a shared resource such as a database, race conditions can occur. These conditions arise when two or more processes simultaneously modify data, leading to inconsistent outcomes.

In this case, database logs revealed errors such as DbUpdateConcurrencyException, which indicated that updates expected to affect one row were in fact affecting none. This suggests that another concurrent process had already modified or deleted the data.

This pattern revealed that multiple login attempts were being processed in parallel. Because of this, the database could not enforce lockout policies consistently. The race condition enabled brute-force login attempts to continue without triggering the account lockout threshold as expected.

Proof of Concept

Security researcher Jack Moran developed a proof-of-concept (PoC) that confirmed the vulnerability. The test environment simulated thousands of concurrent login requests, mixing incorrect credentials with one valid login. Due to the race condition, the system failed to enforce proper lockouts.

The PoC classified login outcomes into three categories:

  • Fail: Invalid login attempt returned a standard error response.
  • Lockout: Reached the configured lockout policy, redirecting the user to a lockout page.
  • Success: A valid login succeeded and redirected to the homepage.

This simulation showed that successful logins could still occur despite reaching the lockout threshold, confirming that the system was vulnerable to race-condition-based brute-force attacks.

Testing Environment Setup

To ensure the issue was not specific to a particular project, Ethan McKee-Harris created a fresh test environment using Microsoft’s official instructions for building a web app with user authentication.

Steps taken included:

  • Creating a new web application with individual account authentication.
  • Installing the necessary identity scaffolding and database packages.
  • Enabling the lockoutOnFailure option in the login method.
  • Configuring the app to enforce account lockout policies.

These steps validated that the vulnerability was reproducible in a standard environment and not tied to a unique setup.


CIO
Government Agency
Cythera operates as an extension of our team. When we call there is an immediate response and the person that answers our call is the person that resolves our issue. Cythera understands our network, and more importantly, has taken the time to understand our business. We find it easy to work with Cythera. They are approachable, flexible and have taken the time to build deep relationships with our team. It is a partnership and friendship. Cythera’s personalised, highly specialised services makes all the difference. We would recommend Cythera to anyone in the industry looking for a managed services partner.
Expert methods

We have the tools to pinpoint risks

Whether it’s hidden vulnerabilities or patterns you might miss, we help you stay one step ahead and make confident, informed decisions. Understand how our services can help your business uncover critical risks

Talk to an expert
Employee Cyber Training & Awareness
Your people are your first line of defence. Our cyber training builds awareness sharpens instincts and turns everyday staff into assets.
Advisory
When clarity is critical and stakes are high, our advisory services deliver strategic, executive-level security expertise that empowers decision-making and resilient operations.