An elevation of privilege vulnerability exists in Microsoft.AspNetCore.DataProtection versions 10.0.0 through 10.0.6. The vulnerability allows an attacker to forge authentication cookies and decrypt some protected payloads. This is due to improper verification of cryptographic signatures, specifically a padding oracle vulnerability.
The vulnerability was introduced during the development of version 10.0 and is present in the managed authenticated encryptor code path, which is used on non-Windows operating systems, and also on Windows when not using the net10.0 target framework. The patched version, 10.0.7, corrects the validation routine to reject payloads with all-zero HMAC bytes.
The vulnerable function is Microsoft.AspNetCore.DataProtection.Managed.ManagedAuthenticatedEncryptor.Decrypt, which is responsible for decrypting and validating the protected payload. During exploitation, this function would appear in a runtime profile or stack trace.
To mitigate this vulnerability, users should upgrade to Microsoft.AspNetCore.DataProtection version 10.0.7 or later. Additionally, it is recommended to rotate the DataProtection key ring to invalidate any tokens that may have been illegitimately issued.