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

exploitDog

github логотип

GHSA-8vp7-j5cj-vvm2

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

Описание

Ability to expose data in Sylius by using an unintended serialisation group

Impact

ResourceBundle accepts and uses any serialisation groups to be passed via a HTTP header. This might lead to data exposure by using an unintended serialisation group - for example it could make Shop API use a more permissive group from Admin API.

Anyone exposing an API with ResourceBundle's controller is affected. The vulnerable versions are: <1.3 || >=1.3.0 <=1.3.12 || >=1.4.0 <=1.4.5 || >=1.5.0 <=1.5.0 || >=1.6.0 <=1.6.2.

Patches

The patch is provided for ResourceBundle 1.3.13, 1.4.6, 1.5.1 and 1.6.3, but not for any versions below 1.3.

After it is applied, It allows to choose only the groups that are defined in serialization_groups or allowed_serialization_groups route definition. Any group not defined in those will not be used.

This behaviour might be a BC break for those using custom groups via the HTTP header, please adjust allowed_serialization_groups accordingly.

Workarounds

Service sylius.resource_controller.request_configuration_factory can be overridden with an implementation copied from \Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactory where the part that handles custom serialisation groups is deleted.

Пакеты

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

sylius/resource-bundle

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

>= 1.4.0, < 1.4.6

1.4.6

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

sylius/resource-bundle

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

>= 1.5.0, < 1.5.1

1.5.1

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

sylius/resource-bundle

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

>= 1.6.0, < 1.6.3

1.6.3

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

sylius/sylius

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

< 1.3.12

1.3.12

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

sylius/sylius

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

>= 1.4.0, < 1.4.4

1.4.4

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

sylius/resource-bundle

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

>= 1.0.0, < 1.3.13

1.3.13

EPSS

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

4.4 Medium

CVSS3

Дефекты

CWE-200
CWE-444

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

CVSS3: 4.4
nvd
около 6 лет назад

Sylius ResourceBundle accepts and uses any serialisation groups to be passed via a HTTP header. This might lead to data exposure by using an unintended serialisation group - for example it could make Shop API use a more permissive group from Admin API. Anyone exposing an API with ResourceBundle's controller is affected. The vulnerable versions are: <1.3 || >=1.3.0 <=1.3.12 || >=1.4.0 <=1.4.5 || >=1.5.0 <=1.5.0 || >=1.6.0 <=1.6.2. The patch is provided for Sylius ResourceBundle 1.3.13, 1.4.6, 1.5.1 and 1.6.3, but not for any versions below 1.3.

EPSS

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

4.4 Medium

CVSS3

Дефекты

CWE-200
CWE-444