Azure Active Directory Security Feature Bypass Vulnerability (CVE-2023-36871)
A security feature bypass in Azure Active Directory allows an attacker with low privileges on a user's device to craft a long-lived assertion using the Windows Hello for Business key and request a Primary Refresh Token from another device, impersonating the victim. The vulnerability affects the integrity of the assertion.
Originally disclosed on Microsoft
FAQ
What kind of security feature could be bypassed by successfully exploiting this vulnerability? An attacker can bypass Windows Trusted Platform Module by crafting an assertion and using the assertion to request a Primary Refresh Token from another device.
FAQ
According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? An attacker would require access to a low privileged session on the user's device to obtain a JWT (JSON Web Token) which can then be used to craft a long-lived assertion using the Windows Hello for Business Key from the victim's device.
FAQ
According to the CVSS metric, successful exploitation of this vulnerability could lead to total loss of integrity (I:H)? What does that mean for this vulnerability? By exploiting this vulnerability, an attacker can craft a long-lived assertion and impersonate a victim user affecting the integrity of the assertion.
FAQ
What actions do I need to take to be protected from this vulnerability? Customers should install Windows updates released on or after July 11, 2023 on client devices with Windows OS. Please refer the affected software section to apply the update.
FAQ
What actions do I need to take to be protected from this vulnerability? To be protected, apply the fix as follows: Install Windows updates released on or after July 11, 2023 on all AD FS servers of the farm. Then, enable the setting by running the following PowerShell command on the primary AD FS server of the farm: Set-AdfsProperties-EnforceNonceInJWT Enabled Important You may see authentication failures in certain scenarios when there are clients that are not updated and send JWT authentication requests to the AD FS server. In such cases, we recommend updating all clients by installing the Windows update released on or after July 11, 2023. Alternatively, an administrator can disable the EnforceNonceInJWT setting and monitor the AD FS servers for the logging of Event 187 to identify potential requests that could be rejected when EnforceNonceInJWT is set to Enabled . After confirming the absence of Event 187 on AD FS servers for a defined period of time, the EnforceNonceInJWT setting must be updated to Enabled .
Azure Active Directory
Azure Active Directory
Microsoft
Microsoft
Customer Action Required
Yes
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 system did not properly enforce a nonce (a one-time random value) in JWT authentication requests, allowing a crafted assertion to be reused to obtain a Primary Refresh Token.
Impact
An attacker could impersonate a victim user, affecting the integrity of the assertion, but only if they already have low-privileged access to the victim's device.
What the attacker needed
Low-privileged access to victim's device; Windows Hello for Business key on victim device; AD FS server with vulnerable configuration
The fix
The vulnerability was fixed by installing Windows updates released on or after July 11, 2023 on client devices and AD FS servers, and enabling the EnforceNonceInJWT setting on the primary AD FS server.
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.
This bug lets someone who already has limited access to a victim's computer trick the login system into giving them a special token that proves they are the victim. They do this by misusing a security chip called TPM and a Windows feature for passwordless login. With that token, they can act as the victim on other devices.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.