< 1 min. read
Categories: News Technical
CVE-2020-15245: Ability to switch customer email address on account detail page and stay verified
We strive to make sure Sylius is a secure choice for you. Learn how to fix the latest security vulnerability.

Is my store affected by this vulnerability?

All versions prior to 1.6.9, versions between 1.7.0 to 1.7.8, and versions 1.8.0, 1.8.1, and 1.8.2 have this vulnerability.

Another way to check whether your application contains known vulnerabilities is to use the Symfony binary. Run `symfony check:security` to scan your application.

Read more here.


The user may register in a shop by email [email protected], verify it, change it to the mail [email protected] and stay verified and enabled. This may lead to having accounts addressed to totally different emails, that were verified. Note, that this way one is not able to take over any existing account (guest or normal one).


Patch has been provided for Sylius 1.6.x and newer – 1.6.9, 1.7.9, 1.8.3. Versions older than 1.6 are not covered by our security support anymore.


If for whatever reason you are not able to upgrade your application version, you may resolve this issue on your own by creating a custom event listener, which will listen to the `sylius.customer.pre_update` event. You can determine that email has been changed if customer email and user username are different. They are synchronized later on. Pay attention, to email changing behavior for administrators. You may need to skip this logic for them. In order to achieve this, you should either check master request path info, if it does not contain `/admin` prefix or adjust event triggered during customer update in the shop. You can find more information on how to customize the event here.


This security issue has been reported by Mircea Silviu (@decemvre), thanks a lot!

Łukasz Chruściel
Łukasz is currently solely focused on development of Sylius products. His main area of interests are solving development problems and increasing knowledge of less experienced fellow software engineers. He is cooperating with our Product Owner in terms of technical features. You may spot him on Github, answering your issues and reviewing your PR’s.
More from our blog
Business News Technical < 1 min read 28.09.2020
Get ready for global sales & operations with the most advanced payment solution from the famous fintech giant, now available in Sylius out of the box. Read More
Business News < 1 min read 14.09.2020
We proudly present to you the latest version of the Sylius eCommerce Platform – 1.8, which comes with a brand new, unified API powered by API Platform, Loyalty points system for Sylius Plus, and as you can probably see, a brand new sylius.com website! Numbers This new release is a… Read More
Business Ecosystem News < 1 min read 13.08.2020
Read why the French market leader trusted Sylius in a strategic re-platforming process to get a competitive eCommerce advantage. Read More