{
  "Name": "Klog Server Unauth RCE(CVE-2020-35729)",
  "Description": "KLog Server 2.4.1 allows OS command injection via shell metacharacters in the actions/authenticate.php user parameter.",
  "Product": "Klog Server",
  "Homepage": "klogserver.com",
  "DisclosureDate": "2020-12-27",
  "Author": "corp0ra1@qq.com",
  "GifAddress": "https://raw.githubusercontent.com/gobysec/GobyVuls/master/KlogServer/CVE-2020-35729/CVE_2020_35729.gif",
  "FofaQuery": "",
  "GobyQuery": "title=\"KLog Server\"&&body=\"authenticate.php\"",
  "Level": "3",
  "Impact": "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.",
	"Recommandation": "<p>Update the latest version</p>",
  "References": [
    "http://packetstormsecurity.com/files/160798/Klog-Server-2.4.1-Command-Injection.html",
    "http://packetstormsecurity.com/files/161123/Klog-Server-2.4.1-Command-Injection.html",
    "http://packetstormsecurity.com/files/161410/Klog-Server-2.4.1-Command-Injection.html",
    "https://github.com/mustgundogdu/Research/blob/main/KLOG_SERVER/Exploit_Code",
    "https://github.com/mustgundogdu/Research/blob/main/KLOG_SERVER/README.md",
    "https://nvd.nist.gov/vuln/detail/CVE-2020-35729",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-35729"
  ],
  "HasExp": true,
  "ExpParams": [
    {
      "name": "AttackType",
      "type": "select",
      "value": "cmd,goby_shell"
    },
    {
      "name": "cmd",
      "type": "input",
      "value": "whoami",
      "show": "AttackType=cmd"
    }
  ],
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": null,
  "ExploitSteps": null,
  "Tags": ["rce"],
  "CVEIDs": [
    "CVE-2020-35729"
  ],
  "CVSSScore": "9.8",
  "AttackSurfaces": {
    "Application": ["KLog-Server"],
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": null
  },
  "Disable": false
}