Reflected cross site scripting in login page
The login page's 'path' parameter is not sanitised, allowing a javascript: URL to be injected. An attacker can send a crafted link that executes script in the victim's browser when opened.
Originally disclosed on Bugcrowd
- Disclosed after 2 months
Summary by nitin_ydv453
One of Opera's endpoint that is vulnerable to an injection vulnerability - namely a reflected injection of JavaScript, also known as Reflected Cross-Site Scripting (XSS). As per OWASP's definition: "Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. " This happens because When we log in. There is a parameter (path which is vulnerable to cross-site scripting and Open redirect) that does not properly sanitize/escape user input, allowing injection to occur.
Report details
-
Submitted
09 Jun 2021 13:44:56 UTC
-
Target Location
*.yoyogames.com -
Target category
API Testing
-
VRT
Cross-Site Scripting (XSS) > Reflected > Non-Self
-
Priority
P3
-
Bug URL
https://accountsstage.yoyogames.com/login -
Description
Hello,
I found 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.
Steps:
- Send this link to any user https://accountsstage.yoyogames.com/login?path=javascript:alert(%27KD%27)
- Now when the user will open his account an xss alert will pop up
Impact:
We can see it is vulnerable to xss. Once exploited It is possible to steal or manipulate a legitimate user’s session credentials including session cookies.
Thanks, KD :)
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
Root cause
Likely the application reflects the 'path' parameter into a context where it is treated as a URL or script without proper sanitisation or escaping.
Impact
An attacker could steal or manipulate a legitimate user's session credentials, including session cookies.
What the attacker needed
Victim clicks a crafted link
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 user and puts it into a page without cleaning it, so an attacker can make the page run their own code. Here, the login page uses a 'path' value from the link and puts it into the page, so a link containing JavaScript code runs that code in the victim's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.