FirstBlood-#343 — Reflective XSS on login.php via goto parameter after successful login
This issue was discovered on FirstBlood v2
On 2021-10-25, panya Level 7 reported:
Steps to reproduce:
- Fill in a valid doctor credentials.
- Press on the "Secure Login" button.
There will be an alert with the text: "https://579a3c7897af-panya.a.firstbloodhackers.com"
gotoparameter value should be properly escaped or sanitized.
An attacker could execute JS code on behalf of a user of this site.
FirstBlood ID: 39
Vulnerability Type: Reflective XSS
Our mistake: The parameter "goto" on login.php should of been "fixed" when redirecting to prevent XSS but due to an oversight from Sean and Karl, the new code did not make it into production. This has since updated since the event ended and you're recommended to re-try. It's related to bug
ID 26 because the idea was developers fixed *this* one (when redirecting) but forgot the other reflection.