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

exploitDog

github логотип

GHSA-7mxx-3cgm-xxv3

Опубликовано: 24 мар. 2025
Источник: github
Github: Прошло ревью
CVSS3: 4.4

Описание

API Platform Core does not call GraphQl securityAfterResolver

Summary

A security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in this clause: https://github.com/api-platform/core/pull/6444/files#diff-09e3c2cfe12a2ce65bd6c983c7ca6bfcf783f852b8d0554bb938e8ebf5e5fa65R56

https://github.com/soyuka/core/blob/7e2e8f9ff322ac5f6eb5f65baf432bffdca0fd51/src/Symfony/Security/State/AccessCheckerProvider.php#L49-L57

PoC

Create a graphql endpoint with a security after resolver.

Impact

As this fallsback to security, the impact is there only when there's only a security after resolver and none inside security. The test at https://github.com/api-platform/core/pull/6444 is probably broken.

Пакеты

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

api-platform/core

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

>= 3.3.8, < 3.3.15

3.3.15

EPSS

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

4.4 Medium

CVSS3

Дефекты

CWE-20
CWE-484

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

CVSS3: 4.4
nvd
11 месяцев назад

API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Starting in version 3.3.8, a security check that gets called after GraphQl resolvers is always replaced by another one as there's no break in a clause. As this falls back to `security`, the impact is there only when there's only a security after resolver and none inside security. Version 3.3.15 contains a patch for the issue.

EPSS

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

4.4 Medium

CVSS3

Дефекты

CWE-20
CWE-484