Headline
CVE-2022-39298: added allowed_classes=false param to unserialize function and changed… · melisplatform/melis-front@89ae612
MelisFront is the engine that displays website hosted on Melis Platform. It deals with showing pages, plugins, URL rewritting, search optimization and SEO, etc. Attackers can deserialize arbitrary data on affected versions of melisplatform/melis-front
, and ultimately leads to the execution of arbitrary PHP code on the system. Conducting this attack does not require authentication. Users should immediately upgrade to melisplatform/melis-front
>= 5.0.1. This issue was addressed by restricting allowed classes when deserializing user-controlled data.
@@ -248,7 +248,7 @@ public function getSiteConfig($siteId, $returnAll = false)
$siteConfig,
[
‘site’ => [
$siteName => unserialize($dbConf[‘sconf_datas’])
$siteName => unserialize($dbConf[‘sconf_datas’], [‘allowed_classes’ => false])
],
],
true
@@ -259,7 +259,7 @@ public function getSiteConfig($siteId, $returnAll = false)
[
‘site’ => [
$siteName => [
$siteId => unserialize($dbConf[‘sconf_datas’])
$siteId => unserialize($dbConf[‘sconf_datas’], [‘allowed_classes’ => false])
],
]
],
Related news
### Impact Attackers can deserialize arbitrary data on affected versions of `melisplatform/melis-front`, and ultimately leads to the execution of arbitrary PHP code on the system. Conducting this attack does not require authentication. Users should immediately upgrade to `melisplatform/melis-front` >= 5.0.1. ### Patches This issue was addressed by restricting allowed classes when deserializing user-controlled data. ### References - https://github.com/melisplatform/melis-front/commit/89ae612d5f1f7aa2fb621ee8de27dffe1feb851e ### For more information If you have any questions or comments about this advisory, you can contact: - The original reporters, by sending an email to vulnerability.research [at] sonarsource.com; - The maintainers, by opening an issue on this repository.