Skip to content
XSS Disclosed report Beginner CVE-2026-34915

Reflected XSS via clientid parameter in zone‑include.php

The zone-include.php script in Revive Adserver 6.0.6 and earlier did not properly sanitise the clientid parameter. A low-privileged user could exploit this to perform reflected cross-site scripting attacks.

titanrain Follow

Originally disclosed on HackerOne

Medium 6.1 View original
  • Disclosed after 58 days

Summary by the program

HackerOne community member Kaushalendra Dubey (titanrain) has reported a missing sanitisation of user input in the zone-include.php script of Revive Adserver 6.0.6 and earlier. A low‑privileged user could exploit the clientid parameter to perform reflected XSS attacks.

Input sanitisation has been improved to ensure that all parameters processed by the script are properly validated.

The original report as published on HackerOne, by titanrain. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is Revive Adserver, an open source ad server, and specifically the zone-include.php script. The report covers version 6.0.6 and earlier. The feature in question is the script's handling of its input parameters, in particular clientid.

According to the summary, the script did not sanitise user input properly. A low-privileged user could supply a crafted value in the clientid parameter and have it reflected back into the response, producing a reflected cross-site scripting condition. The weakness is classified as reflected XSS, with a CVSS score of 6.1 and medium severity.

The report was filed through HackerOne by Kaushalendra Dubey (titanrain). Input sanitisation has been improved so that all parameters processed by the script are properly validated.

The summary does not include the exact request, the payload used, or the response that demonstrated execution, so there is nothing further to reproduce here.

Root cause

The program describes the root cause as missing sanitisation of user input in zone-include.php, without saying where the value is written. When a parameter is echoed into an HTML context without context-aware escaping, any markup or script the caller supplies becomes part of the page the browser parses. The program's own wording, "missing sanitisation of user input", points at the input handling rather than at a flaw deeper in the application logic.

Impact

Reflected XSS lets an attacker place script in a page served by the vulnerable application, executing in the security context of that origin. In an ad server this matters: an authenticated operator who follows a crafted link could have actions performed on their behalf, or data visible to their session read and sent elsewhere. The report gives no evidence of specific data exposed or accounts taken over, so the practical impact should be read as the general consequence of script execution on the site's origin.

How this kind of bug works

Reflected XSS arises when an application takes data from the current request and includes it in the response without encoding it for the context where it lands. The browser cannot tell attacker-supplied markup from the application's own markup, so it executes whatever script tags, event handlers or dangerous URL schemes arrive in the page.

The classic delivery is a link: the attacker sends a URL containing the payload to a victim, the victim's browser sends it to the server, and the server echoes it back. Because the script runs under the target's origin, it can read cookies that are not marked HttpOnly, make authenticated requests, read the DOM and rewrite the page. Defences are layered: output encoding appropriate to the sink (HTML body, attribute, JavaScript string, URL), input validation where a strict format is expected, a Content Security Policy that blocks inline script, and HttpOnly and SameSite cookie attributes to limit what stolen sessions can do.

How to test for it

  1. Map every parameter the application reflects. Start with parameters that appear in generated HTML, redirects, error messages and script blocks, and note the exact context each one lands in.
  2. Send a benign marker first, such as a unique alphanumeric string, and confirm it appears in the response unmodified. This separates reflection from blind handling.
  3. Move to context-specific probes. In an HTML body, try characters that would open a tag; inside an attribute, try breaking out of the quotes; inside a script block, try terminating the string. Watch how the application transforms each character: encoding, stripping or leaving it intact.
  4. Confirm execution in a real browser rather than relying on the response body alone. A payload that appears in the source but is neutralised by the parser is not a finding.
  5. Check whether authentication or a particular role is required, and record the lowest privilege that still reaches the sink.

Common false positives: the marker is reflected but HTML-encoded, so no tag can form; the reflection sits inside a JavaScript string that is itself escaped; a web application firewall blocks the probe but the underlying code is still vulnerable (test with encoding variations); the payload only executes in the tester's browser because of an extension or a modified response. Always verify with a clean browser profile and the unmodified response.

