Rapid7 Vulnerability & Exploit Database

WordPress wp-automatic Plugin SQLi Admin Creation

Back to Search

WordPress wp-automatic Plugin SQLi Admin Creation

Disclosed
03/13/2024
Created
10/30/2024

Description

This module exploits an unauthenticated SQL injection vulnerability in the WordPress wp-automatic plugin (versions < 3.92.1) to achieve remote code execution (RCE). The vulnerability allows the attacker to inject and execute arbitrary SQL commands, which can be used to create a malicious administrator account. The password for the new account is hashed using MD5. Once the administrator account is created, the attacker can upload and execute a malicious plugin, leading to full control over the WordPress site.

Author(s)

  • Rafie Muhammad
  • Valentin Lobstein

Platform

Linux,PHP,Unix,Windows

Architectures

php, cmd

Development

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/multi/http/wp_automatic_sqli_to_rce
msf exploit(wp_automatic_sqli_to_rce) > show targets
    ...targets...
msf exploit(wp_automatic_sqli_to_rce) > set TARGET < target-id >
msf exploit(wp_automatic_sqli_to_rce) > show options
    ...show and set options...
msf exploit(wp_automatic_sqli_to_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

;