Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

WordPress cache_lastpostdate Arbitrary Code Execution

Disclosed
Aug 9, 2005
Created
May 30, 2018

Description

This module exploits an arbitrary PHP code execution flaw in the WordPress
blogging software. This vulnerability is only present when the PHP 'register_globals'
option is enabled (common for hosting providers). All versions of WordPress prior to
1.5.1.3 are affected.

Platform

PHP

Architectures

php

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/unix/webapp/wp_lastpost_exec
msf exploit(wp_lastpost_exec) > show targets
...targets...
msf exploit(wp_lastpost_exec) > set TARGET < target-id >
msf exploit(wp_lastpost_exec) > show options
...show and set options...
msf exploit(wp_lastpost_exec) > 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.