Rapid7 Vulnerability & Exploit Database

RedHat Piranha Virtual Server Package passwd.php3 Arbitrary Command Execution

Back to Search

RedHat Piranha Virtual Server Package passwd.php3 Arbitrary Command Execution

Disclosed
04/04/2000
Created
05/30/2018

Description

This module abuses two flaws - a metacharacter injection vulnerability in the HTTP management server of RedHat 6.2 systems running the Piranha LVS cluster service and GUI (rpm packages: piranha and piranha-gui). The vulnerability allows an authenticated attacker to execute arbitrary commands as the Apache user account (nobody) within the /piranha/secure/passwd.php3 script. The package installs with a default user and password of piranha:q which was exploited in the wild.

Author(s)

  • aushack <patrick@osisecurity.com.au>

Platform

Unix

Architectures

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

;