CVE-2023-22894: Strapi Cleartext Storage of Sensitive Information Vulnerability
Exploitation: In the wild · CVSS 7.2 High · Authenticated · Published 2023-04-19
Description
Strapi through 4.5.5 allows attackers (with access to the admin panel) to discover sensitive user details by exploiting the query filter. The attacker can filter users by columns that contain sensitive information and infer a value from API responses. If the attacker has super admin access, then this can be exploited to discover the password hash and password reset token of all users. If the attacker has admin panel access to an account with permission to access the username and email of API users with a lower privileged role (e.g., Editor or Author), then this can be exploited to discover sensitive information for all API users but not other admin accounts.
Enclave's analysis
Strapi's query filter doesn't block private fields, so an attacker can guess password hashes and reset tokens one character at a time by watching whether responses come back empty. The CVE text says admin access is needed. The researcher and vendor describe an unauthenticated version. It's on CISA KEV with active exploitation, and it chains with CVE-2023-22621 for RCE. Upgrade past 4.8.0 and move off Strapi v3.
Fix
Upgrade Strapi to 4.8.0; Strapi v3 to No v3 fix; migrate to a supported version.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| Strapi | 3.2.1 up to but excluding 4.8.0 (CVE text says through 4.5.5; researcher says up to 4.7.1) | 4.8.0 |
| Strapi v3 | All v3 releases from 3.2.1; end of life since 2022-12-31 with no security updates | No v3 fix; migrate to a supported version |