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.
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).
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
- Send the logged-in victim a crafted link to the authenticator setup page.
- Have the victim enter an invalid verification code on that page.
- 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.