How it is fixed

Apply context-aware output encoding at the point where the value is written, not only on input. For HTML bodies, encode the characters that can start markup; for attributes, quote the attribute and encode quotes; for script contexts, serialise data rather than interpolating strings. Where the parameter has a known format, such as a numeric identifier, validate it strictly and reject anything else. Add a Content Security Policy as defence in depth, and set HttpOnly and SameSite on session cookies. The fix described for this report follows the same principle: validate all parameters the script processes.

Hunting notes

Reflected XSS tends to hide in older scripts that predate modern frameworks: include files, legacy endpoints, redirect helpers, error and debug pages, search results, and anything that builds HTML by string concatenation. Parameters named after identifiers, languages, themes, callbacks and return URLs are frequent candidates. Recon signals include endpoints that echo request data in the response, parameters that survive into the page source, and applications with mixed generations of code where some pages are templated and others are not.

To get a report accepted, show the full request and the response proving the payload is unencoded, then a browser screenshot or recording of execution, and state the lowest privilege needed. Explain the concrete consequence for a victim, such as actions performed with their session, rather than only asserting that script runs. If a filter interferes, demonstrate a bypass that still executes. Keep the proof minimal and reproducible so triage can confirm it quickly.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Revive Adserver is a piece of open source software that websites use to show adverts. It stores adverts and decides which one each visitor sees. The report is about one small file inside it, zone-include.php, and about a single input it accepts, called clientid.

To understand the bug you need two everyday ideas. First, a request: when you type an address into your browser or click a link, your browser sends a message to a web server asking for a page, and the server sends a page back. Anything you put in the address bar travels with that request. Second, sanitising input: treating whatever a visitor sends as untrusted text, so that it can never be mistaken for instructions or for part of the page's own code. Think of a comment box on a form: if the site simply pastes your comment into the page without checking it, and you typed something that looks like code, the browser may run it.

The summary says that zone-include.php did not sanitise user input properly. A low-privileged user could exploit the clientid parameter to perform reflected XSS attacks. The browser then treats the crafted value as part of the page. This is called reflected cross-site scripting, or reflected XSS: the malicious content is bounced off the server and back to whoever opens the link, rather than being stored on the site.

The weakness is classified as reflected XSS, with a CVSS score of 6.1 and medium severity. CVSS is a standard scoring system for how serious a security flaw is; 6.1 out of 10 sits in the medium band. The report was filed through HackerOne by Kaushalendra Dubey (titanrain). Input sanitisation has been improved so that all parameters processed by the script are properly validated.

The summary does not include the exact request, the payload used, or the response that demonstrated execution, so there is nothing further to reproduce here.

In general, how this kind of bug works

Reflected XSS happens when a program takes something from the current request and writes it into the page it sends back without encoding it for the place where it lands. The browser has no way to tell text that an attacker supplied from the site's own text, so it runs whatever script arrives in the page.

The usual delivery is a link. The attacker builds a web address that contains the payload, sends it to a victim, the victim's browser asks the server for that address, and the server copies the payload into its reply. Because the script then runs as if it came from the site itself, it can read cookies that are not marked HttpOnly, make requests as the logged-in user, read and rewrite the page. A cookie is a small piece of data the browser stores for a site, often used to remember that you are logged in; the HttpOnly flag stops scripts from reading it.

Defences are layered: output encoding suited to where the value is written (page body, an attribute, a script block, a URL), strict validation where a value has a known format, a Content Security Policy that blocks inline script, and HttpOnly and SameSite cookie attributes to limit what a stolen session can do.

