Advisory

GHSA-h77w-655f-6j3m

Also known as: CVE-2020-9309

Summary

Silverstripe CMS malicious file upload enables script execution

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-24 17:23 UTC
Modified
2024-02-16 08:05 UTC

Affected packages and fixes

silverstripe/cms

Packagist · All systems

Affected

  • introduced 0, last affected 4.5.0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences