Skip to content
XSS Disclosed report Beginner

Stored Cross-site Scripting on devicelock.com/forum/

Souhaib Naceri Follow

Originally disclosed on HackerOne

  • Triaged in 17 hours
  • Fixed in 6 months
  • Paid in 6 days
  • Disclosed after 11 months

Summary

Hello, @acronis Team I hope you all doing well.

I just found A Stored Cross-site Scripting on devicelock.com/forum/ by changing the City value on https://www.devicelock.com/bitrix/admin/user_edit.php? to HTML/javascript code and lead to Stored Cross-site Scripting.

  1. go to https://www.devicelock.com/forum/view_profile.php?register=yes and create a new account
  2. go to https://www.devicelock.com/bitrix/admin/user_edit.php? and click on Personal information and in City input put and xss payload like: <img src=x onerror=alert(document.cookie)> and click on apply.
  3. Go to https://www.devicelock.com/forum/view_profile.php?UID=<your_user_id> and change <your_user_id> to your id

POC

https://www.devicelock.com/forum/view_profile.php?UID=28349

2021-03-10_18-58-16.mp4 From the original on HackerOne

Impact

Stored XSS.

The original report as published on HackerOne, by h4x0r_dz. 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 program's *.devicelock.com asset, specifically the forum at devicelock.com/forum/ and the Bitrix administration interface that sits in front of it. The researcher found a stored cross-site scripting issue that is triggered by a value saved through the admin user editor and rendered back on the public forum profile page.

The steps in the report are:

  1. Register a new account at the forum:
HTTP
https://www.devicelock.com/forum/view_profile.php?register=yes
  1. Open the admin user editor and set the City field to an HTML payload:
HTTP
https://www.devicelock.com/bitrix/admin/user_edit.php?
HTML
<img src=x onerror=alert(document.cookie)>

After entering the payload in the City input under Personal information, the researcher clicks apply.

  1. Visit the forum profile of the account, replacing the placeholder with the real user id:
HTTP
https://www.devicelock.com/forum/view_profile.php?UID=<your_user_id>

The proof of concept uses a concrete profile URL:

HTTP
https://www.devicelock.com/forum/view_profile.php?UID=28349
2021-03-10_18-58-16.mp4 From the original on HackerOne

The video, named 2021-03-10_18-58-16.mp4, is attached to the report. The report states the impact as stored XSS. It does not describe a fix.

Root cause

The report points to the City field of the Bitrix user record as the place where the payload is stored, and to the forum profile page as the place where it is rendered. The report does not establish the cause; the value is stored in the City field and rendered on the profile page. The report does not show the server-side code, so the exact point where encoding is missing is not established.

Impact

The report states the impact simply as stored XSS. Because the payload is saved in a user record and shown on the profile page, a viewer of that profile would run the script in the forum's origin. The report does not demonstrate session theft, administrative actions or any other concrete outcome beyond the alert(document.cookie) in the payload.

How this kind of bug works

Stored XSS happens when an application saves user-controlled input and later places it into a page without context-appropriate encoding. The browser cannot tell stored data from markup written by the developer, so a string containing a tag and an event handler becomes live HTML. The classic vector is an element that fails to load, such as an image with a broken src, whose onerror handler fires immediately.

The bug class is common wherever the same value is written in one component and read in another: a profile field edited in an admin panel and displayed on a public site, a comment saved by an API and rendered by a template, or a name copied into an email or PDF. The two components often apply different assumptions about trust, and the read path is the one that matters.

Defences are layered. Output encoding for the correct context (HTML body, attribute, JavaScript, URL) is the primary control. Input validation and allow-lists help but are not sufficient alone. A Content Security Policy that forbids inline script reduces the damage of a missed encoding step, and cookies marked HttpOnly keep session tokens out of reach of document.cookie. Frameworks that auto-escape by default remove most of this class, provided developers do not opt out of escaping.

How to test for it

  1. Map every place where a value you control is saved and later displayed. Profile fields, addresses, display names, signatures and support tickets are good starting points.
  2. Identify the read paths. A field edited in one application (an admin console, a CRM, a forum backend) is often rendered by a different application with its own templating.
  3. Submit a benign marker first, such as a unique alphanumeric string, and confirm it appears verbatim in the response. This separates reflection and storage from encoding.
  4. Submit a payload that would only execute if the value is unencoded, for example an element with a broken source and an event handler, and load the page where the value is displayed. A positive result is the handler running in the page's origin, visible as a dialog or a request to a listener you control.
  5. Test the same value in every context it reaches: the profile page, search results, listings, exports, emails and any API that returns the record.

