parse-server
Affected
- introduced
0, fixed4.10.14(semver)
Fixed versions
4.10.14
Fix
- Fixed version
4.10.14npm install [email protected]
Advisory
Also known as: BIT-parse-2022-36079, CVE-2022-36079
Parse Server vulnerable to brute force guessing of user sensitive data via search patterns
Impact
Internal fields (keys used internally by Parse Server, prefixed by _) and protected fields (user defined) can be used as query constraints. Internal and protected fields are removed by Parse Server from query results and are only returned to the client using a valid master key. However, using query constraints, these fields can be guessed by enumerating until Parse Server returns a response object.
Patches
The patch requires the master key to use internal and protected fields as query constraints.
Workarounds
Implement a Parse Cloud Trigger beforeFind and manually remove the query constraints, such as:
Parse.Cloud.beforeFind('TestObject', ({ query }) => {
for (const key in query._where || []) {
// Repeat logic for protected fields
if (key.charAt(0) === '_') {
delete query._where[key];
}
}
});
References
High Basis: The source's own band: HIGH
0, fixed 4.10.14 (semver)4.10.14
4.10.14npm install [email protected]5.0.0, fixed 5.2.5 (semver)5.2.5
5.2.5npm install [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