Skip to content
XSS Disclosed report Beginner

Cross Site Scripting (Reflected) on https://www.acronis.cz/dotaznik/roadshow-2020/

A reflected cross-site scripting vulnerability was found on a web page where user input in form fields is not properly sanitised. An attacker could inject JavaScript code that executes in a victim's browser.

darkdream Follow

Originally disclosed on HackerOne

Bounty$50 Low View original
  • Triaged in under an hour
  • Fixed in 15 days
  • Paid in 7 days
  • Disclosed after 3.6 years

You can post javascript code in form fields

Summary

[add summary of the vulnerability]

Steps To Reproduce

[add details for how we can reproduce the issue] steps : 1-go to vulnerability link : https://www.acronis.cz/dotaznik/roadshow-2020/ 2- enter this javascript code "><script>alert(1);</script> in form field

  1. [add step]
  2. [add step]
  3. [add step]

Recommendations

[add details for how to fix or at least mitigate the issue]

Impact

If an attacker can control a script that is executed in the victim's browser

The original report as published on HackerOne, by darkdream. 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. 5 min read.

What the report shows

The target is the Acronis roadshow questionnaire page at https://www.acronis.cz/dotaznik/roadshow-2020/, a form on an Acronis domain outside the main application. The researcher, darkdream, reported a reflected cross-site scripting issue and titled it as such. The report was rated low severity and paid a bounty of 50.00 USD. It was disclosed on 2024-08-26.

The reproduction steps are short. The researcher says to open the page and enter a JavaScript payload into a form field:

Text
"><script>alert(1);</script>

The report does not name the specific field, does not show the resulting request or response, and does not include a screenshot or video of the alert firing. The summary, recommendations and impact sections are left as the platform's unfilled template placeholders, so the only substantive content is the payload and the two steps above.

The impact section states the general condition rather than a demonstrated consequence: if an attacker can control a script that is executed in the victim's browser, the usual consequences of script execution follow. The report does not describe a concrete attack chain, a victim scenario or any data the script could reach.

Root cause

The report says JavaScript code can be posted in form fields, but does not describe how the value is handled or rendered. The payload begins with ">, which suggests the value is placed inside an HTML attribute and the quote closes it, after which the script element is parsed as markup. That reading is likely rather than confirmed: the report never shows the HTML that the server returned, so the exact context (attribute, tag, quoting style) is not documented.

Impact

As the report frames it, the impact depends on an attacker being able to get a script they control to run in a victim's browser. The report does not demonstrate this route, does not show that the payload survives in a shareable URL, and does not describe what an injected script could do on this domain. The report describes no session or data exposure.

How this kind of bug works

Reflected cross-site scripting happens when an application takes input from the current request, usually a query string parameter or a form field, and writes it into the HTML response without context-appropriate encoding. Inside an attribute, a quote character ends the attribute; in element content, < starts a tag; inside a script block or a URL, other rules apply.

The bug class exists because output is assembled by string concatenation across layers (templates, frameworks, helper functions) and the encoding step is either missing or applied for the wrong context. HTML-escaping a value that lands inside a JavaScript string, or inside an unquoted attribute, does not make it safe. Modern frameworks auto-escape by default, so reflection bugs cluster in older code, custom form handlers, error pages, search results and third-party or agency-built microsites that sit on the same domain but outside the main application's review process.

The defences that stop it are contextual output encoding at the point of rendering, a restrictive Content Security Policy that blocks inline script, and treating all request data as untrusted regardless of which page renders it.

How to test for it

  1. Map every place where request data appears in a response: query parameters, path segments, form fields that are re-rendered on validation errors, search boxes, redirect and error messages, and hidden fields that echo earlier input.
  2. Send a benign marker first, such as a unique alphanumeric string, and find it in the response body. Note the exact context: between tags, inside a quoted attribute, inside an unquoted attribute, in a script block, in a URL or in a JSON blob.
  3. Send context-breaking characters for that position: a double quote and a single quote for attributes, angle brackets for element content, and closing sequences for script or style blocks. Watch whether the characters come back raw or encoded.
  4. Escalate to a minimal proof payload that produces an observable effect, such as an alert dialog or a DOM change, and confirm it in a browser rather than only in the raw response.
  5. Check whether the payload survives in a URL that can be sent to another user, since reflected issues need a delivery vector to matter.

A positive result is the marker appearing unencoded in a position where the characters you supplied change the parsed structure, confirmed by script execution in the browser. Common false positives are characters that appear in the response but are neutralised by the parser (for example inside a comment or a textarea), payloads that only execute in your own browser because of a client-side extension, values that are encoded on the second request but not the first, and self-XSS where the input is only reflected to the person who typed it and cannot be delivered by link.

