Disclosed vulnerabilities
Fixed: Jan 16, 2024
CVE-2024-35239 Published: Sep 23, 2024

Stored XSS on Title and Description Component of Umbraco Forms

2.7 Low Severity forms Stored-XSS umbraco XSS
Raphael Silva Reported by Checkmarx Zero

Summary

The Umbraco Forms package contains a stored XSS vulnerability in the Title and Description component. Users with access to edit forms can inject arbitrary JavaScript into the BodyText and CaptionTag fields, which are rendered as HTML when the form is displayed. This vulnerability allows the execution of arbitrary JavaScript when the form is rendered.

Product

This vulnerability affects the Umbraco Forms package prior to versions 13.0.1, 12.2.2, 10.5.3 and 8.13.13.

Impact

An attacker with access to edit a form can inject arbitrary JavaScript into the BodyText or CaptionTag fields. When the form is rendered, the JavaScript executes in the browser, potentially allowing attackers to steal sensitive information or manipulate content in the context of the victim.

Steps to reproduce

  1. Log in as a user with permission to edit a form in Umbraco Forms.
  2. Inject malicious JavaScript into the BodyText or CaptionTag fields of the Title and Description component.
  3. Render the form to trigger the XSS.

Expected result:

The XSS is triggered, and the malicious JavaScript is executed in the context of the user viewing the form.

Remediation

The issue was fixed by sanitizing HTML content before rendering it, as well as adding an option for the developer to allow unsafe HTML in the form.

The fix was applied in the following versions:

  • 13.0.1
  • 12.2.2
  • 10.5.3
  • 8.13.13

Credit

This issue was discovered and reported by Checkmarx Security Researcher Raphael Silva.

Resources

  1. GHSA-p572-p2rj-q5f4
  2. CVE-2024-35239
  3. Release notes for 13.0.1
  4. Umbraco Forms configuration documentation

Stay connected and never miss a research update!