Druva inSync client for Windows exposes a network service on TCP port 6064 on the local network interface. inSync versions 6.6.3 and prior do not properly validate user-supplied program paths in RPC type 5 messages, allowing execution of arbitrary commands as SYSTEM. This module has been tested successfully on inSync versions 6.5.2r99097 and 6.6.3r102156 on Windows 7 SP1 (x64).
Windows
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/local/druva_insync_insynccphwnet64_rcp_type_5_priv_esc
msf exploit(druva_insync_insynccphwnet64_rcp_type_5_priv_esc) > show targets
...targets...
msf exploit(druva_insync_insynccphwnet64_rcp_type_5_priv_esc) > set TARGET < target-id >
msf exploit(druva_insync_insynccphwnet64_rcp_type_5_priv_esc) > show options
...show and set options...
msf exploit(druva_insync_insynccphwnet64_rcp_type_5_priv_esc) > 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