Skip to content
XSS Disclosed report Beginner

RXSS on /landings/123.1/index.php (mackeeperapp.mackeeper.com)

A reflected cross-site scripting vulnerability was found on the mackeeperapp.mackeeper.com domain via the /landings/123.1/index.php endpoint. An attacker could inject a script that executes in the victim's browser when they visit a crafted URL.

sec0ndw0lf Follow

Originally disclosed on HackerOne

Bounty$300 Medium 4.2 View original
  • Triaged in under an hour
  • Fixed in 21 days
  • Paid in 5 days
  • Disclosed after 7 months

Summary by the program

Summary

Hi! I found Reflected Cross-Site Scripting attack on mackeeperapp.mackeeper.com via /landings/123.1/index.php endpoint.

Step to reproduce

https://mackeeperapp.mackeeper.com/landings/123.1/index.php?affid=zzb_175.331184.1530814850.33.zzb&trt=29_5tse3g%22%3E%3Cscript%3Ealert(document.domain)%3C%2fscript%3Exljdm&utm_source=N%2FA&utm_medium=zzb_3265&utm_campaign=78&utm_term=&utm_content=78&userDefiner=zzb_3265&epayId=29&landId=284&installer=78&guid=3e60b030-edc3-11e7-99a5-02e10695cdfa&reqid=ca9f9bf4367bb2a00e1cd3af1bd1521a

The original report as published on HackerOne, by sec0ndw0lf. 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 the Clario program's *.mackeeper.com asset, specifically the host mackeeperapp.mackeeper.com and its /landings/123.1/index.php endpoint. The researcher, sec0ndw0lf, reported a reflected cross-site scripting issue there, rated medium severity with a CVSS score of 4.2, and the report was disclosed on 13 June 2020 with a bounty of 300.00 USD.

The whole finding is a single URL. The researcher placed an HTML-breaking payload into the trt parameter of the following URL:

HTTP
https://mackeeperapp.mackeeper.com/landings/123.1/index.php?affid=zzb_175.331184.1530814850.33.zzb&trt=29_5tse3g%22%3E%3Cscript%3Ealert(document.domain)%3C%2fscript%3Exljdm&utm_source=N%2FA&utm_medium=zzb_3265&utm_campaign=78&utm_term=&utm_content=78&userDefiner=zzb_3265&epayId=29&landId=284&installer=78&guid=3e60b030-edc3-11e7-99a5-02e10695cdfa&reqid=[redacted]

Decoded, the trt value is 29_5tse3g"><script>alert(document.domain)</script>xljdm. The payload closes an attribute and the surrounding tag with ">, then opens a script block that calls alert(document.domain), and finally appends xljdm as trailing text.

The reproduction is a single step: load the URL above. The report does not include screenshots, response excerpts, the exact HTML context the payload lands in, or details of the fix.

Root cause

Impact

The report demonstrates only alert(document.domain) in the crafted URL. The report itself demonstrates only alert(document.domain), which proves execution but not a concrete attack chain; the practical impact depends on what the page and its origin allow, and .

How this kind of bug works

Reflected XSS happens when an application copies data from the request into the response without encoding it for the place it lands. The browser cannot tell developer-written markup from attacker-supplied markup, so any unescaped <, >, " or ' that reaches the HTML parser can change the document structure. The context matters: inside an HTML attribute you need to break out of the quotes and the tag; inside a script block you need to break the string and the element; inside a URL or CSS context the escape sequences differ. The defence is context-aware output encoding, plus a restrictive Content-Security-Policy that blocks inline script, and, where the value is only needed for logic, avoiding reflection into the page at all.

