How to detect malicious zip bombs uploaded by users and prevent unzip from being detonated

Source: Internet
Author: User
I saw this article on Hackernews about the zip bomb news. ycombinator. comitem? Id4... I just thought, if a user uploads a zip file to the server and the server is dumb to understand the pressure, isn't it a crash? How should I check it before the user uploads the zip file... what is the http://news.ycombinator.com/item for this zip bomb article on Hackernews? Id = 4...
I just thought, if a user uploads a zip file to the server and the server is dumb to understand the pressure, wouldn't it crash?

After a user uploads a zip file, how should he detect it before decompression to prevent the recurrence of the tragedy?
It is best to use python and php as examples. I think the web language should have this risk.

Reply content:

What is the http://news.ycombinator.com/item for this zip bomb article on Hackernews? Id = 4...
I just thought, if a user uploads a zip file to the server and the server is dumb to understand the pressure, wouldn't it crash?

After a user uploads a zip file, how should he detect it before decompression to prevent the recurrence of the tragedy?
It is best to use python and php as examples. I think the web language should have this risk.

Generally, the WEB server does not automatically decompress the zip file, while the virus check component of the mail server automatically decompress various types of compressed files, such as amavisd-new, which is exactly the case in that 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.