Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-93cw-f5jj-x85w

Опубликовано: 17 янв. 2023
Источник: github
Github: Прошло ревью
CVSS3: 9.8

Описание

Shopware vulnerable to Improper Control of Generation of Code in Twig rendered views

Impact

In Twig environment without the Sandbox extension, it is possible to refer to PHP functions in twig filters like map, filter, sort. This allows in the template to call any global PHP function.

Patches

The problem has been fixed with 6.4.18.1 with an override of the specified filters until the integration of the Sandbox extension has been finished.

Workarounds

For older versions of 6.1, 6.2, and 6.3, corresponding security measures are also available via a plugin. For the full range of functions, we recommend updating to the latest Shopware version.

References

https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-01-2023?category=security-updates

Пакеты

Наименование

shopware/platform

composer
Затронутые версииВерсия исправления

<= 6.4.18.0

6.4.18.1

Наименование

shopware/core

composer
Затронутые версииВерсия исправления

<= 6.4.18.0

6.4.18.1

EPSS

Процентиль: 91%
0.06025
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-94

Связанные уязвимости

CVSS3: 9.9
nvd
около 3 лет назад

Shopware is an open source commerce platform based on Symfony Framework and Vue js. In a Twig environment **without the Sandbox extension**, it is possible to refer to PHP functions in twig filters like `map`, `filter`, `sort`. This allows a template to call any global PHP function and thus execute arbitrary code. The attacker must have access to a Twig environment in order to exploit this vulnerability. This problem has been fixed with 6.4.18.1 with an override of the specified filters until the integration of the Sandbox extension has been finished. Users are advised to upgrade. Users of major versions 6.1, 6.2, and 6.3 may also receive this fix via a plugin.

EPSS

Процентиль: 91%
0.06025
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-94