CVE-2022-39225: Incorrect Resource Transfer Between Spheres
(updated )
Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. In versions prior to 4.10.15, or 5.0.0 and above prior to 5.2.6, a user can write to the session object of another user if the session object ID is known. For example, an attacker can assign the session object to their own user by writing to the user
field and then read any custom fields of that session object. Note that assigning a session to another user does not usually change the privileges of either of the two users, and a user cannot assign their own session to another user. This issue is patched in version 4.10.15 and above, and 5.2.6 and above. To mitigate this issue in unpatched versions add a beforeSave
trigger to the _Session
class and prevent writing if the requesting user is different from the user in the session object.
References
- github.com/advisories/GHSA-6w4q-23cf-j9jp
- github.com/parse-community/parse-server/commit/37fed3062ccc3ef1dfd49a9fc53318e72b3e4aff
- github.com/parse-community/parse-server/releases/tag/4.10.15
- github.com/parse-community/parse-server/releases/tag/5.2.6
- github.com/parse-community/parse-server/security/advisories/GHSA-6w4q-23cf-j9jp
- nvd.nist.gov/vuln/detail/CVE-2022-39225
Detect and mitigate CVE-2022-39225 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →