Skip to content
XSS Write-up Intermediate

Double URL-encoded XSS

A redirect endpoint reflected the 'redir' parameter into a JavaScript redirect call without proper sanitisation, allowing an attacker to inject a double URL-encoded payload that executed script when the victim clicked a button.

vict0ni Follow

Published on web.archive.org

Right after the quarantine ended I had a mini burn out for more than a month, where I didn’t even bother to try and hunt for bugs. After those one and a half months of trying to find my motivation again, I found a XSS that required a bit more thinking than the typical javascript:alert(1) cases.

vict0ni, on web.archive.org

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

Impact

An attacker could execute arbitrary JavaScript in the context of the vulnerable site when a victim clicks the button, potentially stealing cookies or performing actions as the victim.

What the attacker needed

Victim clicks a crafted link and then the button

How it was found

  1. Visit the legacy-browser endpoint with a redir parameter containing a double URL-encoded payload.
  2. Click the button on the page.
  3. The payload executes as JavaScript before the redirect to '/'.

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.

The website had a button that sent you to another page based on a value in the web address. The site put that value directly into some JavaScript code without cleaning it properly, so a crafted link could make the button run harmful code in the visitor's browser.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by vict0ni

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.