HexBrain

U.S. Dept Of Defense · Report #2417864

Reflected XSS on error message on Login Page

Validstatus
mediumseverity
44upvotes
3 May 2024disclosed

How it was found

Greetings!

I've found a reflected XSS on a login page on█████ . The vulnerable link is: https://███████/users/login?error=<img src='x' onerror="alert(document.domain)">

█████████

Impact

An attacker can inject crafted javascript that can steal user cookies, impersionate, steal information, deface the website and redirect user to another domain

System Host(s)

██████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Access https://██████/users/login?error=<img src='x' onerror="alert(document.domain)">

Suggested Mitigation/Remediation Actions

Sanitize the output with htmlspecialchars();

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original