XSS via Loading Remote SVG
An SVG file loaded through embedly was served with an image content type, but because SVG was allowed, script inside the SVG executed. An attacker could run JavaScript in the context of the affected site.
This XSS was via embedly which controls the content-type response to image types. Luckily .svg was allowed.
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
An attacker could execute JavaScript in the victim's browser in the context of the affected site, potentially stealing data or performing actions as the user.
What the attacker needed
Ability to load a remote SVG through embedly
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 website let users load remote images through a service called embedly. That service marked files as images, which is normally safe, but it also accepted SVG files. SVG files can contain code, so the code ran in the browser and could act as the logged-in user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.