This module exploits a command injection vulnerability on *login* (yes, you read that right) that affects Micro Focus Operations Bridge Reporter on Linux, versions 10.40 and below. It's a straight up command injection, with little escaping required and it works before authentication. This module has been tested on the Linux 10.40 version. Older versions might be affected, check the advisory for details.
Unix
cmd
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/microfocus_obr_cmd_injection
msf exploit(microfocus_obr_cmd_injection) > show targets
...targets...
msf exploit(microfocus_obr_cmd_injection) > set TARGET < target-id >
msf exploit(microfocus_obr_cmd_injection) > show options
...show and set options...
msf exploit(microfocus_obr_cmd_injection) > 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