Reflected XSS in 360totalsecurity
A parameter on a blog page was reflected into an HTML attribute without proper encoding, so a crafted link could break out of the attribute and inject an SVG element with an event handler. An attacker could send such a link to a victim and run script in the blog's origin.
Published on web.archive.org
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the utm_source query parameter was written into an HTML attribute without output encoding or attribute quoting, allowing the value to break out and inject markup.
Impact
An attacker could run script in the blog's origin for anyone who opens the crafted link, though the report does not demonstrate any further consequence.
What the attacker needed
Victim opens a crafted link
How it was found
- Open the blog's home page.
- Go to the WannaCry safe-tips article URL.
- Replace the utm_source value with an SVG payload containing an onLoad handler.
- Load the modified URL and observe the script running.
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 write-up has not been written yet. The Original tab links to the source.
A reflected cross-site scripting (XSS) bug means a value from the web address is placed straight into the page's HTML. Here the utm_source value was inserted inside a link's href attribute, and by closing the quote the author could add their own HTML element that runs JavaScript when the page loads. Anyone who opens the crafted link runs that script as if it came from the site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.