Community Hub membersJoin more than 6500+ Members
All security advisories
ModerateCVSS 5.0– Published

Password recovery link does not expire after email change

GHSA-2w46-vq8h-98vh

Affected versions

PackageAffected versionsFixed in
shopware/core<6.6.10.9, >=6.7.0.0 <6.7.4.1>=6.7.4.1, >=6.6.10.9 <6.7.0.0

Fixed by the Security Plugin

If you cannot update Shopware right away, the Shopware Security Plugin closes this issue from the listed version on.

Shopware versionSecurity Plugin version
6.5.x2.0.14 or newer
6.6.x3.0.10 or newer
6.7.x4.0.4 or newer

Description

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.