| Package | Affected versions | Fixed in |
|---|---|---|
| shopware/core | <6.6.10.23 | 6.6.10.23 |
| shopware/platform | <6.6.10.23 | 6.6.10.23 |
| shopware/platform | >=6.7.0.0 <6.7.13.1 | 6.7.13.1 |
| shopware/core | >=6.7.0.0 <6.7.13.1 | 6.7.13.1 |
If you cannot update Shopware right away, the Shopware Security Plugin closes this issue from the listed version on.
| Shopware version | Security Plugin version |
|---|---|
| 6.5.x | 2.0.22 or newer |
| 6.6.x | 3.0.17 or newer |
| 6.7.x | 4.0.13 or newer |
Shopware’s Administration password-recovery flow did not sufficiently validate the host used in password-reset links. An unauthenticated attacker could cause a reset link for a known administrator account to point to an attacker-controlled domain.
If the administrator opened the manipulated link, the attacker could take over the account and obtain full Administration access.
Affected versionsThe issue is fixed in:
We recommend updating to a patched version as soon as possible.
WorkaroundsIf an immediate update is not possible, enable Symfony trusted-host validation so requests with unexpected Host headers are rejected.
Create, for example, config/packages/zzz-trusted-hosts.yaml:
framework:
trusted_hosts:
- '^shop\.example\.com$'
# Add every domain through which your shop is reachable.
See Symfony’s trusted hosts configuration for details.
Alternatively, configure the web server or reverse proxy to accept only the intended host names and reject unexpected Host headers.
Thanks to Jan Kahmen of turingpoint for responsibly reporting this issue.