Different Raidsonic NAS devices are vulnerable to OS command injection via the web interface. The vulnerability exists in timeHandler.cgi, which is accessible without authentication. This module has been tested with the versions IB-NAS5220 and IB-NAS4220. Since this module is adding a new user and modifying the inetd daemon configuration, this module is set to ManualRanking and could cause target instability.
Unix
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/raidsonic_nas_ib5220_exec_noauth
msf exploit(raidsonic_nas_ib5220_exec_noauth) > show targets
...targets...
msf exploit(raidsonic_nas_ib5220_exec_noauth) > set TARGET < target-id >
msf exploit(raidsonic_nas_ib5220_exec_noauth) > show options
...show and set options...
msf exploit(raidsonic_nas_ib5220_exec_noauth) > 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