Reflected XSS through the ct0 delivery parameter
The ct0 request parameter, used to pass a third-party click tracking URL to delivery scripts, was prepended unescaped to the click URL after only checking that it began with http:// or https://. An unauthenticated attacker could craft a delivery URL that executes JavaScript in the delivery origin when a victim visits it.
- Fixed in 5 hours
- Disclosed after 19 hours
Summary by the program
Description
HackerOne community member Le Ngoc Thuan (h2w) reported reflected XSS through the ct0 request parameter, used to pass a third-party click tracking URL to the delivery scripts. The value only had to start with http:// or https:// and was prepended unescaped to the click URL. An unauthenticated attacker could craft a delivery URL that executes JavaScript in the delivery origin when visited. Exploitation requires an active banner whose HTML uses the raw {clickurl} macro; the {clickurl_html} and {clickurl_enc} macros escape the value and are not affected.
Resolution
The ct0 parameter is now ignored unless it is an HTTP or HTTPS URL made only of characters that cannot break out of the banner markup. Quotes, fragments and HTML entities are not accepted.
Security advisory: https://www.revive-adserver.com/security/revive-sa-2026-005
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated attacker could execute JavaScript in the delivery origin, but only when an active banner uses the raw {clickurl} macro; banners using {clickurl_html} or {clickurl_enc} are not affected.
What the attacker needed
No account needed; victim visits a crafted delivery URL; an active banner using the raw {clickurl} macro
The fix
The ct0 parameter is now ignored unless it is an HTTP or HTTPS URL made only of characters that cannot break out of the banner markup, with quotes, fragments and HTML entities rejected.
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 report has not been written yet. The Original tab links to the source.
A web page can include a link that points to another site, and the software here let a visitor supply part of that link through the address they typed. Because the supplied part was pasted in without cleaning, someone could put code in it that the victim's browser would run as if it came from the site itself. This kind of flaw is called cross-site scripting, or XSS: running an attacker's script inside a trusted site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.