Rapid7

module

Imperva SecureSphere PWS Command Injection

Disclosed
Oct 8, 2018
Created
Mar 19, 2019

Description

This module exploits a command injection vulnerability in Imperva
SecureSphere 13.x. The vulnerability exists in the PWS service,
where Python CGIs didn't properly sanitize user supplied command
parameters and directly passes them to corresponding CLI utility,
leading to command injection. Agent registration credential is
required to exploit SecureSphere in gateway mode.

This module was successfully tested on Imperva SecureSphere 13.0/13.1/
13.2 in pre-ftl mode and unsealed gateway mode.

Author

rsp3ar lukunming

Platform

Linux

Architectures

x86, x64

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