Common false positives: the payload appears in the response but HTML-encoded, so it renders as text; the value is reflected only in a context where the browser does not execute it, such as inside a <textarea> or a JSON response with a non-HTML content type; a payload fires only in your own browser because of an extension or a developer tool; or the input is sanitised on save but the sanitised form still looks suspicious in the source. Always confirm execution in a clean browser profile and check whether the affected page is reachable by other users.

How it is fixed

Encode the stored value on output for the context where it is rendered, rather than relying on filtering at input time. Validate and constrain the field on save where a strict format is possible, for example a city name. Apply a Content Security Policy that blocks inline handlers, and set HttpOnly on session cookies. Where a rich-text field genuinely needs markup, sanitise it with a well-maintained HTML sanitiser on the server and allow only a small set of tags and attributes. Add regression tests that submit payload-like strings and assert they come back encoded.

Hunting notes

Stored XSS tends to hide at the seams between applications: admin panels that write to a shared database, public sites that read from it, and third-party components such as forums or CMS modules with their own templating. Fields that are rarely reviewed, like city, company, job title or signature, are frequent offenders because they are treated as low-risk metadata.

Recon signals worth following: a forum or CMS running alongside a separate admin console, parameters such as UID or register that select a profile view, and any page that renders a record you can edit elsewhere. Comparing the edit form and the display page for the same field is often enough to spot a missing encoding step.

To make a report land, show the full chain: where the value is stored, where it is rendered, and that the script runs for a viewer other than the person who entered it. A short video of the flow plus the exact URLs and payload is usually enough. State the impact in terms of what the script can do in that origin, and avoid overstating it beyond what you demonstrated.

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

This report describes a stored cross-site scripting (XSS) bug on a website belonging to Acronis, in the *.devicelock.com asset. The affected parts are the forum at devicelock.com/forum/ and the Bitrix administration interface used to manage it. Bitrix is a content management system: software that runs a website and gives staff a private back office (the admin panel) to edit users, pages and settings.

The researcher found that a value saved through the admin user editor, specifically the City field, was later shown on a public forum profile page without being made safe. The result was that HTML and JavaScript entered as a city name ran in the browser when the profile was viewed.

A few ideas first, because they come up throughout:

  • A request is what your browser sends to a web server when you open a page or submit a form, for example "give me the profile page for user 28349".
  • A cookie is a small piece of data a site stores in your browser, commonly used to remember that you are logged in. If someone else can read your cookie, they may be able to act as you.
  • Cross-site scripting (XSS) is when an attacker gets their own code (usually JavaScript) to run inside a page of a site you trust. Your browser cannot tell code the site's developers wrote from code that arrived as data, so it runs both.
  • Stored XSS is the variant where the malicious value is saved on the server first and then shown to other people later, rather than being reflected back only to the person who sent it. A useful comparison: reflected XSS is like someone shouting an insult back at you; stored XSS is like writing it on a noticeboard everyone walks past.

The steps in the report are:

  1. Register a new account on the forum:
HTTP
https://www.devicelock.com/forum/view_profile.php?register=yes

The register=yes part of the address tells the forum to show its registration page.

  1. Open the admin user editor and set the City field to an HTML payload:
HTTP
https://www.devicelock.com/bitrix/admin/user_edit.php?
HTML
<img src=x onerror=alert(document.cookie)>

Under Personal information, the researcher typed the payload into the City input and clicked apply. This is the heart of the bug: the admin panel accepted a city name that was not a city name at all, and saved it.

The payload is a single HTML image tag, and it is worth reading piece by piece:

  • <img ...> tells the browser to load an image.
  • src=x says the image is at the address x. No such image exists, so loading it fails.
  • onerror=... is an event handler: a piece of JavaScript the browser runs when the image fails to load. Because the image always fails, the code always runs.
  • alert(document.cookie) opens a pop-up box showing the page's cookies. document.cookie is how JavaScript reads cookies for the current site.

So the payload is a trap that fires the moment the browser tries to display it as part of a page.

  1. Visit the forum profile of the account, replacing the placeholder with the real user id:
HTTP
https://www.devicelock.com/forum/view_profile.php?UID=<your_user_id>

The UID parameter selects which user's profile is shown. The proof of concept uses a concrete profile address:

HTTP
https://www.devicelock.com/forum/view_profile.php?UID=28349
2021-03-10_18-58-16.mp4 From the original on HackerOne

The attached video, named 2021-03-10_18-58-16.mp4, is the only evidence in the report.

The report states the impact as stored XSS and does not describe a fix.

Why the chain matters: the value was written in one application (the Bitrix admin panel) and read in another (the public forum). The report does not include the server-side code, so the exact place where the protection is missing is not shown.

In general, how this kind of bug works

Stored XSS happens when an application saves something a user typed and later puts it into a page without encoding it for that page. Encoding means converting characters that have special meaning in HTML, such as < and >, into harmless equivalents so the browser shows them as text instead of treating them as markup. When encoding is missing, the browser sees a tag and an event handler where the developer expected a plain city name, and runs it.

