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 ()