Rapid7 Vulnerability & Exploit Database

HP LoadRunner lrFileIOService ActiveX WriteFileString Remote Code Execution

Back to Search

HP LoadRunner lrFileIOService ActiveX WriteFileString Remote Code Execution



This module exploits a vulnerability on the lrFileIOService ActiveX, as installed with HP LoadRunner 11.50. The vulnerability exists in the WriteFileString method, which allow the user to write arbitrary files. It's abused to drop a payload embedded in a dll, which is later loaded through the Init() method from the lrMdrvService control, by abusing an insecure LoadLibrary call. This module has been tested successfully on IE8 on Windows XP. Virtualization based on the Low Integrity Process, on Windows Vista and 7, will stop this module because the DLL will be dropped to a virtualized folder, which isn't used by LoadLibrary.


  • Brian Gorenc
  • 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/hp_loadrunner_writefilestring
msf exploit(hp_loadrunner_writefilestring) > show targets
msf exploit(hp_loadrunner_writefilestring) > set TARGET < target-id >
msf exploit(hp_loadrunner_writefilestring) > show options
    ...show and set options...
msf exploit(hp_loadrunner_writefilestring) > 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