VDB
Sign up
MEDIUM5.0

GHSA-2w46-vq8h-98vh

Shopware 6's password recovery link does not expire after email change

Quick fix

GHSA-2w46-vq8h-98vh — shopware/core: upgrade to the fixed version with the command below.

composer require shopware/core:^6.6.10.9

Details

### Summary When a customer changes their email address after requesting a password reset, the old password reset link (tied to the previous email) remains valid. An attacker with access to the old email inbox is potentially able to reset the customer’s password even after the user changes their email address.

### PoC

1. Log in to a Shopware account. 2. Request a password reset for your current email address. 3. Copy the password reset link but do not open it. 4. Log back into your account.n 5. Navigate to Account Settings → Email and change your email address. 6. Use the previously copied reset link (from before the email change). 7. The system allows password change using the old link.

### Impact Reproduced on Stable 6.6.10.7 and trunk.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/shopware/core
Introduced in: 0Fixed in: 6.6.10.9
Fixcomposer require shopware/core:^6.6.10.9
Packagist/shopware/core
Introduced in: 6.7.0.0Fixed in: 6.7.4.1
Fixcomposer require shopware/core:^6.7.4.1

References