module

WordPress wp-automatic Plugin SQLi Admin Creation

Disclosed
2024-03-13
Created
2024-10-30

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
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.