Skip to content
XSS Disclosed report Beginner

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.

pocas142 Follow

Originally disclosed on Bugcrowd

  • 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

The original report as published on Bugcrowd, by pocas142. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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

  1. Craft a URL with a malicious payload in the clubsubscription parameter.
  2. Open the URL in a browser.
  3. 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.

More by pocas142

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.