Advisory

GHSA-6784-9c82-vr85

Also known as: CVE-2024-47617

Summary

Injection of arbitrary HTML/JavaScript code through the media download URL

Details

Impact

This vulnerability allows an attacker to inject arbitrary HTML/JavaScript code through the media download URL in Sulu CMS. It affects the SuluMediaBundle component. The vulnerability is a Reflected Cross-Site Scripting (XSS) issue, which could potentially allow attackers to steal sensitive information, manipulate the website's content, or perform actions on behalf of the victim.

Patches

The problem has not been patched yet. Users should upgrade to patched versions once they become available. Currently affected versions are:

  • 2.6.4
  • 2.5.20

Workarounds

Until an official patch is released, users can implement additional input validation and output encoding for the 'slug' parameter in the MediaStreamController's downloadAction method. Alternatively, configuring a Web Application Firewall (WAF) to filter potentially malicious input could serve as a temporary mitigation.

References

  • GitHub repository: https://github.com/sulu/sulu
  • Vulnerable code: https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php#L106

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-03 18:26 UTC
Modified
2024-10-17 17:05 UTC

Affected packages and fixes

sulu/sulu

Packagist · All systems

Affected

  • introduced 2.6.0, fixed 2.6.5 (ecosystem)

Fixed versions

2.6.5

Fix

The export has no generic command for this ecosystem.

sulu/sulu

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.5.21 (ecosystem)

Fixed versions

2.5.21

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences