Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-r657-33vp-gp22

Опубликовано: 21 сент. 2022
Источник: github
Github: Прошло ревью
CVSS3: 3.7

Описание

parse-server auth adapter app ID validation can be circumvented

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

Пакеты

Наименование

parse-server

npm
Затронутые версииВерсия исправления

< 4.10.16

4.10.16

Наименование

parse-server

npm
Затронутые версииВерсия исправления

>= 5.0.0, < 5.2.7

5.2.7

EPSS

Процентиль: 40%
0.00186
Низкий

3.7 Low

CVSS3

Дефекты

CWE-287

Связанные уязвимости

CVSS3: 3.7
nvd
больше 3 лет назад

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.16, or from 5.0.0 to 5.2.6, validation of the authentication adapter app ID for _Facebook_ and _Spotify_ may be circumvented. Configurations which allow users to authenticate using the Parse Server authentication adapter where `appIds` is set as a string instead of an array of strings authenticate requests from an app with a different app ID than the one specified in the `appIds` configuration. For this vulnerability to be exploited, an attacker needs to be assigned an app ID by the authentication provider which is a sub-set of the server-side configured app ID. This issue is patched in versions 4.10.16 and 5.2.7. There are no known workarounds.

EPSS

Процентиль: 40%
0.00186
Низкий

3.7 Low

CVSS3

Дефекты

CWE-287