@strapi/core
Affected
- introduced
5.0.0, fixed5.5.2(semver)
Fixed versions
5.5.2
Fix
- Fixed version
5.5.2npm install @strapi/[email protected]
Advisory
Also known as: CVE-2024-56143
Strapi Allows Unauthorized Access to Private Fields via parms.lookup
Summary
It's possible to access any private fields by filtering through the lookup parameters
Details
Using the new lookup operator provided by the document service in Strapi 5, it is not properly sanitizing this query operator for private fields.
PoC
&lookup[updatedBy][password][$startsWith]=$2 to the end of your url (All passwords start with $2) see that all entries are still there&lookup[updatedBy][password][$startsWith]=$3 see the entry disappear proving that the search above worksImpact
An attacker can perform filtering attacks on everything related to the object, including admin passwords and reset-tokens. This means that they can gain full access to the strapi instance.
High Basis: The source's own band: HIGH
5.0.0, fixed 5.5.2 (semver)5.5.2
5.5.2npm install @strapi/[email protected]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