CVE-2020-13945
published 2020-12-07CVE-2020-13945: In Apache APISIX, the user enabled the Admin API and deleted the Admin API access IP restriction rules. Eventually, the default token is allowed to access…
PriorityP262medium6.5CVSS 3.1
AVNACLPRLUINSUCHINAN
EXPLOIT
EPSS
72.98%
99.4th percentile
In Apache APISIX, the user enabled the Admin API and deleted the Admin API access IP restriction rules. Eventually, the default token is allowed to access APISIX management data. This affects versions 1.2, 1.3, 1.4, 1.5.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apache | apisix | 1.2 – 1.5 | — |
| apache_software_foundation | apache_apisix | — | — |
| apache_software_foundation | apache_apisix | — | — |
| apache_software_foundation | apache_apisix | — | — |
| apache_software_foundation | apache_apisix | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Detect exploitation attempts by looking for POST requests to /apisix/admin/routes containing the default API token 'edd1c9f034335f136f87ad84b625c8f1' in the X-API-KEY header, combined with a 'script' field in the JSON body (used for LUA code injection). ↗
- →A successful exploitation response to POST /apisix/admin/routes will return HTTP 201 and a JSON body containing the fields '"action":"create"', '"script":', and '"node":'. ↗
- →Monitor for Shodan/FOFA-exposed Apache APISIX dashboard instances as likely targets; attacker reconnaissance may precede exploitation. ↗
- →The malicious route payload embeds a Lua script using 'io.popen' to execute arbitrary OS commands passed via the 'cmd' URI argument; inspect Admin API POST bodies for 'io.popen' or 'ngx.req.get_uri_args' in the 'script' field. ↗
- ·The vulnerability requires the Admin API to be exposed (IP restriction rules deleted or absent). Instances with properly enforced IP allowlists on the Admin API are not directly exploitable via this default token. ↗
- ·The Metasploit module also leverages a secondary vulnerability to bypass the IP restriction plugin, meaning even partially hardened instances may be at risk. ↗
- ·The 'script' parameter enabling LUA code execution was added in the 2.x version; the CVE formally covers versions 1.2–1.5, but the RCE vector via 'script' applies to 2.x as well. ↗
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:P/I:N/A:N
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
Nuclei
Apache APISIX - Insufficiently Protected Credentials
nuclei·CVSS 6.5
CVE-2020-13945 [MEDIUM] Apache APISIX - Insufficiently Protected Credentials
Apache APISIX - Insufficiently Protected Credentials
Apache APISIX 1.2, 1.3, 1.4, and 1.5 is susceptible to insufficiently protected credentials. An attacker can enable the Admin API and delete the Admin API access IP restriction rules. Eventually, the default token is allowed to access APISIX management data.
Template:
id: CVE-2020-13945
info:
name: Apache APISIX - Insufficiently Protected Credentials
author: pdteam
severity: medium
description: Apache APISIX 1.2, 1.3, 1.4, and 1.5 is susceptible to insufficiently protected credentials. An attacker can enable the Admin API and delete the Admin API access IP restriction rules. Eventually, the default token is allowed to access APISIX management data.
impact: |
The vulnerability could result in unauthorized access to sensitive informati
Metasploit
APISIX Admin API default access token RCE
metasploit
APISIX Admin API default access token RCE
APISIX Admin API default access token RCE
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.
No writeups or analysis indexed.
http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.htmlhttps://lists.apache.org/thread.html/r792feb29964067a4108f53e8579a1e9bd1c8b5b9bc95618c814faf2f%40%3Cdev.apisix.apache.org%3Ehttp://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.htmlhttps://lists.apache.org/thread.html/r792feb29964067a4108f53e8579a1e9bd1c8b5b9bc95618c814faf2f%40%3Cdev.apisix.apache.org%3E
2020-12-07
Published