Rapid7 Vulnerability & Exploit Database

Netsweeper WebAdmin unixlogin.php Python Code Injection

Back to Search

Netsweeper WebAdmin unixlogin.php Python Code Injection

Disclosed
04/28/2020
Created
05/12/2020

Description

This module exploits a Python code injection in the Netsweeper WebAdmin component's unixlogin.php script, for versions 6.4.4 and prior, to execute code as the root user. Authentication is bypassed by sending a random whitelisted Referer header in each request. Tested on the CentOS Linux-based Netsweeper 6.4.3 and 6.4.4 ISOs. Though the advisory lists 6.4.3 and prior as vulnerable, 6.4.4 has been confirmed exploitable.

Author(s)

  • wvu <wvu@metasploit.com>

Platform

Python

Architectures

python

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

;