Rapid7 Vulnerability & Exploit Database

WordPress Hash Form Plugin RCE

Back to Search

WordPress Hash Form Plugin RCE

Disclosed
05/23/2024
Created
06/05/2024

Description

The Hash Form – Drag & Drop Form Builder plugin for WordPress suffers from a critical vulnerability due to missing file type validation in the file_upload_action function. This vulnerability exists in all versions up to and including 1.1.0. Unauthenticated attackers can exploit this flaw to upload arbitrary files, including PHP scripts, to the server, potentially allowing for remote code execution on the affected WordPress site. This module targets multiple platforms by adapting payload delivery and execution based on the server environment.

Author(s)

  • Francesco Carlucci
  • 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_hash_form_rce
msf exploit(wp_hash_form_rce) > show targets
    ...targets...
msf exploit(wp_hash_form_rce) > set TARGET < target-id >
msf exploit(wp_hash_form_rce) > show options
    ...show and set options...
msf exploit(wp_hash_form_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

;