While it’s not the most comfortable task, sharing security updates is essential in the tech world. Despite its challenges, we prioritize addressing every vulnerability diligently. Today, we’re rolling out several fixes for Sylius versions 1.12 and 1.13 as part of our commitment to your safety.
The original security advisory has been published on GitHub at Sylius/Sylius repository.
This issue is present in all Sylius versions before 1.12.16 and 1.13.1. This only affects the base UI Shop provided by Sylius.
The issue is fixed in versions: 1.12.16, 1.13.1, and above.
Create new file `assets/shop/sylius-province-field.js`:
gist.github.com/GSadee/0926ac86935309e17ea0acf6d7df0709#file-sylius-province-field-js
Add new import in `assets/shop/entry.js`:
gist.github.com/GSadee/0926ac86935309e17ea0acf6d7df0709#file-entry-js
Rebuild your assets:
gist.github.com/GSadee/0926ac86935309e17ea0acf6d7df0709#file-bash-sh
The original security advisory has been published on GitHub at Sylius/Sylius repository.
This issue is present in all Sylius versions before 1.12.16 and 1.13.1. The main attack vector for Sylius requires access to the admin panel, as there is only the possibility of creating or editing the listed entities.
Executing javascript code in the Admin panel is possible. To perform an XSS attack, input a script into the `Name` field of one of the resources: Taxons, Products, Product Options, or Product Variants. The code will be executed using an autocomplete field with one of the listed entities in the Admin Panel. The same applies to the taxons in the category tree on the product form.
Create new file `assets/admin/sylius-lazy-choice-tree.js`:
gist.github.com/GSadee/0926ac86935309e17ea0acf6d7df0709#file-sylius-province-field-js
Create new file `assets/admin/sylius-auto-complete.js`:
gist.github.com/GSadee/115f430ce334c368809c3a0b5798aef3#file-sylius-auto-complete-js
Create new file assets/admin/sylius-product-auto-complete.js:
gist.github.com/GSadee/115f430ce334c368809c3a0b5798aef3#file-sylius-product-auto-complete-js
Add new import in assets/admin/entry.js:
gist.github.com/GSadee/115f430ce334c368809c3a0b5798aef3#file-entry-js
Rebuild your assets:
gist.github.com/GSadee/115f430ce334c368809c3a0b5798aef3#file-bash-sh