Summary
PrestaShop's Webservice API can fail to enforce shop ownership checks when accessing customer records in a multi-shop installation. An authenticated API key holder may be able to read or modify customers associated with other shops, potentially exposing sensitive data or enabling account takeover.
Affected context
The issue affects PrestaShop installations before 8.2.9 and 9.2.1 when the Webservice API is used in a multi-shop setup. The risk arises where customer records are processed without verifying that the record belongs to a shop the API key is authorized to access.
Exploit preconditions
- Attack surface: PrestaShop Webservice API in a multi-shop installation
- Required access: An authenticated Webservice API key
- Trigger point: API requests that read or modify customer records
- Why exploitation is possible: Record-level shop ownership checks are missing from relevant authorization and entity-saving logic
Why this happens
The underlying issue is an authorization check that does not adequately bind access to a customer record to the shop authorized for the request. This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where access to a resource is not correctly restricted based on the identifier or context used to select it. In this case, the missing record-level shop ownership check can allow an API key to cross shop boundaries.
Potential impact
- An attacker may read customer records belonging to other shops.
- Sensitive customer information, including password hashes and secure keys, could be exposed.
- An attacker could change customer email addresses or passwords and take over accounts.
- Customer data integrity and trust between shops in the installation could be compromised.
General mitigation guidance
Defensive approaches focus on enforcing authorization for every customer record operation, not only at the API or shop level.
- Apply consistent record-level shop ownership checks to read and write operations.
- Use secure-by-default authorization policies that deny access unless ownership and permissions are explicitly verified.
- Minimize the scope and privileges of Webservice API keys.
- Reduce reliance on caller-supplied record identifiers as evidence of authorization.
- Log and review cross-shop access attempts and sensitive customer record changes.
How teams detect issues like this
- Review authorization paths for customer record reads, creates, updates, and deletes, especially checks involving shop ownership.
- Use static analysis or code review rules to flag entity operations that accept record identifiers without an associated authorization check.
- Test access-control policies to verify that API keys cannot access customer records outside their permitted shop scope.
- Monitor API activity for unusual cross-shop access or changes to customer email addresses and passwords.

