Vulnerability & Exploit Database

Back to search

ZPanel zsudo Local Privilege Escalation Exploit

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.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/linux/local/zpanel_zsudo

Authors

  • sinn3r <sinn3r [at] metasploit.com>
  • juan vazquez <juan.vazquez [at] metasploit.com>

Targets

  • Command payload
  • Linux x86

Platforms

  • linux
  • unix

Architectures

  • cmd
  • x86
  • cmd
  • x86

Reliability

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