ASP.NET Core Elevation of Privilege Vulnerability (CVE-2018-0787)
A Kestrel-hosted ASP.NET Core application failed to validate web requests properly, allowing an attacker to inject HTML into a password reset email. Depending on the victim's email client, the injected HTML could trigger as soon as the victim opened that email.
Originally disclosed on Microsoft
Description
An elevation of privilege vulnerability exists when a Kestrel web application fails to validate web requests. An attacker who successfully exploited this vulnerability could perform HTML injection attacks. To exploit the vulnerability, an attacker could send a specially crafted request, containing injected HTML, to the web application. The specially crafted request would initiate a "password reset" email to the target user. Depending on the target user email client, the injected HTML could trigger as soon as the target user opens the "password reset" e-mail. The security update addresses the vulnerability by correcting how a Kestrel web application validates web requests.
ASP .NET
ASP .NET
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 Kestrel web application did not properly validate incoming web requests, so attacker-supplied HTML reached the password reset email.
Impact
An attacker could perform HTML injection attacks that may trigger when the victim opens the password reset email, depending on the victim's email client.
What the attacker needed
Victim opens the password reset email; email client renders injected HTML
The fix
The vulnerability was fixed by a security update that corrects how a Kestrel web application validates web requests.
How it was found
- Send a specially crafted request containing injected HTML to the web application.
- The request initiates a password reset email to the target user.
- The target user opens the password reset email, and the injected HTML may trigger depending on their email client.
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.
A web server called Kestrel did not properly check the requests it received. That let an attacker slip HTML (the code that builds web pages and emails) into a password reset email sent to a victim. When the victim opened the email, their email program might run that injected content.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.