Shopware: Privilege escalation: non-admin user with user:create ACL can create admin accounts
shopware · shopware platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| shopware/platform Packagist |
|
|
| shopware/core Packagist |
|
shopware · shopware platform
| Product | Affected | Fixed in |
|---|---|---|
| shopware/platform Packagist |
|
|
| shopware/core Packagist |
|
|
Shopware is an open commerce platform. Prior to 6.6.10.18 and 6.7.10.1, UserController::upsertUser() in src/Core/Framework/Api/Controller/UserController.php writes raw user data in SYSTEM_SCOPE without filtering the admin field, so a non-admin API user with user:create or user:update ACL permission can set admin: true on new or existing users; IntegrationController::upsertIntegration() contains an isAdmin() check for the same field, but UserController was missing this check. This issue is fixed in versions 6.6.10.18 and 6.7.10.1.
From the CVE record · GitHub_M
Shopware's UserController writes user data without checking the admin field. An authenticated, non-admin API user with user:create or user:update permission can set admin: true on new or existing users. No user interaction is required.
Operators using the Shopware platform or Packagist shopware/platform or shopware/core packages on versions before 6.6.10.18 or from 6.7.0.0 through 6.7.10.0 should check their installations.