Chromium
A copy-and-paste path allowed arbitrary JavaScript to run in the context of a page such as Blogger. An attacker could place crafted content on their own site, get the victim to copy it and paste it into a rich editor, and script would execute when the pasted content was clicked.
Published on bugs.chromium.org
It abuses <use> element within <svg> which basically includes another SVG style and inserts it into its shadow DOM. The imported SVG is not sanitized hence making it possible to add <a> tag with javascript: href.
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
Impact
Script could run in the context of the site where the content was pasted, but the attack required the victim to copy from the attacker's page, paste it and then click the pasted content.
What the attacker needed
Victim copies content from attacker page; victim pastes it into a rich editor; victim clicks the pasted content
How it was found
- Open the attacker's demonstration page and press the copy button.
- Create a new post in Blogger and paste the copied content.
- Click on the pasted text, which triggers the script.
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.
When you copy content from a web page and paste it into another site's editor, the browser and the editor try to keep the formatting. Here the pasted content carried a hidden instruction that made the browser run code from the attacker once the victim clicked it. That kind of injected code is called cross-site scripting, or XSS, and it lets an attacker act as the victim on the affected site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.