How to test for it

  1. Map every parameter the application reflects. Start with parameters that appear in generated HTML, redirects, error messages and script blocks, and note the exact context each one lands in.
  2. Send a harmless marker first, such as a unique string of letters and digits, and confirm it appears in the response unchanged. This separates a real reflection from data that is handled elsewhere.
  3. Move to probes suited to the context. In a page body, try characters that would open a tag; inside an attribute, try breaking out of the quotes; inside a script block, try ending the string. Watch whether each character is encoded, stripped or left intact.
  4. Confirm execution in a real browser rather than trusting the response body alone. A payload that appears in the source but is neutralised by the parser is not a finding.
  5. Check whether login or a particular role is required, and record the lowest privilege that still reaches the vulnerable code.

Common false positives: the marker is reflected but HTML-encoded, so no tag can form; the reflection sits inside a JavaScript string that is itself escaped; a web application firewall blocks the probe while the underlying code is still vulnerable (test with encoding variations); the payload only runs in the tester's browser because of an extension or a modified response. Always verify with a clean browser profile and the unmodified response.

How it is fixed

Apply context-aware output encoding where the value is written, not only on input. For page bodies, encode the characters that can start markup; for attributes, quote the attribute and encode quotes; for script contexts, serialise data rather than pasting strings together. Where the parameter has a known format, such as a numeric identifier, validate it strictly and reject anything else. Add a Content Security Policy as defence in depth, and set HttpOnly and SameSite on session cookies. The fix described for this report follows the same principle: validate all parameters the script processes.

Where these bugs tend to hide

Reflected XSS often survives in older scripts that predate modern frameworks: include files, legacy endpoints, redirect helpers, error and debug pages, search results, and anything that builds HTML by joining strings. Parameters named after identifiers, languages, themes, callbacks and return URLs are frequent candidates. Useful signals are endpoints that echo request data back, parameters that survive into the page source, and applications with mixed generations of code where some pages are templated and others are not.

To get a report accepted, show the full request and the response proving the payload is unencoded, then a browser screenshot or recording of execution, and state the lowest privilege needed. Explain the concrete consequence for a victim, such as actions performed with their session, rather than only asserting that script runs. If a filter interferes, demonstrate a bypass that still executes. Keep the proof minimal and reproducible so triage can confirm it quickly.

Glossary

  • Revive Adserver: open source software that websites use to serve adverts.
  • zone-include.php: the script in Revive Adserver where the flaw was found.
  • Parameter: a named value attached to a request, often visible in the address bar after a question mark.
  • clientid: the parameter whose value was not sanitised.
  • Request: the message a browser sends to a server asking for a page or data.
  • Response: the page or data the server sends back.
  • Sanitising input: treating data from a visitor as untrusted text so it cannot act as code.
  • Validation: checking that a value matches an expected format and rejecting it otherwise.
  • Encoding / escaping: converting characters so the browser displays them as text instead of interpreting them as markup.
  • Reflected XSS: cross-site scripting where the malicious value is echoed back from the current request rather than stored on the site.
  • Cross-site scripting (XSS): a flaw that lets an attacker get script running in another user's browser under a site's origin.
  • Origin: the combination of scheme, host and port that a browser uses to decide which site a page belongs to.
  • Low-privileged user: someone logged in without administrator rights.
  • CVSS: a standard scoring system for the severity of a security flaw.
  • HackerOne: a platform where security researchers report flaws to organisations.
  • Cookie: a small piece of data a browser stores for a site, often used to keep you logged in.
  • HttpOnly: a cookie flag that stops scripts from reading the cookie.
  • SameSite: a cookie flag that limits when the cookie is sent with requests from other sites.
  • Content Security Policy (CSP): a set of rules a site sends to the browser to restrict what scripts may run.
  • Web application firewall (WAF): a filter in front of a site that blocks suspicious requests.
  • False positive: a test result that looks like a flaw but is not exploitable.
  • Payload: the crafted value an attacker sends to trigger the flaw.
  • DOM: the browser's in-memory model of the page, which scripts can read and change.
  • Triage: the process of reviewing and confirming a reported flaw.

More by titanrain

View all

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