GHSL-2020-154: Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) in OnionArch
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 (elevating privileges) or to regenerate recovery codes, potentially locking the user out of their account.
OnionArch 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 cause a per-user denial of service by invalidating recovery codes, potentially locking the user out.
What the attacker needed
Logged-in user; victim clicks a link; 2FA enabled for CSRF
The fix
The application should be modified according to the instructions in the ASP.NET advisories for CVE-2018-0784 and CVE-2018-0785.
How it was found
- Log in to the application.
- For XSS: visit the crafted EnableAuthenticator URL with a malicious AuthenticatorUri parameter and enter an invalid verification code.
- For CSRF: visit the GenerateRecoveryCodes URL or a malicious site that makes the request.
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.
Cross-site scripting (XSS) lets an attacker run their own code in a victim's browser, often by tricking them into clicking a crafted link. Cross-site request forgery (CSRF) tricks a logged-in user's browser into sending a request the user did not intend, like changing account settings. Here, both flaws come from missing patches in the web framework's default templates.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.