Reflected XSS on /admin/stats.php
A reflected cross-site scripting flaw exists in the admin statistics page, where a crafted URL parameter is echoed into the page without proper encoding. An attacker could use this to steal cookies or redirect a victim to a malicious site, but the payload only runs after the victim presses a specific key combination.
- Triaged in 22 hours
- Fixed in 39 hours
- Disclosed after 5 days
I found a reflected XSS attack on /admin/stats.php.
Revive-Adserver version is revive-adserver-5.1.0.
-
Go to
http://revive-adserver.loc/admin/stats.php?statsBreakdown=day&listorder=key&orderdirection=up&day=&setPerPage=15%27%20onclick=alert(document.domain)%20accesskey=X%20&entity=global&breakdown=history&period_preset=last_month&period_start=01+December+2020&period_end=31+December+2020 -
For the payload to be executed, the user needs to press the access key combination for the hidden input field (for Firefox,
Alt+Shift+X, see this for other browsers).

Impact
With this vulnerability, an attacker can for example steal users cookies or redirect users on malicious website.
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 application reflects a URL parameter into the HTML without proper output encoding, allowing an injected event handler to execute when the access key is pressed.
Impact
An attacker could steal users' cookies or redirect them to a malicious website, but the exploit requires the victim to press a specific key combination.
What the attacker needed
Victim visits crafted URL; victim presses access key combination
How it was found
- Visit the crafted URL on the admin statistics page with the malicious parameter.
- Press the access key combination (e.g., Alt+Shift+X in Firefox) to trigger the injected event handler.
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.
Cross-site scripting (XSS) is when a website takes input from a URL and puts it into the page without cleaning it, so an attacker can sneak in code that runs in the victim's browser. Here, a parameter in the admin statistics page is reflected back, and the injected code only runs if the victim presses a special key combination. This could let an attacker steal the victim's login cookies or send them to a malicious site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.