Microsoft ASP.NET Core Security Feature Bypass Vulnerability (CVE-2020-1045)
The ASP.NET Core cookie parser decoded entire cookie strings, allowing an attacker to set a second cookie with a percent-encoded name. This could bypass security features that rely on cookie names.
Originally disclosed on Microsoft
Description
A security feature bypass vulnerability exists in the way Microsoft ASP.NET Core parses encoded cookie names. The ASP.NET Core cookie parser decodes entire cookie strings which could allow a malicious attacker to set a second cookie with the name being percent encoded. The security update addresses the vulnerability by fixing the way the ASP.NET Core cookie parser handles encoded names.
ASP.NET
ASP.NET
Microsoft
Microsoft
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 cookie parser decoded the entire cookie string, including the name, instead of only decoding the value, so an encoded name could be interpreted as a separate cookie.
Impact
An attacker could bypass security features that depend on cookie names, though the text does not specify which features or how severe the bypass is.
What the attacker needed
Ability to set cookies for the target site
The fix
The vulnerability was fixed by changing how the ASP.NET Core cookie parser handles encoded names.
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.
Cookies are small pieces of data websites store in your browser. This bug meant the software that reads cookies could be tricked by a specially encoded cookie name into treating it as a different cookie, potentially getting around protections that check cookie names.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.