Skip to content
XSS Disclosed report Beginner CVE-2021-22874

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.

solov9ev Follow

Originally disclosed on HackerOne

  • 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
_________________2021-01-21_19-31-55.png
_________________2021-01-21_19-31-55.png From the original on HackerOne

Rendered response from server:

_________________2021-01-21_19-32-40.png
_________________2021-01-21_19-32-40.png From the original on HackerOne

Impact

With this vulnerability, an attacker can for example steal users cookies or redirect users on malicious website.

The original report as published on HackerOne, by solov9ev. 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 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.

More by solov9ev

View all

10 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.