Headline
CVE-2021-32712: SW-26001 - Adjust error controller · shopware/shopware@dcb24eb
Shopware is an open source eCommerce platform. Versions prior to 5.6.10 are vulnerable to system information leakage in error handling. Users are recommend to update to version 5.6.10. You can get the update to 5.6.10 regularly via the Auto-Updater or directly via the download overview.
@@ -50,10 +50,7 @@ public function preDispatch()
$this->enableBackendTheme();
}
if (strpos($this->Request()->getHeader(‘Content-Type’), ‘application/json’) === 0) {
$this->Front()->Plugins()->Json()->setRenderer();
$this->View()->assign('success’, false);
} elseif ($this->Request()->isXmlHttpRequest() || !Shopware()->Container()->initialized(‘db’)) {
if ($this->Request()->isXmlHttpRequest() || !Shopware()->Container()->initialized(‘db’)) {
$this->View()->loadTemplate($templateModule . ‘/error/exception.tpl’);
} elseif (isset($_ENV[‘SHELL’]) || PHP_SAPI === ‘cli’) {
$this->View()->loadTemplate($templateModule . ‘/error/cli.tpl’);