Skip to content
Open redirect Disclosed report Beginner CVE-2021-22871

Cross Site Scripting and Open Redirect in affiliate-preview.php file

A stored cross-site scripting vulnerability exists in the affiliate-preview.php file, where a user-supplied website URL is saved without proper sanitisation. An attacker could inject a script that executes when an administrator views the preview page, potentially redirecting the admin to a malicious site.

keyurvala Follow

Originally disclosed on HackerOne

  • Triaged in 14 hours
  • Fixed in 58 days
  • Disclosed after 10 months

Summary:

Stored XSS can be submitted on the Website using Default Manager, and anyone who will check the report the XSS and Open Redirect will trigger.

Description:

Stored XSS, also known as persistent XSS, is the more damaging than non-persistent XSS. It occurs when a malicious script is injected directly into a vulnerable web application.

Steps To Reproduce:

  1. Login with valid credentials of the user.
  2. Go to inventory > Website > Website Properties
  3. Fill the form and Enter Website URL as "http://Test"><img src=x onclick=window.location="http://google.com">". Click Save Changes.
  4. Login with an administrator account.
  5. Open http://localhost/hackerone/www/admin/affiliate-preview.php?codetype=invocationTags%3AoxInvocationTags%3Aspc&block=0&blockcampaign=0&target=&source=&withtext=0&charset=&noscript=1&ssl=0&comments=0&affiliateid=1&submitbutton=Generate
  6. Click on Header Script Banner there is image click on that it will execute xss or open redirect.

Impact

###Impact Users can redirect the admin user or any normal user to any other website evil.com.

Attachments

XSS_on_Revive.mp4 From the original on HackerOne

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

Impact

An attacker could redirect an administrator or any normal user to an arbitrary website.

What the attacker needed

A valid user account; victim (admin) opens the preview page; victim clicks the banner image

How it was found

  1. Log in with a valid user account.
  2. Go to inventory > Website > Website Properties.
  3. Fill the form and enter a website URL containing a script payload, then save.
  4. Log in with an administrator account.
  5. Open the affiliate-preview.php page with specific parameters.
  6. Click on the Header Script Banner image to trigger the XSS or open redirect.

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.

This report describes a stored cross-site scripting (XSS) bug. A user can save a website address that contains hidden code. When an administrator later opens a preview page, that code runs in the admin's browser, which can send the admin to another website.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More from Revive Adserver

View all

The newest disclosed reports for this program.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.