This module exploits a hardcoded service token or default credentials in HPE VAN SDN Controller <= 2.7.18.0503 to execute a payload as root. A root command injection was discovered in the uninstall action's name parameter, obviating the need to use sudo for privilege escalation. If the service token option TOKEN is blank, USERNAME and PASSWORD will be used for authentication. An additional login request will be sent.
Linux,Unix
cmd, x86, x64
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/hp_van_sdn_cmd_inject
msf exploit(hp_van_sdn_cmd_inject) > show targets
...targets...
msf exploit(hp_van_sdn_cmd_inject) > set TARGET < target-id >
msf exploit(hp_van_sdn_cmd_inject) > show options
...show and set options...
msf exploit(hp_van_sdn_cmd_inject) > 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