Skip to content
XSS Advisory Beginner

GHSL-2020-152: Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) in DualAuthCore

The application is vulnerable to cross-site scripting (XSS) and cross-site request forgery (CSRF) because it does not include fixes for known ASP.NET Core template vulnerabilities. An attacker could trick a logged-in user into clicking a malicious link, leading to privilege elevation or loss of recovery codes, potentially causing a per-user denial of service.

jarlob Follow

Originally disclosed on GitHub Security Lab

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

jarlob, on GitHub Security Lab

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 privilege elevation, and the CSRF may cause a per-user denial of service by invalidating recovery codes, potentially locking the user out.

What the attacker needed

Victim is logged in; victim clicks a malicious link; for CSRF: victim has 2FA enabled

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

  1. Log in as a user.
  2. For XSS: trick the user into clicking a malicious link to the EnableAuthenticator page with a crafted AuthenticatorUri parameter.
  3. Enter an invalid verification code to trigger the XSS payload.
  4. For CSRF: trick the user into visiting a malicious site that makes a request to the GenerateRecoveryCodes endpoint.

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 problems in a web application. The first, cross-site scripting (XSS), lets an attacker run their own code in a victim's browser if the victim clicks a crafted link. The second, cross-site request forgery (CSRF), tricks a logged-in user into performing actions they didn't intend, like generating new recovery codes, which could lock them out of their account.

What is XSS?

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

More by jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

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.