Intel

AIKIDO-2024-10378

easycorp/easyadmin-bundle is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 28, 2024

25

Low Risk

This Affects:

phpeasycorp/easyadmin-bundle
3.5.0 - 4.9.5
Fixed in 4.10.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). The default title of the detail page uses the %entity_as_string% placeholder, which references the value returned by the __toString() method of the entity. This can lead to an XSS vulnerability as page titles and other elements are rendered with the raw Twig filter, allowing an attacker to inject malicious HTML or JavaScript content, potentially compromising the security of the page.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

easycorp/easyadmin-bundle is vulnerable to Cross-site Scripting (XSS) in versions 3.5.0 - 4.9.5.

How to fix this

Upgrade the easycorp/easyadmin-bundle library to the patch version.