Skip to content
XSS Disclosed report Beginner

Stored XSS in profile page

The user profile page allowed a stored cross-site scripting payload in the Signature field, which executed when other users viewed the attacker's profile. An attacker could run script in a victim's browser by sending them a link to the malicious profile.

darkdream Follow

Originally disclosed on HackerOne

Bounty$50 Medium View original
  • Triaged in 2 hours
  • Fixed in 27 days
  • Paid in 4 days
  • Disclosed after 10 months

Summary There is a stored XSS vulnerability in the users profile page.

Steps:

1-Go to https://forum.acronis.com , create an user and login 2-Go to profile and edit it 3- enter javascript code in Signature field for exampe use this code in Signature : <xss onmouseover="alert(1)">test</xss> 4-send this profile to other users ,or send this profile link via email to victims.

Impact

if someone views attacker profile the script will execute

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

What the report shows

The target is the Acronis community forum at https://forum.acronis.com, and the feature involved is the user profile, specifically the Signature field. The researcher reported a stored cross-site scripting issue there, rated medium severity and paid a 50.00 USD bounty. The report was disclosed on 2021-11-14.

The reproduction steps are short and direct:

  1. Go to https://forum.acronis.com, create a user and log in.
  2. Go to the profile and edit it.
  3. Enter JavaScript code in the Signature field, for example:
HTML
<xss onmouseover="alert(1)">test</xss>
  1. Send this profile to other users, or send the profile link by email to victims.

The payload is not a plain <script> tag. It is a custom element name, xss, carrying an onmouseover handler, with the text test inside. The handler fires when a viewer moves the mouse over the rendered signature.

The report does not describe the server response when the profile was saved, does not show the stored value being rendered back, and does not include a screenshot or video of the alert. It also does not state which component renders the signature, what encoding or filtering was applied, or how the issue was fixed.

Root cause

The report points to a likely failure to sanitise or encode user-controlled profile content before it is rendered to other users. The Signature field is stored once and shown on the profile page, so markup that survives storage and is emitted as HTML can execute in a viewer's session. The report does not describe what filtering, if any, was applied to the Signature field.

Impact

As the report puts it, if someone views the attacker's profile, the script will execute. In practice that means script runs in the browser of anyone who opens the profile, including users reached through a link sent by email. The report does not demonstrate theft of cookies or session tokens, account actions, or administrative impact, so the stated impact stays at script execution in the viewer's context.

How this kind of bug works

Stored XSS happens when an application accepts input from one user, persists it, and later places it into an HTML document served to another user without context-appropriate encoding. The browser cannot tell developer-authored markup from attacker-authored markup, so any element or attribute that can carry script, such as event handlers, javascript: URLs, or script-capable elements, will run with the origin of the vulnerable page.

The defences are layered. Output encoding converts characters such as <, >, &, quotes into entities so the value is treated as text. Server-side sanitisation with an allow-list parser removes dangerous elements and attributes while keeping safe formatting. A Content Security Policy that forbids inline script and event handlers limits the damage when sanitisation fails. Framework templating that escapes by default, plus avoiding raw HTML sinks, prevents the mistake at the source.

How to test for it

Look for any field whose value is shown to other users: profile signatures, bios, display names, comments, support tickets, shared documents, and notification templates. The signature field in a forum profile is a classic because it is rendered on every profile view.

A practical method:

  1. Create two accounts, an attacker and a victim, so you can observe rendering in a separate session.
  2. In the attacker account, submit a benign marker first, for example a distinctive string, and confirm where and how it is rendered.
  3. Submit a payload that would only fire if the value is interpreted as HTML, such as an element with an event handler, and view the profile as the victim.
  4. Check the raw response to see whether the payload is stored encoded, stripped, or emitted verbatim.
  5. Try variations: different event handlers, elements that load resources, and attribute contexts such as inside href or src.

A positive result is the handler executing in the victim's browser, or the raw response containing the payload unencoded in an executable position. Common false positives are payloads that appear in the response but are HTML-encoded, payloads reflected only back to the submitter, and cases where a CSP blocks execution. Confirm execution rather than assuming it from the presence of the string.

How it is fixed

Apply contextual output encoding wherever stored values are rendered. Sanitise rich-text fields server-side with a well-maintained allow-list library, and strip event-handler attributes and unknown elements. Validate input length and content on save as a secondary control. Add a Content Security Policy that disallows inline handlers, and review every sink that writes user content into HTML.

Hunting notes

Stored XSS tends to hide in features that render one user's content to another: profiles, signatures, comments, reviews, private messages, shared reports, and admin dashboards that display user-supplied data. Recon signals include rich-text editors, markdown rendering, fields described as supporting formatting, and pages that echo values without obvious escaping. To make a report land, show the full path from storage to execution in a second account, include the exact payload and the response, and state clearly who is affected and what the script can do in their session.

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 happened, in plain words

