GHSA-gc5h-6jx9-q2qh eZ Platform Admin UI vulnerable to DOM-based Cross-site Scripting in file upload widget

Not scored Published

Authenticated users can execute arbitrary scripts via DOM-based XSS in the file upload widget by tricking editors into uploading maliciously named files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-gc5h-6jx9-q2qh?

GHSA-gc5h-6jx9-q2qh is a cross-site scripting vulnerability in ezsystems/ezplatform-admin-ui, published on 31 Jul 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Impact

The file upload widget is vulnerable to XSS payloads in filenames. Access permission to upload files is required. As such, in most cases only authenticated editors and administrators will have the required permission. It is not persistent, i.e. the payload is only executed during the upload. In effect, an attacker will have to trick an editor/administrator into uploading a strangely named file. The fix ensures XSS is escaped.

Patches

See "Patched versions". Commit: https://github.com/ezsystems/ezplatform-admin-ui/commit/7a9f991b200fa5a03d49cd07f50577c8bc90a30b

Workarounds

None.

References

Credit

This vulnerability was discovered and reported to Ibexa by Alec Romano: https://github.com/4rdr We thank them for reporting it responsibly to us.

How to report security issues: https://doc.ibexa.co/en/latest/infrastructure_and_maintenance/security/reporting_issues/

Which versions are affected by GHSA-gc5h-6jx9-q2qh?

2 open source packages ship an affected version, including ezsystems/ezplatform-admin-ui.

PackageAffectedFixed in
ezsystems/ezplatform-admin-ui PackagistFrom 3.3.03.3.39
ezsystems/ezplatform-admin-ui PackagistFrom 3.3.03.3.39

How do I fix GHSA-gc5h-6jx9-q2qh?

Upgrade ezsystems/ezplatform-admin-ui to 3.3.39 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-gc5h-6jx9-q2qh being exploited?

There is no known exploitation of GHSA-gc5h-6jx9-q2qh in the wild and no public exploit code.

Sources

Is GHSA-gc5h-6jx9-q2qh in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free