Skip to content
XSS Disclosed report Beginner CVE-2026-50745

Reflected XSS in stats‑video.php via improperly encoded URL parameters

The stats-video.php script reflected user-supplied URL parameters without proper encoding or sanitisation, because the Smarty custom helper function url did not escape its output. An attacker could craft a link that executes script in a victim's browser.

kanon4 Follow

Originally disclosed on HackerOne

Medium 4.7 View original
  • Disclosed after 15 days

Summary by the program

HackerOne community member Mahmoud Khaled (Kanon4) has reported a missing sanitisation of user input in the stats-video.php script. The way URLs to this script were constructed did not follow best practices, and the output of the Smarty custom helper function url was neither properly encoded nor sanitised, allowing user‑supplied input to be reflected without escaping.

The original report as published on HackerOne, by kanon4. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Root cause

Likely the Smarty url helper echoed URL parameters into the page without HTML-encoding them, and the script did not sanitise the input.

Impact

An attacker could run script in a victim's browser through a crafted link, though the text does not describe any specific harm beyond that.

What the attacker needed

Victim clicks a crafted link

The fix

The url helper should encode its output and the script should sanitise user input before reflecting it.

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.

When a website takes something from the address bar and puts it straight into the page without cleaning it, an attacker can put code in the link. If a victim clicks that link, the code runs in their browser as if the website itself had written it. This is called reflected cross-site scripting, or XSS.

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 kanon4

View all

4 more disclosed reports, best first.

More from Revive Adserver

View all

The newest disclosed reports for this program.

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.