Remote access rejection vulnerability in strtotime function calls in PHP versions earlier than 5.3.9

Source: Internet
Author: User

Release date: 2012-03-24
Updated on: 2012-03-27

Affected Systems:
PHP 5.x
Unaffected system:
PHP 5.3.9
Description:
--------------------------------------------------------------------------------
Bugtraq id: 52043
Cve id: CVE-2012-0789

PHP is a script language running on a computer. It is mainly used to process dynamic web pages, including command line interfaces or graphical user interface programs.

In versions earlier than PHP 5.3.9, memory leakage exists in the implementation of the time zone function. The php_date_parse_tzfile cache does not properly handle multiple strtotime function calls, resulting in DOS of memory depletion,

<* Source: vendor

Link: https://bugs.php.net/bug.php? Id = 53502
Https://bugzilla.redhat.com/show_bug.cgi? Id = 783609
*>

Test method:
--------------------------------------------------------------------------------

Alert

The following procedures (methods) may be offensive and are intended only for security research and teaching. Users are at your own risk!

& Lt ;? Php
While (true)
{
Strtotime ('Monday 00:00 Europe/Paris '); // Memory leak
}
? & Gt;

Suggestion:
--------------------------------------------------------------------------------
Vendor patch:

PHP
---
The vendor has released a patch to fix this security problem. Please download it from the vendor's homepage:

Http://www.php.net

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.