CVE-2018-0787: Microsoft.AspNetCore.HttpOverrides ASP.NET Core Allow An Elevation Vulnerability
HIGHCVE-2018-0787 is a HIGH (CVSS 8.8) asp.net core allow an elevation vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Microsoft.AspNetCore.HttpOverrides libraries in the NuGet ecosystem. The issue involves asp.net core allow an elevation of privilege. Remediation is available by upgrading affected packages to version 2.0.2.
CVE-2018-0787 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-0787
To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.HttpOverrides dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Microsoft.AspNetCore.HttpOverrides to 2.0.2
Upgrade Microsoft.AspNetCore.Server.Kestrel.Core to 2.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.AspNetCore.HttpOverrides
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-0787, inspect your project dependencies for Microsoft.AspNetCore.HttpOverrides:
inspect dependencies for Microsoft.AspNetCore.HttpOverrides
Analyze the terminal output to locate any version of Microsoft.AspNetCore.HttpOverrides in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Microsoft.AspNetCore.HttpOverrides, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-0787 Affected Microsoft.AspNetCore.HttpOverrides Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.AspNetCore.HttpOverrides
|
NuGet |
≥ 2.0.0
< 2.0.2
|
2.0.2
|
|
Microsoft.AspNetCore.Server.Kestrel.Core
|
NuGet |
≥ 2.0.0
< 2.0.2
|
2.0.2
|
References
Frequently Asked Questions
What is CVE-2018-0787?
Which Microsoft.AspNetCore.HttpOverrides versions are affected?
What version fixes CVE-2018-0787?
Is Microsoft.AspNetCore.HttpOverrides affected?
Is Microsoft.AspNetCore.Server.Kestrel.Core affected?
What is the CVSS score of CVE-2018-0787?
What CWE is associated with CVE-2018-0787?
How can I check NuGet dependencies for CVE-2018-0787?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-365p-96qv-xr7g",
"modified" : "2022-04-26T19:06:29Z",
"published" : "2018-10-16T19:56:59Z",
"aliases" : [ "CVE-2018-0787" ],
"summary" : "ASP.NET Core allow an elevation of privilege",
"details" : "ASP.NET Core 1.0. 1.1, and 2.0 allow an elevation of privilege vulnerability due to how web applications that are created from templates validate web requests, aka \"ASP.NET Core Elevation Of Privilege Vulnerability\".",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.HttpOverrides"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.0.1"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.AspNetCore.Server.Kestrel.Core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.0.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-0787"
}, {
"type" : "WEB",
"url" : "https://github.com/aspnet/Announcements/issues/295"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-365p-96qv-xr7g"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-0787"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/103282"
}, {
"type" : "WEB",
"url" : "http://www.securitytracker.com/id/1040525"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-640" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:54:14Z",
"nvd_published_at" : null
}
}