How I was able to bypass strong XSS protection in well known website imgur.com
The album description field on imgur.com filtered out script tags and event handlers, but an attacker could bypass this by inserting a script tag inside an event handler name, allowing stored cross-site scripting. This could let an attacker run arbitrary JavaScript in a victim's browser when they viewed the album.
Published on medium.com
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Ability to create or edit an album; victim views the album
The fix
The report states it was patched after being reported.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website lets an attacker sneak JavaScript code into a page that other people view. The site tried to block this by removing dangerous tags, but the attacker found a way to hide the code so the filter missed it. This meant the malicious script could run in the browser of anyone who saw the album.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.