PoC Monitor
← All CVEs
CVE-2020-1956published 22 May 2020 13:27 UTCData: JSON · API

Apache Kylin

Apache Kylin OS Command Injection Vulnerability

Apache Kylin 2.3.0, and releases up to 2.6.5 and 3.0.1 has some restful apis which will concatenate os command with the user input string, a user is likely to be able to execute any os command without any protection or validation.

First public PoC 1.1 yearsafter publication · 8 Jul 2021
Public PoCs21 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS8.8high · scored by CISA ADP · CWE-78
CISA KEV 25 Mar 20221.8 years after publication

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

org.apache.kylin:kylin-core-common (Maven)
  • < 2.6.6

Fixed in 2.6.6

from GitHub Security Advisory GHSA-gprm-xqrc-c2j3

org.apache.kylin:kylin-core-common (Maven)
  • >= 3.0.0, < 3.0.2

Fixed in 3.0.2

from GitHub Security Advisory GHSA-gprm-xqrc-c2j3

Mitigation

Upgrade org.apache.kylin:kylin-core-common to 2.6.6 or later.

Upgrade org.apache.kylin:kylin-core-common to 3.0.2 or later.

Timeline

Days relative to CVE publication
t=0+90+180+270+360+450+540+630CVE published22 May 2020 · t = 0First public PoC8 Jul 2021 · t+1.1yAdded to CISA KEV25 Mar 2022 · t+1.8y

First public PoC 1.1 years after publication; added to CISA KEV 1.8 years after publication. First PoC: b510/CVE-2020-1956 (created 8 Jul 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
b510/CVE-2020-1956 8 Jul 2021 +1.1 y 0 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Apache Kylin 3.0.1 - Command Injection Vulnerability11 May 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

GET /kylin/api/cubes/

Seen in
1 repo: b510/CVE-2020-1956
Evidence
b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:24

POST /kylin/api/cubes/{var}/{var}/migrate

Seen in
1 repo: b510/CVE-2020-1956
Evidence
b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:28

POST /kylin/api/user/authentication

Key headers
Accept: application/json, text/plain, */* Accept-Language: en-US,en;q=0.5 Authorization: Basic {var} Cache-Control: no-cache Cookie: project=null Pragma: no-cache Referer: {var}/kylin/login
Content-Type
application/json;charset=utf-8
Seen in
1 repo: b510/CVE-2020-1956
Evidence
b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:50

PUT /kylin/api/cubes/

Key headers
Accept: application/json, text/plain, */* Accept-Language: en-US,en;q=0.5 Authorization: Basic {var} Cache-Control: no-cache Cookie: project=null Pragma: no-cache Referer: {var}/kylin/login
Content-Type
application/json;charset=utf-8
Seen in
1 repo: b510/CVE-2020-1956
Evidence
b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:75 b510/CVE-2020-1956/CVE-2020-1956_v2.0.py:77

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /kylin/api/cubes/
(?i)^/kylin/api/cubes/(?:[?#].*)?$
POST /kylin/api/cubes/{var}/{var}/migrate
(?i)^/kylin/api/cubes/[^/?#]*/[^/?#]*/migrate(?:[?#].*)?$
POST /kylin/api/user/authentication
(?i)^/kylin/api/user/authentication(?:[?#].*)?$
PUT /kylin/api/cubes/
(?i)^/kylin/api/cubes/(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /kylin/api/cubes/
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/kylin/api/cubes/"; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9030527; rev:1;)
POST /kylin/api/cubes/{var}/{var}/migrate
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/kylin/api/cubes/"; http.uri; content:"/migrate"; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9377934; rev:1;)
POST /kylin/api/user/authentication
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/kylin/api/user/authentication"; http.header; content:"Accept: application/json, text/plain, */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"Authorization: Basic "; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"Cookie: project=null"; nocase; http.header; content:"Pragma: no-cache"; nocase; http.header_names; content:"Referer"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9704306; rev:1;)
PUT /kylin/api/cubes/
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2020-1956 Apache Kylin exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/kylin/api/cubes/"; http.header; content:"Accept: application/json, text/plain, */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"Authorization: Basic "; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"Cookie: project=null"; nocase; http.header; content:"Pragma: no-cache"; nocase; http.header_names; content:"Referer"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2020-1956; classtype:web-application-attack; sid:9028378; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /kylin/api/cubes/
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9030527
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/kylin/api/cubes/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.1956
POST /kylin/api/cubes/{var}/{var}/migrate
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9377934
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/kylin/api/cubes/'
      - '/migrate'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.1956
POST /kylin/api/user/authentication
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9704306
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/kylin/api/user/authentication'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.1956
PUT /kylin/api/cubes/
title: Apache Kylin exploit attempt (CVE-2020-1956)
id: gg-pocmon-cve-2020-1956-9028378
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-1956. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-1956
logsource:
  category: webserver
detection:
  selection:
    cs-method: PUT
    cs-uri-stem|contains|all:
      - '/kylin/api/cubes/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.1956