Reflected XSS in /admin/banner-zone.php (v6.0.0+)
A reflected cross-site scripting flaw exists in the banner search field of an admin page, where user input is echoed without proper encoding. An attacker could execute JavaScript in an administrator's browser, potentially leading to session theft or unauthorised actions.
- Triaged in under an hour
- Fixed in 2 hours
- Disclosed after 21 days
##Description: A Reflected Cross-Site Scripting (Reflected XSS) vulnerability. User-supplied input from the banner search fields ("Website") is reflected into the page without proper context-aware encoding
##Step:
- When I create Banners, I click it and click 'Linked Zones'. At that, I insert payload '><script>alert()</script> into 'website' field to search

- As a result, the alert statement is executed on the browser.

Impact
The reflected XSS (demonstrated by "><script>alert(1)</script>) allows execution of attacker-supplied JavaScript in an admin’s browser. This can lead to session theft (if cookies are not HttpOnly), unauthorized admin actions, credential harvesting, and potential full site compromise
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
Root cause
Likely the application fails to encode user input before inserting it into the HTML response, allowing script injection.
Impact
The reflected XSS allows execution of attacker-supplied JavaScript in an admin's browser, which could lead to session theft (if cookies are not HttpOnly), unauthorised admin actions, credential harvesting, and potential full site compromise.
What the attacker needed
Attacker can craft a URL with payload; admin views the crafted URL
How it was found
- Create a banner and open its 'Linked Zones' section.
- Enter a script payload into the 'website' search field.
- Observe the alert executing in the browser.
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 is a reflected cross-site scripting (XSS) bug. When someone types something into a search box on a website, the site normally shows it back safely. Here, the site shows it back without cleaning it, so if an attacker tricks an admin into clicking a special link, harmful code can run in the admin's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.