Rapid7

module

WordPress wp-automatic Plugin SQLi Admin Creation

Disclosed
Mar 13, 2024
Created
Oct 30, 2024

Description

This module exploits an unauthenticated SQL injection vulnerability in the WordPress wp-automatic plugin (versions
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.

Authors

Rafie Muhammad
Valentin Lobstein

Platform

Linux,PHP,Unix,Windows

Architectures

php, cmd

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.