CVE-2020-11710: Other (NVD-CWE-Other)
value: An issue was discovered in docker-kong (for Kong) through 2.0.3. The admin API port may be accessible on interfaces other than 127.0.0.1. NOTE: The vendor argue that this CVE is not a vulnerability because it has an inaccurate bug scope and patch links. “1) Inaccurate Bug Scope - The issue scope was on Kong's docker-compose template, and not Kong's docker image itself. In reality, this issue is not associated with any version of the Kong gateway. As such, the description stating ‘An issue was discovered in docker-kong (for Kong) through 2.0.3.’ is incorrect. This issue only occurs if a user decided to spin up Kong via docker-compose without following the security documentation. The docker-compose template is meant for users to quickly get started with Kong, and is meant for development purposes only. 2) Incorrect Patch Links - The CVE currently points to a documentation improvement as a “Patch” link: https://github.com/Kong/docs.konghq.com/commit/d693827c32144943a2f45abc017c1321b33ff611.This link actually points to an improvement Kong Inc made for fool-proofing. However, instructions for how to protect the admin API were already well-documented here: https://docs.konghq.com/2.0.x/secure-admin-api/#network-layer-access-restrictions , which was first published back in 2017 (as shown in this commit: https://github.com/Kong/docs.konghq.com/commit/e99cf875d875dd84fdb751079ac37882c9972949) Lastly, the hyperlink to https://github.com/Kong/kong (an unrelated Github Repo to this issue) on the Hyperlink list does not include any meaningful information on this topic.
CWE description: NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.
CVSS v3 base score: 9.8
Published: 2020-04-12T17:15Z
Repository: https://github.com/Kong/docs.konghq.com
Language: Markdown
Files changed: app/enterprise/1.3-x/deployment/installation/docker.md, app/install/docker.md
Commit date: 2020-03-25 14:05:28 -0400
Commit message: fix(admin) bind the kong admin api port to 127 (#1869)


Diff: diff --git a/app/enterprise/1.3-x/deployment/installation/docker.md b/app/enterprise/1.3-x/deployment/installation/docker.md
index 7e479d36..2339dd1a 100644
--- a/app/enterprise/1.3-x/deployment/installation/docker.md
+++ b/app/enterprise/1.3-x/deployment/installation/docker.md
@@ -111,12 +111,12 @@ $ docker run -d --name kong-ee --network=kong-ee-net \
   -e "KONG_LICENSE_DATA=$KONG_LICENSE_DATA" \
   -e "KONG_PORTAL_GUI_HOST=<DNSorIP>:8003" \
   -e "KONG_ADMIN_GUI_URL=http://<DNSorIP>:8002" \
   -p 8000:8000 \
   -p 8443:8443 \
-  -p 8001:8001 \
-  -p 8444:8444 \
+  -p 127.0.0.1:8001:8001 \
+  -p 127.0.0.1:8444:8444 \
   -p 8002:8002 \
   -p 8445:8445 \
   -p 8003:8003 \
   -p 8004:8004 \
   kong-ee
diff --git a/app/install/docker.md b/app/install/docker.md
index 4c5e070f..9c3120f3 100644
--- a/app/install/docker.md
+++ b/app/install/docker.md
@@ -89,12 +89,12 @@ Here is a quick example showing how to connect a Kong container to a Cassandra o
         -e "KONG_PROXY_ERROR_LOG=/dev/stderr" \
         -e "KONG_ADMIN_ERROR_LOG=/dev/stderr" \
         -e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \
         -p 8000:8000 \
         -p 8443:8443 \
-        -p 8001:8001 \
-        -p 8444:8444 \
+        -p 127.0.0.1:8001:8001 \
+        -p 127.0.0.1:8444:8444 \
         kong:latest
     ```
 
 5. **Use Kong**
 
@@ -188,12 +188,12 @@ The steps involved in starting Kong in [DB-less mode] are the following:
         -e "KONG_PROXY_ERROR_LOG=/dev/stderr" \
         -e "KONG_ADMIN_ERROR_LOG=/dev/stderr" \
         -e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \
         -p 8000:8000 \
         -p 8443:8443 \
-        -p 8001:8001 \
-        -p 8444:8444 \
+        -p 127.0.0.1:8001:8001 \
+        -p 127.0.0.1:8444:8444 \
         kong:latest
     ```
 
 4. **Use Kong**
 

Vulnerable code:   -p 8001:8001 \
  -p 8444:8444 \
        -p 8001:8001 \
        -p 8444:8444 \
        -p 8001:8001 \
        -p 8444:8444 \
Fixed code:   -p 127.0.0.1:8001:8001 \
  -p 127.0.0.1:8444:8444 \
        -p 127.0.0.1:8001:8001 \
        -p 127.0.0.1:8444:8444 \
        -p 127.0.0.1:8001:8001 \
        -p 127.0.0.1:8444:8444 \