Skip to content

Bypass of CMS Safe Mode Security Feature

Moderate severity GitHub Reviewed Published Jul 15, 2022 in wintercms/winter • Updated Jan 12, 2023

Package

composer wintercms/winter (Composer)

Affected versions

< 1.0.475
>= 1.1.0, < 1.1.9

Patched versions

1.0.475
1.1.9

Description

Impact

Authenticated users with permissions to create or modify theme template objects through the backend "CMS" editor can exploit this vulnerability to bypass the cms.enableSafeMode security feature if enabled (disables modification of PHP code through the web interface when enabled).

This is only an issue for Winter CMS instances that rely on the Safe Mode security feature to prevent privileged users from modifying the PHP code of CMS theme template objects through the web interface.

CVSS v3.1 Vector: AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C

Patches

Issue has been fixed in v1.0.475, v1.1.9, & v1.2.

Workarounds

Apply wintercms/storm@03eb5ce manually if unable to upgrade to v1.0.475, v1.1.9, or v1.2.0.

References

See GHSA-79jw-2f46-wv22.

Credit to David Miller for reporting the issue.

For more information

If you have any questions or comments about this advisory:

References

@LukeTowers LukeTowers published to wintercms/winter Jul 15, 2022
Published to the GitHub Advisory Database Jul 15, 2022
Reviewed Jul 15, 2022
Last updated Jan 12, 2023

Severity

Moderate

Weaknesses

No CWEs

CVE ID

No known CVE

GHSA ID

GHSA-q37h-jhf3-85cj

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.