Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

ZPanel 10.0.0.2 htpasswd Module Username Command Execution

Disclosed
Jun 7, 2013
Created
May 30, 2018

Description

This module exploits a vulnerability found in ZPanel's htpasswd module. When
creating .htaccess using the htpasswd module, the username field can be used to
inject system commands, which is passed on to a system() function for executing
the system's htpasswd command.

Please note: In order to use this module, you must have a valid account to login
to ZPanel. An account part of any of the default groups should suffice, such as:
Administrators, Resellers, or Users (Clients). By default, there's already a
'zadmin' user, but the password is randomly generated.

Authors

shachibista
sinn3r [email protected]

Platform

Unix

Architectures

cmd

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