Vulnerability
CVE-2022-24112
apisix/batch-requests plugin allows overwriting the X-REAL-IP header
Vulnerability details
- Score
- 9.8
- Severity
- critical
CVSS 3.1 · CISA-ADP
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDescription
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.
CVE ProgramExploit source choices
12 sourcesApache APISIX has a default, built-in API token edd1c9f034335f136f87ad84b625c8f1 that can be used to access all of the admin API, which leads to remote LUA code execution through the script parameter added in the 2.x version. This module also leverages another vulnerability to bypass the IP restriction plugin.
一个开源的、开箱即用的漏洞批量验证框架
essential templates for kenzer [DEPRECATED]
Apache APISIX Remote Code Execution (CVE-2022-24112) proof of concept exploit
Apache APISIX < 2.12.1 Remote Code Execution and Docker Lab
Apache APISIX batch-requests RCE(CVE-2022-24112)
CVE-2022-24112: Apache APISIX Remote Code Execution Vulnerability
CVE-2022-24112_POC
Apache APISIX 2.12.1 Remote Code Execution by IP restriction bypass and using default admin AIP token
New exploit for Apache APISIX v2.12.1 - Remote code execution (RCE)
Apache APISIX apisix/batch-requests RCE