NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2024-47183: Parse Server's custom object ID allows to acquire role privileges

highCVSS 4.0 8.6 · 3.1 8.1GHSA-8xq9-g7ch-35hg

Impact If the Parse Server option allowCustomObjectId: true is set, an attacker that is allowed to create a new user can set a custom object ID for that new user that exploits the vulnerability and acquires privileges of a specific role. Patches Improved validation for custom user object IDs. Session tokens for existing users with an object ID that exploits the vulnerability are now rejected.

Published Oct 4, 2024 · Updated Nov 13, 2024

Affected packages

parse-server

Ecosystem
npm
Affected
< 6.5.9
Fixed in
6.5.9
Check
npm ls parse-server

parse-server

Ecosystem
npm
Affected
>= 7.0.0, < 7.3.0
Fixed in
7.3.0
Check
npm ls parse-server

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

If the Parse Server option allowCustomObjectId: true is set, an attacker that is allowed to create a new user can set a custom object ID for that new user that exploits the vulnerability and acquires privileges of a specific role.

Patches

Improved validation for custom user object IDs. Session tokens for existing users with an object ID that exploits the vulnerability are now rejected.

Workarounds

  • Disable custom object IDs by setting allowCustomObjectId: false or not setting the option which defaults to false.
  • Use a Cloud Code Trigger to validate that a new user's object ID doesn't start with the prefix role:.

References

  • https://github.com/parse-community/parse-server/security/advisories/GHSA-8xq9-g7ch-35hg
  • https://github.com/parse-community/parse-server/pull/9317 (fix for Parse Server 7)
  • https://github.com/parse-community/parse-server/pull/9318 (fix for Parse Server 6)

Credited to mstniy, mtrezza.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries