Reflected XSS on /admin/userlog-index.php
A parameter on the admin user log page was reflected into the HTML response without proper encoding, allowing injected script to run. An attacker could use this to steal a logged-in user's cookies or redirect them to a malicious site.
- Triaged in 22 hours
- Fixed in 24 hours
- Disclosed after 5 days
I found a reflected XSS attack on /admin/userlog-index.php.
Revive-Adserver version is revive-adserver-5.1.0.
- Go to
http://revive-adserver.loc/admin/userlog-index.php?advertiserId=0&publisherId=0&period_preset=all_events%3C/script%3E%3Cscript%3Ealert(document.domain)%3C/script%3E%3Cscript%3E&period_start=&period_end=&setPerPage=10 - Malicious code executed

Rendered response from server:

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 period_preset parameter was written into the page without HTML-encoding, so injected markup was treated as code.
Impact
An attacker could steal a logged-in user's cookies or redirect them to a malicious website.
What the attacker needed
Victim visits a crafted URL
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) happens when a website takes something a user typed into the address bar and puts it straight into the page without cleaning it. Here the 'period_preset' value was placed into the page as if it were code, so a crafted link could make the browser run an attacker's script. That script runs with the site's permissions and can read cookies or send the victim elsewhere.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.