The bug class is common wherever the same value is written in one component and read in another: a profile field edited in an admin panel and displayed on a public site, a comment saved by an API and rendered by a template, or a name copied into an email. The two components often make different assumptions about trust, and the read path is the one that matters.

Defences are layered. Output encoding for the correct context (HTML body, attribute, JavaScript, URL) is the primary control. Input validation and allow-lists help but are not sufficient alone. A Content Security Policy, a browser instruction that restricts what a page may run, can reduce the damage of a missed encoding step, and cookies marked HttpOnly cannot be read by JavaScript such as document.cookie. Frameworks that escape output by default remove most of this class, provided developers do not switch escaping off.

How to test for it

  1. Map every place where a value you control is saved and later displayed. Profile fields, addresses, display names, signatures and support tickets are good starting points.
  2. Identify the read paths. A field edited in one application (an admin console, a forum backend) is often rendered by a different application with its own templating.
  3. Submit a harmless marker first, such as a unique string of letters and digits, and confirm it appears unchanged in the response. This separates storage from encoding.
  4. Submit a payload that would only run if the value is unencoded, for example an element with a broken source and an event handler, and load the page where the value is displayed. A positive result is the handler running in the page's origin, visible as a dialog or a request to a listener you control.
  5. Test the same value in every context it reaches: the profile page, search results, listings, exports, emails and any API that returns the record.

Common false positives: the payload appears in the response but HTML-encoded, so it renders as text; the value appears only where the browser does not execute it, such as inside a <textarea> or a JSON response; a payload fires only in your own browser because of an extension or a developer tool; or the input is sanitised on save but the sanitised form still looks suspicious in the source. Always confirm execution in a clean browser profile and check whether the affected page is reachable by other users.

How it is fixed

Encode the stored value on output for the context where it is rendered, rather than relying on filtering at input time. Validate and constrain the field on save where a strict format is possible, for example a city name. Apply a Content Security Policy that blocks inline handlers, and set HttpOnly on session cookies. Where a rich-text field genuinely needs markup, sanitise it with a well-maintained HTML sanitiser on the server and allow only a small set of tags and attributes. Add regression tests that submit payload-like strings and assert they come back encoded.

Hunting notes

Stored XSS tends to hide at the seams between applications: admin panels that write to a shared database, public sites that read from it, and third-party components such as forums or CMS modules with their own templating. Fields that are rarely reviewed, like city, company, job title or signature, are frequent offenders because they are treated as low-risk metadata.

Recon signals worth following: a forum or CMS running alongside a separate admin console, parameters such as UID or register that select a profile view, and any page that renders a record you can edit elsewhere. Comparing the edit form and the display page for the same field is often enough to spot a missing encoding step.

To make a report land, show the full chain: where the value is stored, where it is rendered, and that the script runs for a viewer other than the person who entered it. A short video of the flow plus the exact URLs and payload is usually enough. State the impact in terms of what the script can do in that origin, and avoid overstating it beyond what you demonstrated.

Glossary

  • Asset: the specific system or domain a security program covers, here *.devicelock.com.
  • Bitrix: a content management system that runs a website and provides an admin back office.
  • Admin panel: a private area of a website used by staff to manage users, content and settings.
  • Request: a message your browser sends to a server asking for a page or submitting data.
  • Parameter: a named value in a URL, such as UID=28349, that tells the page what to show.
  • Cookie: a small piece of data stored in your browser by a site, often used to keep you logged in.
  • document.cookie: the JavaScript way of reading and writing cookies for the current page.
  • Cross-site scripting (XSS): getting attacker-supplied code to run inside a trusted site's page in a visitor's browser.
  • Stored XSS: XSS where the malicious value is saved on the server and shown to later visitors.
  • Payload: the piece of input an attacker submits to try to trigger a bug.
  • HTML: the markup language that describes the structure of a web page.
  • Tag: an HTML element such as <img>, which tells the browser to load or display something.
  • Event handler: JavaScript attached to an element that runs when something happens, such as onerror when an image fails to load.
  • Encoding (output encoding): converting special characters into harmless equivalents so the browser shows them as text rather than running them.
  • Sanitisation: cleaning input by removing or neutralising dangerous parts, usually on the server.
  • Content Security Policy (CSP): a browser instruction from the site that restricts what scripts and resources a page may use.
  • HttpOnly: a cookie flag that stops JavaScript from reading that cookie.
  • Origin: the combination of scheme, host and port that defines which site a page belongs to; scripts run in the origin of the page that contains them.
  • False positive: a test result that looks like a bug but is not actually exploitable.
  • Proof of concept (POC): a concrete demonstration that a bug is real, here the profile URL and the video.

More by Souhaib Naceri

View all

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