CVE-2017-11879: Microsoft.AspNetCore.All Open Redirect Vulnerability

HIGH
Advisory Identifier: GHSA-3wcj-rg8q-9cqv
CVSS 8.8
CWE-601
Published
Advisory Summary

CVE-2017-11879 is a HIGH (CVSS 8.8) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Microsoft.AspNetCore.All libraries in the NuGet ecosystem. The issue involves open redirect in asp.net core. Remediation is available by upgrading affected packages to version 2.0.3, 2.0.1.

CVE-2017-11879 at a Glance

CVE Identifier CVE-2017-11879
GHSA Identifier GHSA-3wcj-rg8q-9cqv
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Microsoft.AspNetCore.All
Package Ecosystem NuGet
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2017-11879

To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.All dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Microsoft.AspNetCore.All fixed: 2.0.3
Upgrade Microsoft.AspNetCore.All to 2.0.3
Microsoft.AspNetCore.Mvc.Core fixed: 2.0.1
Upgrade Microsoft.AspNetCore.Mvc.Core to 2.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Microsoft.AspNetCore.All

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-11879, inspect your project dependencies for Microsoft.AspNetCore.All:

inspect dependencies for Microsoft.AspNetCore.All

Analyze the terminal output to locate any version of Microsoft.AspNetCore.All in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.3), 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Microsoft.AspNetCore.All, 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

ASP.NET Core 2.0 allows an attacker to steal log-in session information such as cookies or authentication tokens via a specially crafted URL aka "ASP.NET Core Elevation Of Privilege Vulnerability".

CVE-2017-11879 Affected Microsoft.AspNetCore.All Versions

2 component(s)
Fixed Versions:
2.0.32.0.1
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.AspNetCore.All
NuGet
≥ 2.0.0
< 2.0.3
2.0.3
Microsoft.AspNetCore.Mvc.Core
NuGet
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
2.0.1

References

Frequently Asked Questions

What is CVE-2017-11879?
CVE-2017-11879 is a security vulnerability in Microsoft.AspNetCore.All involving Open redirect in ASP.NET Core under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Microsoft.AspNetCore.All versions are affected?
Affected versions include releases prior to 2.0.3, 2.0.1 across affected packages: Microsoft.AspNetCore.All, Microsoft.AspNetCore.Mvc.Core.
What version fixes CVE-2017-11879?
Upgrading to 2.0.3, 2.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.AspNetCore.All affected?
Yes, Microsoft.AspNetCore.All is affected in releases prior to 2.0.3. Upgrade your dependency to 2.0.3 or later.
Is Microsoft.AspNetCore.Mvc.Core affected?
Yes, Microsoft.AspNetCore.Mvc.Core is affected in releases prior to 2.0.1. Upgrade your dependency to 2.0.1 or later.
What is the CVSS score of CVE-2017-11879?
CVE-2017-11879 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-11879?
CVE-2017-11879 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check NuGet dependencies for CVE-2017-11879?
Run the dependency tree command: 'inspect dependencies for Microsoft.AspNetCore.All'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3wcj-rg8q-9cqv",
  "modified" : "2022-07-08T19:21:47Z",
  "published" : "2022-05-14T03:47:22Z",
  "aliases" : [ "CVE-2017-11879" ],
  "summary" : "Open redirect in ASP.NET Core",
  "details" : "ASP.NET Core 2.0 allows an attacker to steal log-in session information such as cookies or authentication tokens via a specially crafted URL 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.All"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.Mvc.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ],
    "versions" : [ "2.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-11879"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aspnet/Announcements/issues/277"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/issues/302"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-11879"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-08T19:21:47Z",
    "nvd_published_at" : "2017-11-15T03:29:00Z"
  }
}