Advisory

GHSA-8xq9-g7ch-35hg

Also known as: BIT-parse-2024-47183, CVE-2024-47183

Summary

Parse Server's custom object ID allows to acquire role privileges

Details

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)

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-10-04 18:50 UTC
Modified
2024-10-08 08:12 UTC

Affected packages and fixes

parse-server

npm · All systems

Affected

  • introduced 0, fixed 6.5.9 (semver)

Fixed versions

6.5.9

Fix

parse-server

npm · All systems

Affected

  • introduced 7.0.0, fixed 7.3.0 (semver)

Fixed versions

7.3.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences