Advisory

GHSA-r657-33vp-gp22

Also known as: BIT-parse-2022-39231, CVE-2022-39231

Summary

parse-server auth adapter app ID validation can be circumvented

Details

Impact

Validation of the authentication adapter app ID for _Facebook_ and _Spotify_ may be circumvented.

This fixes a vulnerability that affects configurations which allow users to authenticate using the Parse Server authentication adapter for _Facebook_ or _Spotify_ and where the server-side authentication adapter configuration appIds is set as a string (e.g. abc) instead of an array of strings (e.g. ["abc"]). The vulnerability makes it possible to authenticate requests which are coming from a _Facebook_ or _Spotify_ app with a different app ID than the one specified in the appIds configuration.

Both adapters still validate the access token with the respective authentication provider. An app ID is automatically assigned by the authentication provider. For this vulnerability to be exploited, an attacker would have to be assigned an app ID by the authentication provider which is a sub-set of the server-side configured app ID.

The documentation did not explicitly specify that the parameter appIds must be set as an array of strings and setting a string also worked. Therefore, there is a possibility that there are deployments where appIds is set as a string, making them vulnerable.

Patches

The fix makes Parse Server check the type of the value set for appIds and throws an error if the value is not an array.

Workarounds

No known workarounds.

References

Severity

Low Basis: The source's own band: LOW

Dates

Published
2022-09-21 20:43 UTC
Modified
2023-12-06 01:02 UTC

Affected packages and fixes

parse-server

npm · All systems

Affected

  • introduced 0, fixed 4.10.16 (semver)

Fixed versions

4.10.16

Fix

parse-server

npm · All systems

Affected

  • introduced 5.0.0, fixed 5.2.7 (semver)

Fixed versions

5.2.7

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