How it is fixed

Apply contextual output encoding wherever request data is rendered: HTML entity encoding for element content and quoted attributes, attribute-specific handling for unquoted attributes and URL contexts, and JavaScript-safe encoding inside script blocks. Prefer templating engines that escape by default and avoid building HTML by string concatenation. Validate input against an allowlist where the expected format is narrow, but do not rely on input filtering as the primary control. Add a Content Security Policy that disallows inline script and restricts script sources, and set cookies with HttpOnly so that a successful injection cannot read them.

Hunting notes

Reflected XSS tends to hide in places that are easy to overlook: campaign and landing pages, forms that re-display submitted values on validation failure, search and filter parameters, language and redirect parameters, and error pages that echo the requested path. Microsites and locally managed country domains are frequent candidates because they may be built and maintained outside the main application's security review.

Recon signals worth following are pages on the target's domain that return your input in the HTML source, parameters that appear in both the query string and the rendered page, and forms whose action posts back to the same URL. Compare how the same parameter is handled on different paths of the same host; inconsistent encoding usually means at least one path is wrong.

To make a reflected report acceptable, show the full request and response, the exact context where the payload lands, a browser screenshot or recording of execution, and a delivery path that a victim could realistically follow, such as a link. If the page has no session, no sensitive action and no way to deliver the payload to another user, say so and expect a low rating; the value of the report is in the clarity of the evidence, not in the severity label.

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. 8 min read.

What happened, in plain words

Acronis runs a questionnaire page for a 2020 roadshow at https://www.acronis.cz/dotaznik/roadshow-2020/. It is a form: you fill in fields and submit them. The researcher, darkdream, reported that JavaScript code can be posted in the form fields. The researcher reports that JavaScript code can be posted in a form field, which they describe as cross-site scripting.

This kind of bug is called reflected cross-site scripting, or reflected XSS. "Scripting" means the browser is executing small programs (JavaScript) that a website supplies. "Cross-site" means the script did not come from the site's own developers; it came from whoever supplied the input. "Reflected" means the input goes straight back out in the response to the same request, like a echo, rather than being stored on the server for later visitors.

The report was rated low severity and paid a bounty of 50.00 USD. It was disclosed on 2024-08-26.

The reproduction steps

The researcher gives two steps. First, open the page:

Text
https://www.acronis.cz/dotaznik/roadshow-2020/

Second, enter this text into a form field:

Text
"><script>alert(1);</script>

Let us take the payload apart, because every character is doing a job:

  • " is a double quote. It is there to close something. If the page puts your input inside an HTML attribute written with double quotes, for example value="your input", then your quote ends the attribute early.
  • > closes the HTML tag that the attribute belonged to. After this point the browser thinks it is back in normal page content, not inside a tag.
  • <script> opens a script element. Everything until the matching closing tag is treated as JavaScript and executed by the browser.
  • alert(1); is the simplest possible JavaScript instruction: it makes the browser show a small pop-up box containing the number 1. It is used in tests because it is harmless and instantly visible.
  • </script> closes the script element.

The idea is that the page builds HTML by gluing your text into a template. If it does not neutralise the quote and the angle brackets, your text stops being text and becomes page structure, and the browser obeys it.

Why each step matters: opening the page establishes the target and shows the form. Entering the payload tests whether the field is reflected back into the HTML without being made safe. If a pop-up appears, the browser executed code that the site did not write.

The report does not name which field was used, does not show the request or response, and does not include a screenshot or recording of the pop-up. The summary, recommendations and impact sections are left as the platform's unfilled template placeholders. The impact section only states the general condition: if an attacker can control a script that is executed in the victim's browser, the usual consequences of script execution follow. No concrete attack chain, victim scenario or reachable data is described.

Why the payload probably works

The leading "> strongly suggests the value lands inside a double-quoted HTML attribute. The quote ends the attribute, the > ends the tag, and the script element is then parsed as markup. That is a reasonable reading, not a confirmed one: the report never shows the HTML the server returned, so the exact context is not documented.

Impact

As framed in the report, the impact depends on an attacker getting a script they control to run in someone else's browser. The report does not describe how a victim would be made to trigger the payload. The report does not demonstrate that route, does not show the payload surviving in a shareable URL, and does not describe what an injected script could do on this domain. The report describes no session or data exposure.

In general, how this kind of bug works

Reflected XSS happens when an application takes input from the current request, usually a query string parameter or a form field, and writes it into the HTML response without context-appropriate encoding. Inside an attribute, a quote ends the attribute; in element content, < starts a tag; inside a script block or a URL, other rules apply.

