< 1 min. read
Categories: Technical
Security blog post – 1.12.19 and 1.13.4

We got you covered, as long as you have your application up-to-date.

Although perfection is unattainable, our commitment to excellence remains unwavering. Announcing security updates is not something any technology favors, yet every software comes with its weaknesses and vulnerabilities. We take every security issue seriously and are dedicated to providing the best protection for our users. Today, we release important security fixes for Sylius versions 1.12 and 1.13.

Sylius 1.12 and above

CVE-2024-40633: Ability to retrieve Adjustments with an incremental integer ID in an API endpoint

The original security advisory has been published on GitHub at Sylius/Sylius repository.

Is my store affected by this vulnerability?

This issue is present in all Sylius versions before 1.12.19 and 1.13.4. This only affects the base API endpoints provided by Sylius.

Impact

A security vulnerability was discovered in the /api/v2/shop/adjustments/{id} endpoint, which retrieves order adjustments based on incremental integer IDs. The vulnerability allows an attacker to enumerate valid adjustment IDs and retrieve order tokens. Using these tokens, an attacker can access guest customer order details – sensitive guest customer information.

Patches

The issue is fixed in versions: 1.12.19, 1.13.4 and above.

Workarounds

Using YAML configuration:

Create config/api_platform/Adjustment.yaml file:

gist.github.com/GSadee/891c0c616846e2820f2f66bb1f829e0b#file-adjustment-yaml

Or using XML configuration:

Copy the original configuration from vendor:

gist.github.com/GSadee/891c0c616846e2820f2f66bb1f829e0b#file-bash-sh

And change the shop_get operation in copied config/api_platform/Adjustment.xml file:

gist.github.com/GSadee/891c0c616846e2820f2f66bb1f829e0b#file-adjustment-xml

Tags:
Share:
Grzegorz Sadowski
Grzegorz is primarily one of Sylius most experienced software developers and also our Scrum Master. As he’s got a knack for detail in numbers, he is also keeping an eye on our financial and legal operations. Privately he’s a Madridista since childhood. He’d literally enjoy driving any car on earth. He’s already planned to buy an electric Audi for his tiny daughter.
More from our blog
Technical < 1 min read 04.12.2024
Here’s everything you had to know about the first major release since 2017! Over 7 years after the first major release, on Nov 12, 2024, we have released Sylius 2.0.0. We had a great opportunity to announce it first at SyliusCon in Lyon, but now, as we are back to… Read More
< 1 min read 22.11.2024
The emotions start to settle after SyliusCon, and it’s time to reflect on this incredible milestone in our journey. Why a milestone? Because SyliusCon exceeded our expectations in every possible way. We broke attendance records and brought together the key figures of our community, numerous partners, freelancers, and simply all… Read More
Cloud < 1 min read 17.06.2024
We are thrilled to announce that we just signed a strategic partnership with Platform.sh, and as a result, we are extending our offer with Sylius Cloud powered by Platform.sh. Platform.sh is a modern Platform-as-a-Service (PaaS) solution that allows businesses to leverage the cloud environment without losing access to the code… Read More
Comments