GHSL-2020-157: Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) in IdentityManager
The application is vulnerable to cross-site scripting (XSS) and cross-site request forgery (CSRF) because it lacks fixes for known ASP.NET Core template issues. An attacker could trick a logged-in user into clicking a malicious link to execute script (potentially elevating privileges) or to regenerate recovery codes, leading to a per-user denial of service.
IdentityManager is vulnerable to Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) that may lead to the elevation of privileges and per-user denial of service (DoS).
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
Impact
The XSS may lead to elevation of privileges, and the CSRF may lead to a per-user denial of service by invalidating recovery codes.
What the attacker needed
Victim is logged in; victim clicks a malicious link; 2FA enabled for CSRF impact
The fix
The vendor fixed the issue by applying the instructions from the ASP.NET advisories.
How it was found
- Log in as a user.
- Click a malicious link that includes a crafted AuthenticatorUri parameter.
- Enter an invalid verification code to trigger the script.
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.
This report describes two security bugs in a web application. One lets an attacker run their own code in a victim's browser if the victim clicks a bad link (cross-site scripting). The other lets an attacker make the victim's browser perform an unwanted action, like resetting recovery codes, which could lock the victim out (cross-site request forgery).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.