>
>
> TITLE:
> PHP "wordwrap()" Buffer Overflow Vulnerability
>
> SECUNIA ADVISORY ID:
> SA19803
>
> VERIFY ADVISORY:
> http://secunia.com/advisories/19803/
>
> CRITICAL:
> Less critical
>
> IMPACT:
> System access
>
> WHERE:
> From remote
>
> SOFTWARE:
> PHP 5.1.x
> http://secunia.com/product/6796/
> PHP 5.0.x
> http://secunia.com/product/3919/
> PHP 4.4.x
> http://secunia.com/product/5768/
> PHP 4.3.x
> http://secunia.com/product/922/
>
> DESCRIPTION:
> Leon Juranic has discovered a vulnerability in PHP, which potentially
> can be exploited by malicious people to compromise a vulnerable
> system.
>
> The vulnerability is caused due to a boundary error in the PHP
> "wordwrap()" function. This can be exploited to cause a heap-based
> buffer overflow via overly long strings passed to the function.
>
> The vulnerability has been confirmed in version 5.1.2 and also
> reported in version 4.4.2. Other versions may also be affected.
>
> SOLUTION:
> Ensure that PHP scripts do not call the "wordwrap()" PHP function
> with input originating from untrusted sources.
>
> PROVIDED AND/OR DISCOVERED BY:
> Leon Juranic
>
> ORIGINAL ADVISORY:
> http://www.infigo.hr/hr/in_focus/advisories/INFIGO-2006-04-02
>