The bug class exists because output is assembled by string concatenation across layers (templates, frameworks, helper functions) and the encoding step is either missing or applied for the wrong context. HTML-escaping a value that lands inside a JavaScript string, or inside an unquoted attribute, does not make it safe. Modern frameworks auto-escape by default, so reflection bugs cluster in older code, custom form handlers, error pages, search results and third-party or agency-built microsites that sit on the same domain but outside the main application's review process.

The defences that stop it are contextual output encoding at the point of rendering, a restrictive Content Security Policy that blocks inline script, and treating all request data as untrusted regardless of which page renders it.

How to test for it

  1. Map every place where request data appears in a response: query parameters, path segments, form fields that are re-rendered on validation errors, search boxes, redirect and error messages, and hidden fields that echo earlier input.
  2. Send a benign marker first, such as a unique alphanumeric string, and find it in the response body. Note the exact context: between tags, inside a quoted attribute, inside an unquoted attribute, in a script block, in a URL or in a JSON blob.
  3. Send context-breaking characters for that position: a double quote and a single quote for attributes, angle brackets for element content, and closing sequences for script or style blocks. Watch whether the characters come back raw or encoded.
  4. Escalate to a minimal proof payload that produces an observable effect, such as an alert dialog or a DOM change, and confirm it in a browser rather than only in the raw response.
  5. Check whether the payload survives in a URL that can be sent to another user, since reflected issues need a delivery vector to matter.

A positive result is the marker appearing unencoded in a position where the characters you supplied change the parsed structure, confirmed by script execution in the browser. Common false positives are characters that appear in the response but are neutralised by the parser (for example inside a comment or a textarea), payloads that only execute in your own browser because of a client-side extension, values that are encoded on the second request but not the first, and self-XSS where the input is only reflected to the person who typed it and cannot be delivered by link.

How it is fixed

Apply contextual output encoding wherever request data is rendered: HTML entity encoding for element content and quoted attributes, attribute-specific handling for unquoted attributes and URL contexts, and JavaScript-safe encoding inside script blocks. Prefer templating engines that escape by default and avoid building HTML by string concatenation. Validate input against an allowlist where the expected format is narrow, but do not rely on input filtering as the primary control. Add a Content Security Policy that disallows inline script and restricts script sources, and set cookies with HttpOnly so that a successful injection cannot read them.

Hunting notes

Reflected XSS tends to hide in places that are easy to overlook: campaign and landing pages, forms that re-display submitted values on validation failure, search and filter parameters, language and redirect parameters, and error pages that echo the requested path. Microsites and locally managed country domains are frequent candidates because they may be built and maintained outside the main application's security review.

Recon signals worth following are pages on the target's domain that return your input in the HTML source, parameters that appear in both the query string and the rendered page, and forms whose action posts back to the same URL. Compare how the same parameter is handled on different paths of the same host; inconsistent encoding usually means at least one path is wrong.

To make a reflected report acceptable, show the full request and response, the exact context where the payload lands, a browser screenshot or recording of execution, and a delivery path that a victim could realistically follow, such as a link. If the page has no session, no sensitive action and no way to deliver the payload to another user, say so and expect a low rating; the value of the report is in the clarity of the evidence, not in the severity label.

Glossary

  • Cross-site scripting (XSS): a bug where a site lets someone else's input become code that a visitor's browser executes.
  • Reflected XSS: the input is echoed back in the response to the same request, so it needs a crafted link or form submission to reach a victim.
  • Payload: the piece of text or code an attacker sends to trigger the bug.
  • JavaScript: the programming language browsers run to make pages interactive.
  • HTML attribute: a setting inside an HTML tag, such as value="...", written as a name and a value.
  • HTML tag: a piece of markup such as <script> or <input> that tells the browser what an element is.
  • Script element: the HTML tag whose contents the browser executes as JavaScript.
  • alert(): a JavaScript function that shows a pop-up box; used in tests because it is harmless and visible.
  • Encoding (output encoding): converting characters such as < and " into safe representations so the browser shows them as text instead of treating them as structure.
  • Context: the place in the HTML where input lands (attribute, element content, script block, URL), which decides which characters are dangerous.
  • Content Security Policy (CSP): a response header that tells the browser which sources of script and other content are allowed.
  • HttpOnly: a cookie flag that stops JavaScript from reading that cookie.
  • Query string parameter: the name=value pairs after the ? in a URL.
  • Self-XSS: input that is only reflected to the person who typed it, so it cannot be delivered to anyone else.
  • False positive: a test result that looks like a bug but is not actually exploitable.
  • Severity: a rating of how serious a bug is, often low, medium, high or critical.
  • Bounty: a payment a company makes to a researcher who reports a valid bug.

More by darkdream

View all

4 more disclosed reports, best first.

More from Acronis

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.