shopware/platform
Affected
- introduced
6.7.0.0, fixed6.7.10.1(ecosystem)
Fixed versions
6.7.10.1
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-48009
Shopware: Admin Account Takeover via User Recovery Hash Exposure
Summary
A low-privilege admin user with user_recovery:read ACL can take over any admin account. The attacker triggers password recovery for the victim (unauthenticated endpoint), reads the recovery hash from the Admin API search endpoint, then uses the hash to reset the victim's password (another unauthenticated endpoint). The recovery hash — intended to be secret and delivered only via email — is fully readable through the standard entity search API.
OWASP: A01:2021 — Broken Access Control
Root Cause
The user_recovery entity exposes its hash field through the Admin API search endpoint (POST /api/search/user-recovery). The hash field lacks ApiAware(false) or ReadProtection, so any user with user_recovery:read ACL can read it.
The password recovery flow assumes the hash is delivered exclusively via email. The Admin API provides an alternative channel to obtain it, breaking this assumption.
Three endpoints combine to form the attack:
POST /api/_action/user/user-recovery — triggers recovery, creates hash in DB (no auth required)POST /api/search/user-recovery — reads the hash (requires only `user_recovery:read` ACL)PATCH /api/_action/user/user-recovery/password — resets password using hash (no auth required)Vulnerable code:
src/Core/System/User/Recovery/UserRecoveryDefinition.php — hash field is ApiAware with no ReadProtectionImpact
user_recovery:read is a seemingly harmless permission that grants devastating accessRemediation
Remove the hash field from API responses:
// src/Core/System/User/Recovery/UserRecoveryDefinition.php
(new StringField('hash', 'hash'))
->addFlags(new Required(), new ApiAware(false)),Medium Basis: The source's own band: MODERATE
6.7.0.0, fixed 6.7.10.1 (ecosystem)6.7.10.1
The export has no generic command for this ecosystem.
0, fixed 6.6.10.18 (ecosystem)6.6.10.18
The export has no generic command for this ecosystem.
6.7.0.0, fixed 6.7.10.1 (ecosystem)6.7.10.1
The export has no generic command for this ecosystem.
0, fixed 6.6.10.18 (ecosystem)6.6.10.18
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0