Disclosed vulnerabilities
Fixed: May 9, 2024
CVE-2024-34349 Published: May 10, 2024

Stored Cross-Site Scripting (XSS) in sylius/sylius

4.8 Medium Severity cross-site injection javascript php scripting XSS
Mário Teixeira Reported by Checkmarx Zero

Summary

The sylius package is vulnerable to a Stored Cross-Site Scripting (XSS) vulnerability in various components of the Admin panel via Name field.

Product

This vulnerability affects sylius/sylius and sylius/admin-bundle versions prior to 1.12.16 and 1.13.1.

Impact

The vulnerability allows to inject JavaScript code that will be executed by other administrators, which could lead to serious implications like Account Takeover.

Steps to reproduce

  1. On the Admin panel, create a new element. A Taxon for instance.
  2. Insert a script in the Name field in any of the languages:
<script>alert('XSS')</script>
  1. Visit any page where the field Name is being rendered.

Expected result:

A pop-up appears on the screen with the message XSS.

Remediation

A fix was merged to sanitize the input to prevent malicious code from being executed.

Credit

This issue was discovered and reported by Checkmarx AppSec Analyst Mário Teixeira.

Resources

  1. Advisory
  2. Pull Request
  3. Commit
  4. Release Note

Stay connected and never miss a research update!