Rapid7 Vulnerability & Exploit Database

Wordpress LiteSpeed Cache plugin cookie theft

Back to Search

Wordpress LiteSpeed Cache plugin cookie theft

Disclosed
09/04/2024
Created
09/17/2024

Description

This module exploits an unauthenticated account takeover vulnerability in LiteSpeed Cache, a Wordpress plugin that currently has around 6 million active installations. In LiteSpeed Cache versions prior to 6.5.0.1, when the Debug Logging feature is enabled, the plugin will log admin cookies to the /wp-content/debug.log endpoint which is accessible without authentication. The Debug Logging feature in the plugin is not enabled by default. The admin cookies found in the debug.log can be used to upload and execute a malicious plugin containing a payload.

Author(s)

  • Rafie Muhammad
  • jheysel-r7

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_litespeed_cookie_theft
msf exploit(wp_litespeed_cookie_theft) > show targets
    ...targets...
msf exploit(wp_litespeed_cookie_theft) > set TARGET < target-id >
msf exploit(wp_litespeed_cookie_theft) > show options
    ...show and set options...
msf exploit(wp_litespeed_cookie_theft) > 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

;