Reflected XSS via HTML Injection - 2
The report claims that a URL parameter on a Rakuten shopping page is inserted into the page without escaping, allowing an attacker to inject HTML and trigger cross-site scripting. The proof of concept uses an iframe with a data URL containing an SVG onload handler to execute script.
- Accepted in 3 days
- Fixed in 4 months
- Disclosed after 11 months
Summary by pocas142
Summary
I found a cross site scripting on https://fr.shopping.rakuten.com/connect
POC
url : https://fr.shopping.rakuten.com/connect?clubsubscription="><iframe%20src="data:text/html;base64,PHN2Zy9vbmxvYWQ9YWxlcnQoMSk%2b"></iframe>
Explanation
When I connect to the above URL, the value of the url parameter is inserted into the DOM without escaping, resulting in HTML Injection. So I can use this to be trigger XSS because HTML Injection happens. Thanks
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 'clubsubscription' parameter into the HTML response without proper output encoding or sanitisation.
Impact
An attacker could execute arbitrary JavaScript in the context of the victim's browser, potentially leading to session hijacking or other client-side attacks.
What the attacker needed
Victim clicks a crafted link
How it was found
- Craft a URL with a malicious payload in the clubsubscription parameter.
- Open the URL in a browser.
- The payload is inserted into the DOM and executes, triggering an alert.
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.
When a website takes something you type in the address bar and puts it directly into the page without cleaning it first, an attacker can sneak in their own code. Here, the attacker put HTML code in a link, and when someone opened it, the browser ran a small script that could do things like steal cookies or change the page. This is called cross-site scripting, or XSS.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.