This module exploits a logic bug within the template rendering code in vBulletin 5.x.
The module uses the vBulletin template rendering functionality to render the
'widget_tabbedcontainer_tab_panel' template while also providing the 'widget_php' argument.
This causes the former template to load the latter bypassing filters originally put in place
to address 'CVE-2019-16759'. This also allows the exploit to reach an eval call with user input
allowing the module to achieve PHP remote code execution on the target. This module has been
tested successfully on vBulletin version 5.6.2 on Ubuntu Linux.
msf > use exploit/multi/http/vbulletin_widget_template_rce
msf exploit(vbulletin_widget_template_rce) > show targets
...targets...
msf exploit(vbulletin_widget_template_rce) > set TARGET < target-id >
msf exploit(vbulletin_widget_template_rce) > show options
...show and set options...
msf exploit(vbulletin_widget_template_rce) > exploit