Description
This module exploits one of two PHP injection vulnerabilities in the ThinkPHP web framework to execute code as the web user.
Versions up to and including 5.0.23 are exploitable, though 5.0.23 is vulnerable to a separate vulnerability. The module will automatically attempt to detect the version of the software.
Tested against versions 5.0.20 and 5.0.23 as can be found on Vulhub.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/unix/webapp/thinkphp_rcemsf undefined(thinkphp_rce) > show actions ...actions...msf undefined(thinkphp_rce) > set ACTION < action-name >msf undefined(thinkphp_rce) > show options ...show and set options...msf undefined(thinkphp_rce) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub