Community Hub membersJoin more than 6500+ Members
All security advisories
CriticalCVSS 9.3– Published

Admin account takeover via Host-header password-reset poisoning

GHSA-xj2c-8fw5-mr6m

Affected versions

PackageAffected versionsFixed in
shopware/core<6.6.10.236.6.10.23
shopware/platform<6.6.10.236.6.10.23
shopware/platform>=6.7.0.0 <6.7.13.16.7.13.1
shopware/core>=6.7.0.0 <6.7.13.16.7.13.1

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.22 or newer
6.6.x3.0.17 or newer
6.7.x4.0.13 or newer

Description

Impact

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 versions
  • Shopware versions up to and including 6.6.10.22
  • Shopware 6.7.0.0 through 6.7.13.0
Patches

The issue is fixed in:

  • 6.6.10.23
  • 6.7.13.1

We recommend updating to a patched version as soon as possible.

Workarounds

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

Credits

Thanks to Jan Kahmen of turingpoint for responsibly reporting this issue.