The report describes a stored cross-site scripting (XSS) bug in the user profile page of the Acronis community forum at https://forum.acronis.com. The researcher reported that the Signature field of a profile accepted HTML containing an event handler, and that the script executes when someone views the profile. The issue was rated medium severity and paid a 50.00 USD bounty; it was disclosed on 2021-11-14.

A forum signature is a block of text shown on a user's profile. Because it is written once and displayed to everyone who views the profile, it is a good place to look for stored XSS: the attacker only needs a victim to open the profile.

The reproduction steps are short:

  1. Go to https://forum.acronis.com, create a user and log in.
  2. Go to the profile and edit it.
  3. Enter JavaScript code in the Signature field, for example:
HTML
<xss onmouseover="alert(1)">test</xss>
  1. Send this profile to other users, or send the profile link by email to victims.

The payload is not a plain <script> tag. It is a custom element named xss with an onmouseover handler and the text test inside. The handler fires when a viewer moves the mouse over the rendered signature. The report does not show the server response when the profile was saved, the stored value being rendered back, or a screenshot of the alert. It also does not state which component renders the signature, what filtering was applied, or how the issue was fixed.

Why it matters

The report says: if someone views the attacker's profile, the script will execute. In practice, script runs in the browser of anyone who opens the profile, including users reached through a link sent by email. The report does not demonstrate theft of cookies or session tokens, account actions, or administrative impact, so the stated impact stays at script execution in the viewer's context.

In general, how this kind of bug works

Stored XSS happens when an application accepts input from one user, saves it, and later places it into an HTML page served to another user without encoding it for that context. The browser cannot tell markup written by the site's developers from markup written by an attacker, so any element or attribute that can carry script, such as event handlers, javascript: URLs, or script-capable elements, will run with the origin of the vulnerable page.

A useful comparison is a noticeboard in an office: if anyone can pin a note and the next person reads it as instructions, a malicious note can tell the reader to do something. Encoding is like printing the note inside a glass case so it is read as text, not followed as instructions.

The defences are layered. Output encoding converts characters such as <, >, & and quotes into entities so the value is treated as text. Server-side sanitisation with an allow-list parser removes dangerous elements and attributes while keeping safe formatting. A Content Security Policy that forbids inline script and event handlers limits the damage when sanitisation fails. Framework templating that escapes by default, plus avoiding raw HTML sinks, prevents the mistake at the source.

In general, how to test for it

Look for any field whose value is shown to other users: profile signatures, bios, display names, comments, support tickets, shared documents, and notification templates. The signature field in a forum profile is a classic because it is rendered on every profile view.

A practical method:

  1. Create two accounts, an attacker and a victim, so you can observe rendering in a separate session.
  2. In the attacker account, submit a benign marker first, for example a distinctive string, and confirm where and how it is rendered.
  3. Submit a payload that would only fire if the value is interpreted as HTML, such as an element with an event handler, and view the profile as the victim.
  4. Check the raw response to see whether the payload is stored encoded, stripped, or emitted verbatim.
  5. Try variations: different event handlers, elements that load resources, and attribute contexts such as inside href or src.

A positive result is the handler executing in the victim's browser, or the raw response containing the payload unencoded in an executable position. Common false positives are payloads that appear in the response but are HTML-encoded, payloads reflected only back to the submitter, and cases where a CSP blocks execution. Confirm execution rather than assuming it from the presence of the string.

In general, how it is fixed

Apply contextual output encoding wherever stored values are rendered. Sanitise rich-text fields server-side with a well-maintained allow-list library, and strip event-handler attributes and unknown elements. Validate input length and content on save as a secondary control. Add a Content Security Policy that disallows inline handlers, and review every sink that writes user content into HTML.

Glossary

  • Stored XSS: a cross-site scripting bug where malicious input is saved by the application and later shown to other users.
  • Cross-site scripting (XSS): a class of bug where attacker-controlled content is interpreted as code by a victim's browser.
  • Signature field: a block of text shown on a user's profile.
  • Payload: the piece of input an attacker submits to trigger a bug.
  • Event handler: an attribute such as onmouseover that tells the browser to run code when something happens, here when the mouse moves over the element.
  • Custom element: an HTML element with a name the browser does not recognise as a standard tag, such as xss.
  • Output encoding: converting characters like < and > into entities so the browser displays them as text instead of interpreting them as markup.
  • Sanitisation: cleaning user input by removing dangerous elements and attributes, usually with an allow-list.
  • Allow-list: a list of things that are permitted; anything not on the list is removed.
  • Content Security Policy (CSP): a response header that tells the browser which sources of script and other content are allowed.
  • Cookie: a small piece of data a site stores in the browser, often used to keep a user logged in.
  • Session token: a value that identifies a logged-in session; stealing it can let an attacker act as the user.
  • Origin: the combination of scheme, host and port that defines which site a page belongs to.
  • Sink: a place in the code where data is written into a page or otherwise used in a way that can execute it.
  • False positive: a result that looks like a bug but is not actually exploitable.

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.