October CMS Patches Media Library Crop Handler Vulnerability

  • October CMS
  • XSS
  • RCE
  • Sanitizer

Flaw allowed bypass of upload extension allowlist

Updates address risks of stored XSS and remote code execution

Users urged to upgrade to version 3.7.18 or 4.3.3

October CMS has addressed a security vulnerability in its Media Library crop handler that allowed users to bypass the upload extension allowlist. This security flaw enabled the creation of unauthorized file types, including .html and .svg files, which could lead to stored Cross-Site Scripting (XSS) attacks. Attackers with authenticated backend access and the media.library.create permission could exploit this issue to execute scripts in the browsers of other users.

The vulnerability also allowed for the bypass of SVG sanitization by uploading malicious content as a .jpg file and cropping it into an .svg file. Furthermore, on deployments configured to execute PHP within the media directory, the flaw could lead to remote code execution. To mitigate these risks, October CMS released patches in versions 3.7.18 and 4.3.3. These updates ensure the crop handler enforces the same extension allowlist as the upload handler, and they introduce additional validation in the MediaLibrary::put and MediaLibrary::putFile methods.