How to test for it

  1. Map every parameter that the page echoes back, including tracking parameters such as affiliate IDs, campaign names and referrer values, which are often overlooked because they look like analytics plumbing.
  2. Send a benign marker first (a unique alphanumeric string) and find where it appears in the response body, noting the surrounding HTML: attribute, text node, script, URL or style.
  3. Craft a context-specific probe. For an attribute context, try a quote followed by a tag break and a harmless script call; for a text node, a plain tag; for a script block, a string break. Use a unique canary in the payload so you can confirm which reflection fired.
  4. Confirm execution in a real browser, not just by grepping the response. A payload that appears in the source but is neutralised by the parser or by a sanitiser is not a finding.
  5. Check whether the parameter is reflected on GET only or also on POST, and whether any WAF or filter blocks obvious payloads; try encoding variants if so.

Common false positives: the value appears HTML-encoded in the source (so the browser shows it as text), the reflection lands inside a JavaScript string that is properly escaped, the page sets a CSP that blocks the inline script, or the input is reflected only in a header or a non-executing context. Always verify in a browser and note the exact context.

How it is fixed

Encode all reflected output according to context: HTML-entity encoding for text and attribute values, JavaScript escaping inside script blocks, URL encoding inside URLs. Prefer allow-listing the expected format of tracking parameters (for example, a fixed character set and length) and rejecting anything else. Add a Content-Security-Policy that disallows inline script and restricts script sources, and set the HttpOnly and Secure flags on cookies so a successful injection has less to steal. Frameworks with auto-escaping templates remove most of this class if used consistently.

Hunting notes

Reflected XSS tends to hide in parameters that feed analytics, affiliate tracking, campaign names, redirect targets, error messages and search terms, because these are copied into pages by marketing or logging code rather than by the main application. Landing pages and installer flows are common homes for it. Recon signals include many query parameters with opaque names, pages that echo the referrer or campaign string, and endpoints that build HTML server-side. Keep the payload minimal and reproducible.

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

A security researcher, sec0ndw0lf, found a bug in a website run by Clario, on the host mackeeperapp.mackeeper.com. The page in question lives at the path /landings/123.1/index.php. The bug is a reflected cross-site scripting issue, usually shortened to XSS. The report was rated medium severity with a CVSS score of 4.2, disclosed on 13 June 2020, and paid a bounty of 300.00 USD.

To understand the bug, you need two ideas. A request is what your browser sends to a web server when you open a link: the address, plus any extra pieces of information attached to it. A query parameter is one of those extra pieces, the part of a web address after a ?, written as name=value and joined with &. A landing page often carries many of these, because marketing and tracking tools use them to record which advert or partner brought the visitor in.

Cross-site scripting means getting a website to run code that the website's own authors did not write. The code runs in the visitor's browser, as if the site had put it there itself. In the reflected variety, the site takes a value straight out of the request and copies it into the page it sends back. The browser cannot tell the difference between markup the developers wrote and markup that arrived in the address bar, so anything the site copies in without cleaning it can change how the page behaves.

What the report shows

The whole finding is a single web address. The researcher put a small piece of HTML into the trt parameter of this web address:

HTTP
https://mackeeperapp.mackeeper.com/landings/123.1/index.php?affid=zzb_175.331184.1530814850.33.zzb&trt=29_5tse3g%22%3E%3Cscript%3Ealert(document.domain)%3C%2fscript%3Exljdm&utm_source=N%2FA&utm_medium=zzb_3265&utm_campaign=78&utm_term=&utm_content=78&userDefiner=zzb_3265&epayId=29&landId=284&installer=78&guid=3e60b030-edc3-11e7-99a5-02e10695cdfa&reqid=[redacted]

Reading it piece by piece:

  1. https://mackeeperapp.mackeeper.com/landings/123.1/index.php is the page being opened.
  2. trt=29_5tse3g%22%3E%3Cscript%3Ealert(document.domain)%3C%2fscript%3Exljdm is the parameter that carries the attack. The %22, %3E, %3C and %2f sequences are percent-encoding, a way of writing characters that are awkward inside a web address. Decoded, the value is 29_5tse3g"><script>alert(document.domain)</script>xljdm.

