Skip to content

Ability to switch customer email address on account detail page and stay verified

Moderate severity GitHub Reviewed Published Oct 19, 2020 in Sylius/Sylius • Updated Feb 6, 2024

Package

composer sylius/sylius (Composer)

Affected versions

>= 1.7.0, < 1.7.9
>= 1.8.0, < 1.8.3
>= 1.0.0, < 1.6.9

Patched versions

1.7.9
1.8.3
1.6.9

Description

Impact

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).

Patches

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.

Workarounds

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.

Acknowledgements

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

For more information

If you have any questions or comments about this advisory:

References

@lchrusciel lchrusciel published to Sylius/Sylius Oct 19, 2020
Reviewed Oct 19, 2020
Published to the GitHub Advisory Database Oct 19, 2020
Published by the National Vulnerability Database Oct 19, 2020
Last updated Feb 6, 2024

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

EPSS score

0.048%
(18th percentile)

CVE ID

CVE-2020-15245

GHSA ID

GHSA-6gw4-x63h-5499

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.