CVE-2025-23204
GraphQl securityAfterResolver not called
Em resumo
Uma verificação de segurança em APIs GraphQL está sendo pulada devido a um erro de programação, permitindo que requisições não autorizadas passem quando certas configurações de segurança são usadas.
Detalhe técnico
Uma falha de fluxo de controle no API Platform Core (v3.3.8+) faz com que a verificação securityAfterResolver seja sobrescrita sem um comando break em uma cláusula condicional. Isso afeta a autorização apenas quando regras de segurança são definidas exclusivamente no hook afterResolver sem restrições correspondentes na camada de segurança principal, potencialmente permitindo acesso não autorizado a resolvers protegidos.
Resumo gerado e traduzido por IA a partir da descrição oficial.
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.
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
Produtos afetados
api-platform · coreQuer saber se a sua infraestrutura está exposta a isto?
Falar com a TrueHacking →Referências
https://github.com/api-platform/core/commit/dc4fc84ba93e22b4f44a37e90a93c6d079c1c620https://github.com/api-platform/core/pull/6444https://github.com/api-platform/core/pull/6444/files#diff-09e3c2cfe12a2ce65bd6c983c7ca6bfcf783f852b8d0554bb938e8ebf5e5fa65R56https://github.com/api-platform/core/security/advisories/GHSA-7mxx-3cgm-xxv3https://github.com/soyuka/core/blob/7e2e8f9ff322ac5f6eb5f65baf432bffdca0fd51/src/Symfony/Security/State/AccessCheckerProvider.php#L49-L57