Rapid7 Vulnerability & Exploit Database

Microsoft Works 7 WkImgSrv.dll WKsPictureInterface() ActiveX Code Execution

Back to Search

Microsoft Works 7 WkImgSrv.dll WKsPictureInterface() ActiveX Code Execution



The Microsoft Works ActiveX control (WkImgSrv.dll) could allow a remote attacker to execute arbitrary code on a system. By passing a negative integer to the WksPictureInterface method, an attacker could execute arbitrary code on the system with privileges of the victim. Change 168430090 /0X0A0A0A0A to 202116108 / 0x0C0C0C0C FOR IE6. This control is not marked safe for scripting, please choose your attack vector carefully.


  • dean <dean@zerodaysolutions.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/fileformat/msworks_wkspictureinterface
msf exploit(msworks_wkspictureinterface) > show targets
msf exploit(msworks_wkspictureinterface) > set TARGET < target-id >
msf exploit(msworks_wkspictureinterface) > show options
    ...show and set options...
msf exploit(msworks_wkspictureinterface) > 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