Skip to content
XSS Advisory Intermediate CVE-2019-1302

ASP.NET Core Elevation Of Privilege Vulnerability (CVE-2019-1302)

ASP.NET Core web applications built from vulnerable project templates failed to properly sanitise web requests, allowing content injection. An attacker could send a crafted link that, when clicked, runs script in the logged-on user's security context.

Ian Routledge Follow

Originally disclosed on Microsoft

Description

An elevation of privilege vulnerability exists when a ASP.NET Core web application, created using vulnerable project templates, fails to properly sanitize web requests. An attacker who successfully exploited this vulnerability could perform content injection attacks and run script in the security context of the logged-on user. To exploit the vulnerability, an attacker could send a specially crafted email, containing a malicious link, to a user. Alternatively, an attacker could use a chat client to social engineer a user into clicking the malicious link. However, in all cases to exploit this vulnerability a user must click a maliciously crafted link from an attacker. The security update addresses the vulnerability by correcting the ASP.NET Core project templates.

ASP.NET

ASP.NET

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Ian Routledge ( @ediblecode ). Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 vulnerable ASP.NET Core project templates did not properly sanitise web requests, allowing injected content to be rendered and executed.

Impact

An attacker could perform content injection and run script in the security context of the logged-on user, but only if the user clicked a maliciously crafted link.

What the attacker needed

App built from vulnerable template; victim clicks attacker's link

The fix

The vulnerability was fixed by correcting the ASP.NET Core project templates in a security update.

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.

Some starter templates for building ASP.NET Core websites did not clean up incoming web requests properly. That let an attacker slip harmful content into a page, so their code could run as the person viewing it. The victim had to click a link the attacker sent, for example by email or chat.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.