Skip to content
XSS Advisory Beginner

GHSL-2020-148: Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) in anjoy8/ChristDDD

The application was built from ASP.NET Core templates that still contained two known flaws: a reflected XSS in the authenticator setup page and a CSRF issue on the recovery-code generation page. A logged-in user who followed a crafted link could have script run in their session, or could have their recovery codes silently regenerated, potentially locking them out of their account.

jarlob Follow

Originally disclosed on GitHub Security Lab

ChristDDD 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 could lead to elevation of privileges, and the CSRF could cause a per-user denial of service by invalidating recovery codes, though both depend on tricking a logged-in user.

What the attacker needed

Victim is logged in; victim clicks a crafted link; 2FA enabled for the CSRF case

How it was found

  1. Send the logged-in victim a crafted link to the authenticator setup page.
  2. Have the victim enter an invalid verification code on that page.
  3. The injected script then runs in the victim's session.

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 project was created from a standard template that had two known bugs which were never patched. One lets a crafted link inject a script into a page the victim is viewing, so the script runs as that user. The other lets a link quietly trigger an action on the site, here replacing the backup codes used to recover an 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.