Rapid7 Vulnerability & Exploit Database

KingScada kxClientDownload.ocx ActiveX Remote Code Execution

Back to Search

KingScada kxClientDownload.ocx ActiveX Remote Code Execution



This module abuses the kxClientDownload.ocx ActiveX control distributed with WellingTech KingScada. The ProjectURL property can be abused to download and load arbitrary DLLs from arbitrary locations, leading to arbitrary code execution, because of a dangerous usage of LoadLibrary. Due to the nature of the vulnerability, this module will work only when Protected Mode is not present or not enabled.


  • Andrea Micalizzi
  • juan vazquez <juan.vazquez@metasploit.com>




Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/browser/wellintech_kingscada_kxclientdownload
msf exploit(wellintech_kingscada_kxclientdownload) > show targets
msf exploit(wellintech_kingscada_kxclientdownload) > set TARGET < target-id >
msf exploit(wellintech_kingscada_kxclientdownload) > show options
    ...show and set options...
msf exploit(wellintech_kingscada_kxclientdownload) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security