GitHub Advisoryadvisory · Packagist

GHSA-8vp7-j5cj-vvm2 Ability to expose data in Sylius by using an unintended serialisation group

MEDIUM Published 2020-01-31 Modified 2024-02-07 Official page ↗
Aliases
CVE-2020-5220
Ecosystem
Packagist
Packages
sylius/resource-bundle, sylius/sylius
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-200, CWE-444
Reviewed
2020-01-27

Affected packages

• Packagist sylius/resource-bundle: >= 1.4.0, < 1.4.6 → fixed in 1.4.6 • Packagist sylius/resource-bundle: >= 1.5.0, < 1.5.1 → fixed in 1.5.1 • Packagist sylius/resource-bundle: >= 1.6.0, < 1.6.3 → fixed in 1.6.3 • Packagist sylius/sylius: < 1.3.12 → fixed in 1.3.12 • Packagist sylius/sylius: >= 1.4.0, < 1.4.4 → fixed in 1.4.4 • Packagist sylius/resource-bundle: >= 1.0.0, < 1.3.13 → fixed in 1.3.13

Description

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.0 =1.4.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.

Related

Alias · CVE (1)

  • CVE-2020-5220 Sylius ResourceBundle accepts and uses any serialisation groups to be passed via a HTTP header. vulnerability

Weakness · CWE (2)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-444 Inconsistent Interpretation of HTTP Requests weakness

References