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

module

ZPanel zsudo Local Privilege Escalation Exploit

Disclosed
Jun 7, 2013
Created
May 30, 2018

Description

This module abuses the zsudo binary, installed with zpanel, to escalate
privileges. In order to work, a session with access to zsudo on the sudoers
configuration is needed. This module is useful for post exploitation of ZPanel
vulnerabilities, where typically web server privileges are acquired, and this
user is allowed to execute zsudo on the sudoers file.

Authors

Platform

Linux,Unix

Architectures

cmd, x86

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