Skip to content
XSS Disclosed report Beginner

Reflected XSS via HTML Injection

The url parameter on the Rakuten shopping connect page was inserted into the page without escaping, allowing HTML injection. An attacker could craft a link that injects an iframe with a data URI containing an SVG onload handler, which executes script in the victim's browser.

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?url="><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 inserted the url parameter into the DOM without proper output encoding or escaping.

Impact

An attacker could execute arbitrary JavaScript in the context of the Rakuten shopping site when a victim visits a crafted link, potentially stealing cookies or performing actions on behalf of the user.

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.

When a website takes something from the address bar (like a parameter) and puts it directly into the page without cleaning it, an attacker can add their own HTML or JavaScript. Here the url parameter was not escaped, so the attacker could insert an iframe that loads a data URI containing an SVG with an onload handler, which runs script. This lets the attacker run code in the victim's browser when they click a crafted link.

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.