VDB
Sign up
MEDIUM6.1

GHSA-6784-9c82-vr85

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

Quick fix

GHSA-6784-9c82-vr85 — sulu/sulu: upgrade to the fixed version with the command below.

composer require sulu/sulu:^2.6.5

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/sulu/sulu
Introduced in: 2.6.0Fixed in: 2.6.5
Fixcomposer require sulu/sulu:^2.6.5
Packagist/sulu/sulu
Introduced in: 2.0.0Fixed in: 2.5.21
Fixcomposer require sulu/sulu:^2.5.21

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/sulu/sulu"]}'