SVG SSRF Cheatsheet
Hosts that process SVG can potentially be vulnerable to SSRF, LFI, XSS, RCE because of the rich feature set of SVG.
Images
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<image xlink:href="https://example.com/image.jpg" height="200" width="200"/>
</svg><svg xmlns="http://www.w3.org/2000/svg">
<image href="http://example.com/image.jpg" />
</svg><svg xmlns="http://www.w3.org/2000/svg">
<image href="http://example.com/%69mage.jpg" />
</svg>The <use> tag
<use> tagOption 1:
Option 2:
Option 3
CSS
CSS Stylesheet <link>
<link>CSS stylesheet via @include
@includeCSS Stylesheet via <?xml-stylesheet?>
<?xml-stylesheet?>IP in Hexadecimal
Redirect with data URI
XSLT
Javascript
Inline
External
Inline in event
Last updated