Headline
CVE-2023-43664: Merge pull request from GHSA-gvrg-62jp-rf7j · PrestaShop/PrestaShop@15bd281
PrestaShop is an Open Source e-commerce web application. In the Prestashop Back office interface, an employee can list all modules without any access rights: method ajaxProcessGetPossibleHookingListForModule
doesn’t check access rights. This issue has been addressed in commit 15bd281c
which is included in version 8.1.2. Users are advised to upgrade. There are no known workaround for this issue.
Expand Up
@@ -558,12 +558,14 @@ public function ajaxProcessSaveHook()
*/
public function ajaxProcessGetPossibleHookingListForModule()
{
$module_id = (int) Tools::getValue(‘module_id’);
if ($module_id == 0) {
die(‘{"hasError" : true, “errors” : [“Wrong module ID.”]}’);
}
if ($this->access(‘view’)) {
$module_id = (int) Tools::getValue(‘module_id’);
if ($module_id == 0) {
die(‘{"hasError" : true, “errors” : [“Wrong module ID.”]}’);
}
$module_instance = Module::getInstanceById($module_id);
die(json_encode($module_instance->getPossibleHooksList()));
$module_instance = Module::getInstanceById($module_id);
die(json_encode($module_instance->getPossibleHooksList()));
}
}
}