GitHub Advisoryadvisory · Packagist

GHSA-h77w-655f-6j3m Silverstripe CMS malicious file upload enables script execution

HIGH Published 2022-05-24 Modified 2023-08-22 Official page ↗
Aliases
CVE-2020-9309
Ecosystem
Packagist
Packages
silverstripe/cms
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-434
Reviewed
2023-07-13

Affected packages

• Packagist silverstripe/cms: <= 4.5.0 (no fix yet)

Description

Silverstripe CMS through 4.5 can be susceptible to script execution from malicious upload contents under allowed file extensions (for example HTML code in a TXT file). When these files are stored as protected or draft files, the MIME detection can cause browsers to execute the file contents. Uploads stored as protected or draft files are allowed by default for authorised users only, but can also be enabled through custom logic as well as modules such as silverstripe/userforms. Sites using the previously optional silverstripe/mimevalidator module can configure MIME whitelists rather than extension whitelists, and hence prevent this issue. Sites on the Common Web Platform (CWP) use this module by default, and are not affected.

Related

Alias · CVE (1)

  • CVE-2020-9309 Silverstripe CMS through 4.5 can be susceptible to script execution from malicious upload contents under allowed file extensions (for… vulnerability

Weakness · CWE (1)

  • CWE-434 Unrestricted Upload of File with Dangerous Type weakness

References