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.
- 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:
- Login with valid credentials of the user.
- Go to inventory > Website > Website Properties
- Fill the form and Enter Website URL as "http://Test"><img src=x onclick=window.location="http://google.com">". Click Save Changes.
- Login with an administrator account.
- 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
- 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
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
- Log in with a valid user account.
- Go to inventory > Website > Website Properties.
- Fill the form and enter a website URL containing a script payload, then save.
- Log in with an administrator account.
- Open the affiliate-preview.php page with specific parameters.
- 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.