← voltar
CVE-2026-33504

Ory Hydra has a SQL injection via forged pagination tokens

CVSS 7.2 HIGHEPSS 0.3%CWE-89
Em resumo

O Ory Hydra possui uma falha na paginação que permite que atacantes que conhecem uma chave secreta criem tokens de paginação falsos contendo comandos SQL maliciosos. Se um atacante conseguir acessar as APIs administrativas que usam paginação, ele pode executar consultas não autorizadas no banco de dados.

Detalhe técnico

Vulnerabilidade de SQL injection nas APIs administrativas listOAuth2Clients, listOAuth2ConsentSessions e listTrustedOAuth2JwtGrantIssuers do Ory Hydra devido à validação inadequada de tokens na implementação de paginação. Um atacante com conhecimento de secrets.pagination ou secrets.system pode forjar tokens de paginação criptografados para injetar SQL arbitrário. O vetor de ataque requer acesso de rede aos endpoints administrativos afetados e conhecimento da chave secreta; o impacto inclui execução não autorizada de consultas ao banco de dados.

Resumo gerado e traduzido por IA a partir da descrição oficial.
Ory Hydra is an OAuth 2.0 Server and OpenID Connect Provider. Prior to version 26.2.0, the listOAuth2Clients, listOAuth2ConsentSessions, and listTrustedOAuth2JwtGrantIssuers Admin APIs in Ory Hydra are vulnerable to SQL injection due to flaws in its pagination implementation. Pagination tokens are encrypted using the secret configured in `secrets.pagination`. If this value is not set, Hydra falls back to using `secrets.system`. An attacker who knows this secret can craft their own tokens, including malicious tokens that lead to SQL injection. This issue can be exploited when one or more admin APIs listed above are directly or indirectly accessible to the attacker; the attacker can pass a raw pagination token to the affected API; and the configuration value `secrets.pagination` is set and known to the attacker, or `secrets.pagination` is not set and `secrets.system` is known to the attacker. An attacker can execute arbitrary SQL queries through forged pagination tokens. As a first line of defense, immediately configure a custom value for `secrets.pagination` by generating a cryptographically secure random secret. Next, upgrade Hydra to the fixed version, 26.2.0 as soon as possible.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Produtos afetados
ory · hydra

Quer saber se a sua infraestrutura está exposta a isto?

Falar com a TrueHacking →