Rapid7 Vulnerability & Exploit Database

WordPress cache_lastpostdate Arbitrary Code Execution

Back to Search

WordPress cache_lastpostdate Arbitrary Code Execution

Disclosed
08/09/2005
Created
05/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.

Author(s)

  • str0ke <str0ke@milw0rm.com>
  • hdm <x@hdm.io>

Platform

PHP

Architectures

php

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/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

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

;