Rapid7

module

PivotX Remote Code Execution

Disclosed
Jul 10, 2025
Created
Aug 13, 2025

Description

This module gains remote code execution in PivotX management system. The PivotX allows admin user to directly edit files on the webserver, including PHP files. The module exploits this by writing a malicious payload into `index.php` file, gaining remote code execution.

Authors

HayToN
msutovsky-r7

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/linux/http/pivotx_index_php_overwrite
msf exploit(pivotx_index_php_overwrite) > show targets
...targets...
msf exploit(pivotx_index_php_overwrite) > set TARGET < target-id >
msf exploit(pivotx_index_php_overwrite) > show options
...show and set options...
msf exploit(pivotx_index_php_overwrite) > 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.