← voltar
CVE-2022-24112

apisix/batch-requests plugin allows overwriting the X-REAL-IP header

CVSS 9.8 CRITICALEPSS 96.2%● KEVCWE-290
Em resumo

Um defeito no plugin batch-requests do Apache APISIX permite que atacantes ignorem as restrições de IP e possivelmente executem código no servidor. Ao manipular requisições, um invasor pode se passar por um endereço IP confiável e ganhar acesso não autorizado à API de Administração.

Detalhe técnico

O plugin batch-requests tenta validar endereços IP do cliente sobrescrevendo-os com o IP remoto real; porém, um erro de lógica nesta validação permite que atacantes desviem a verificação por meio de requisições em lote. Isso viabiliza acesso não autorizado à Admin API e, com credenciais padrão, pode resultar em execução remota de código. Requer acesso de rede à instância APISIX.

Resumo gerado e traduzido por IA a partir da descrição oficial.
An attacker can abuse the batch-requests plugin to send requests to bypass the IP restriction of Admin API. A default configuration of Apache APISIX (with default API key) is vulnerable to remote code execution. When the admin key was changed or the port of Admin API was changed to a port different from the data panel, the impact is lower. But there is still a risk to bypass the IP restriction of Apache APISIX's data panel. There is a check in the batch-requests plugin which overrides the client IP with its real remote IP. But due to a bug in the code, this check can be bypassed.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
⚠ Recursos públicos, para você avaliar a exposição de sistemas que controla ou está autorizado a testar. Teste apenas com autorização.

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

Falar com a TrueHacking →