Exploit database

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:H

Description

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 Program

Exploit source choices

12 sources
APISIX Admin API default access token RCE
MSF-multi--http--apache_apisix_api_default_token_rceMetasploitUnix / remote

Apache 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.

2020-12-07apache_apisix_api_default_token_rce.rb
bigblackhat/ofx
GH-e5e9839114413d56d271656aba98f851GitHubUnofficial GitHub source

一个开源的、开箱即用的漏洞批量验证框架

2021-06-02301 files · 920 stars
arpsyndicate/kenzer-templates
GH-e5a0867366963da7a3617cf6f32fda4bGitHubUnofficial GitHub source

essential templates for kenzer [DEPRECATED]

2020-09-185,308 files · 118 stars
m4xsec/apache-apisix-cve-2022-24112
GH-e598795564eff5163caac4f8c7236baaGitHubUnofficial GitHub source

Apache APISIX Remote Code Execution (CVE-2022-24112) proof of concept exploit

2022-03-162 files · 15 stars
twseptian/cve-2022-24112
GH-028511fbec0c7767dfe52868d4e30326GitHubUnofficial GitHub source

Apache APISIX < 2.12.1 Remote Code Execution and Docker Lab

2022-03-2047 files · 9 stars
secnn/cve-2022-24112
GH-26bdad3bea407767660e7642414fb53fGitHubUnofficial GitHub source

Apache APISIX batch-requests RCE(CVE-2022-24112)

2022-02-254 files · 8 stars
mah1ndra/cve-2022-24112
GH-69d27c2be970efd21ed358265a7c0afcGitHubUnofficial GitHub source

CVE-2022-24112: Apache APISIX Remote Code Execution Vulnerability

2022-03-082 files · 7 stars
acczdy/cve-2022-24112_poc
GH-e48e1c154144a1e3c0c023cf4fc9b81cGitHubUnofficial GitHub source

CVE-2022-24112_POC

2022-12-033 files · 5 stars
kavishkagihan/cve-2022-24112-poc
GH-8401f2760195f15822054d909147e80cGitHubUnofficial GitHub source

Apache APISIX 2.12.1 Remote Code Execution by IP restriction bypass and using default admin AIP token

2022-03-172 files · 2 stars
btar1gan/exploit_cve-2022-24112
GH-d299632b1b2c97ec034b5137da241a33GitHubUnofficial GitHub source

New exploit for Apache APISIX v2.12.1 - Remote code execution (RCE)

2024-06-033 files · 1 stars
crackercat/cve-2022-24112
GH-3e3eaa12558ae5031ee9705c3516c586GitHubUnofficial GitHub source

Apache APISIX apisix/batch-requests RCE

2022-02-222 files · 0 stars