PHP "htmlspecialchars ()" Buffer Overflow Vulnerability

Source: Internet
Author: User

Release date:
Updated on:

Affected Systems:
PHP
Description:
--------------------------------------------------------------------------------
Bugtraq id: 51860

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.

PHP has a buffer overflow vulnerability in the implementation of the htmlspecialchars () function with $ double = false, because the starting position can only be 40 bytes, attackers can exploit this vulnerability to execute arbitrary code in the PHP process, cause the Web Server to crash, and deny service to legitimate users.

<* Source: cataphract

Link: https://bugs.php.net/bug.php? Id = 60965
*>

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!

<? Php
Echo
Htmlspecialchars ('""""""""""""""""""""""""""""""""""""" "& # renew; ',
ENT_QUOTES, 'utf-8', false), "\ n ";

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

PHP
---
Currently, the vendor does not provide patches or upgrade programs. We recommend that users who use the software follow the vendor's homepage to obtain the latest version:

Http://www.php.net

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.