This module leverages CVE-2023-38836, an improper sanitization bug in BoidCMS version 2.0.0 and below. BoidCMS allows the authenticated upload of a php file as media if the file has the GIF header, even if the file is a php file.
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/multi/http/cve_2023_38836_boidcms
msf exploit(cve_2023_38836_boidcms) > show targets
...targets...
msf exploit(cve_2023_38836_boidcms) > set TARGET < target-id >
msf exploit(cve_2023_38836_boidcms) > show options
...show and set options...
msf exploit(cve_2023_38836_boidcms) > 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