Rapid7 Vulnerability & Exploit Database

Imperva SecureSphere PWS Command Injection

Back to Search

Imperva SecureSphere PWS Command Injection

Disclosed
10/08/2018
Created
03/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(s)

  • rsp3ar <lukunming<at>gmail.com

Platform

Linux

Architectures

x86, x64

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

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

;