Headline
CVE-2023-41892: Call beforeAction() up front · craftcms/cms@c0a37e1
Craft CMS is a platform for creating digital experiences. This is a high-impact, low-complexity attack vector. Users running Craft installations before 4.4.15 are encouraged to update to at least that version to mitigate the issue. This issue has been fixed in Craft CMS 4.4.15.
Expand Up @@ -34,6 +34,12 @@ class ConditionsController extends Controller */ public function beforeAction($action): bool { if (!parent::beforeAction($action)) { return false; }
$this->requireCpRequest();
$baseConfig = Json::decodeIfJson($this->request->getBodyParam(‘config’)); $config = $this->request->getBodyParam($baseConfig[‘name’]); $newRuleType = ArrayHelper::remove($config, ‘new-rule-type’); Expand All @@ -48,7 +54,7 @@ public function beforeAction($action): bool $this->_condition->addConditionRule($rule); }
return parent::beforeAction($action); return true; }
/** Expand Down
Related news
Craft CMS version 4.4.14 suffers from an unauthenticated remote code execution vulnerability.
This Metasploit module exploits an unauthenticated remote code execution vulnerability in Craft CMS versions 4.0.0-RC1 through 4.4.14.
### Impact This is a high-impact, low-complexity attack vector. Users running Craft installations before 4.4.15 are encouraged to update to at least that version to mitigate the issue. ### Patches This has been fixed in Craft 4.4.15. ### References https://github.com/craftcms/cms/commit/c0a37e15cc925c473e60e27fe64054993b867ac1#diff-47dd43d86f85161944dfcce2e41d31955c4184672d9bd9d82b948c6b01b86476 https://github.com/craftcms/cms/commit/7359d18d46389ffac86c2af1e0cd59e37c298857 https://github.com/craftcms/cms/commit/a270b928f3d34ad3bd953b81c304424edd57355e https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#4415---2023-07-03-critical