Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

@(#)Mordred Labs advisory - Integer overflow in PHP str_repeat() function

From: <sir.mordred(at)hushmail.com>
Date: Wed Apr 02 2003 - 06:47:18 EST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

//@(#) Mordred Security Labs advisory

Release date: April 1, 2003
Name: Integer overflow in PHP str_repeat() function Versions affected: all versions
Risk: average
Author: Sir Mordred (mordred@s-mail.com)

I. Description:

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Please visit http://www.php.net for more information about PHP.

II. Details:

The function str_repeat(string input, int multiplier) returns input repeated multiplier times.

Do you need help?X

The implementation of this function suffers from a simple integer overflow caused by
a very long second argument and could allow a local/remote attacker in the worst case to gain control over the web server.

The following short script will illustrate this vulnerability:

$ cat t.php
<?php

    str_repeat(str_repeat("A", 0x2000), 0x40000000);
?>

III. Platforms tested

Linux 2.4 with Apache 1.3.27 / PHP 4.3.1

IV. Vendor response

Vendor has been contacted.

Do you need more help?X

-----BEGIN PGP SIGNATURE-----
Version: Hush 2.2 (Java)
Note: This signature can be verified at https://www.hushtools.com/verify

wmAEARECACAFAj6KztoZHHNpci5tb3JkcmVkQGh1c2htYWlsLmNvbQAKCRAOkXvN4BZr fJAUAJ9InIO8rApHuK8K4DO52l5EOQqXOQCfUyNJGQnx1fZGhjvzAl34Xa9kXEM= =Iy5V
-----END PGP SIGNATURE----- Concerned about your privacy? Follow this link to get FREE encrypted email: https://www.hushmail.com/?l=2

Big $$$ to be made with the HushMail Affiliate Program: https://www.hushmail.com/about.php?subloc=affiliate&l=427 Received on Thu Apr 3 12:39:26 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:38 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library