The payload itself is worth taking apart, because each character has a job:

  • <script>alert(document.domain)</script> is a complete script element. alert(document.domain) asks the browser to show a pop-up containing the domain of the current page, which proves the code is running as part of that site.

The reproduction is one step: open the address above. The report does not include screenshots, response excerpts, the exact HTML the payload lands in, or details of the fix.

In general, how this kind of bug works

A site that reflects a request value into its page has to decide how to treat the characters in it. If it copies them through untouched, the browser's HTML parser reads them as instructions. A " can end an attribute, a > can end a tag, and a <script> can start a block of code. The defence is output encoding: converting characters such as <, >, " and ' into harmless representations so the browser displays them as text instead of acting on them. The encoding has to match the place the value lands, because escaping rules differ inside an attribute, inside a script block, inside a URL and inside a style rule.

A second layer is a Content-Security-Policy, a header a site can send to tell the browser which sources of script it will accept. A policy that refuses inline script would stop a payload like this one even if the encoding were missed.

In general, how to test for it

  1. List every parameter the page sends back to you, including tracking parameters such as affiliate IDs and campaign names, which are easy to overlook because they look like plumbing rather than input.
  2. Send a harmless unique marker first, such as a random word, and find where it appears in the page source. Note what surrounds it: an attribute, plain text, a script, a URL or a style.
  3. Build a probe for that context. Inside an attribute, try a quote, a tag break and a harmless script call; inside plain text, a plain tag; inside a script, a string break. Keep a unique marker in the payload so you know which reflection fired.
  4. Confirm the code actually runs in a real browser. A payload visible in the page source but neutralised by the parser or a filter is not a finding.
  5. Check whether the parameter is reflected on GET requests only or also on POST, and whether a filter blocks obvious payloads; if so, try encoded variants.

Common false positives: the value appears encoded in the source, so the browser shows it as text; the reflection sits inside a properly escaped JavaScript string; a Content-Security-Policy blocks the inline script; or the value is reflected only in a header or another place that does not execute. Always verify in a browser and record the exact context.

In general, how it is fixed

Encode every reflected value for the context it lands in: HTML entities for text and attribute values, JavaScript escaping inside script blocks, URL encoding inside URLs. Where a parameter has a known shape, such as a tracking ID, allow-list the expected characters and length and reject anything else. Add a Content-Security-Policy that disallows inline script and restricts where scripts may load from, and set the HttpOnly and Secure flags on cookies so a successful injection has less to steal. Frameworks whose templates escape output automatically remove most of this class of bug when used consistently.

Glossary

  • Request: the message a browser sends to a server when it opens a page or loads a resource.
  • Query parameter: a name=value pair after the ? in a web address, used to pass extra information.
  • Endpoint: a specific address on a server that handles a particular request.
  • Landing page: a page a visitor arrives at from an advert, campaign or partner link.
  • Cross-site scripting (XSS): getting a site to run code in a visitor's browser that the site's authors did not write.
  • Reflected XSS: XSS where the malicious value comes straight from the request and is copied into the response.
  • Payload: the crafted value an attacker sends to trigger a bug.
  • HTML attribute: a setting inside an HTML tag, such as href="...", usually written inside quotes.
  • HTML tag: a markup element such as <script> that tells the browser what a piece of content is.
  • HTML parser: the part of the browser that reads markup and builds the page.
  • Percent-encoding: writing characters in a web address as % followed by two hexadecimal digits.
  • Output encoding: converting characters so the browser treats them as text rather than instructions.
  • Content-Security-Policy (CSP): a response header that tells the browser which scripts and sources are allowed.
  • CVSS: a scoring system that rates the severity of a vulnerability.
  • Bounty: a payment a company makes to a researcher who reports a valid bug.
  • HttpOnly: a cookie flag that stops JavaScript from reading the cookie.
  • Secure: a cookie flag that sends the cookie only over encrypted connections.
  • False positive: a result that looks like a bug but is not actually exploitable.

More by sec0ndw0lf

View all

6 more disclosed reports, best first.

More from Clario

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.