Vulnerability of PHP built-in function getimagesize ()

Source: Internet
Author: User

Today the program wants to compress some pictures, want to get the width of the picture, on the Internet to check what functions can be used, and then see getimagesize () this function. But when a colleague sees this function, remind me to say this function, the operation colleague is forbidden to use. The heart is very strange, on the internet to check a bit. This function was found to be a loophole.

Vulnerability Information
PHP is a scripting language for embedded HTML documents that are executed on the server side.
PHP getimagesiz function is used to determine the size of the image, receive a URI parameter, getimagesize () does not implement any function to verify that the remote server downloaded files will be more than expected image or size, allowing PHP to download large files, resulting in a denial of service attack.

Vulnerability of PHP built-in function getimagesize ()

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.