KEVIntel
9.8
CVSS
Critical

CVE-2022-24112

PUBLISHED

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

Exploited in the wild Remote Low complexity No user interaction
Vendor
Apache Software Foundation
Product
Apache APISIX
Published
Feb 11, 2022
EPSS

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.

apache cisa nuclei_scanner metasploit

CVSS scores

CVSS v3.1 9.8 Critical

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation status

Exploited in the wild

Recorded 2022-08-25 00:00:00 UTC · Source

SSVC decision points

Exploitation
active
Automatable
Yes
Technical impact
total

Known exploited vulnerability sources

Catalogues that list this CVE as a known exploited vulnerability.

Source Added
CISA Aug 25, 2022

Potential proof of concepts

These PoCs are unverified and could contain malware. Use at your own risk.

apache_apisix_api_default_token_rce

metasploit · Created Unknown

Metasploit module for CVE-2022-24112

Acczdy/CVE-2022-24112_POC

github · Created 2022-12-03 14:31:28 UTC · 5 stars

CVE-2022-24112_POC

kavishkagihan/CVE-2022-24112-POC

github · Created 2022-03-17 08:22:54 UTC · 2 stars

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

M4xSec/Apache-APISIX-CVE-2022-24112

github · Created 2022-03-16 09:19:12 UTC · 12 stars

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

Mah1ndra/CVE-2022-24112

github · Created 2022-03-08 17:08:52 UTC · 7 stars

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

Axx8/CVE-2022-24112

github · Created 2022-02-25 15:17:28 UTC · 8 stars

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

Mr-xn/CVE-2022-24112

github · Created 2022-02-22 14:09:49 UTC · 44 stars

CVE-2022-24112:Apache APISIX apisix/batch-requests RCE

Timeline

  • CVE ID Reserved

  • CVE Published to Public

  • Added to KEVIntel

  • Detected by Nuclei

  • Detected by Metasploit