How to detect the user malicious upload zip*, prevent unzip detonate

Source: Internet
Author: User
Tags repetition
See this article about zip bombs on hackernews http://news.ycombinator.com/item?id=4 ...
I think, if users upload a zip to the server, the server silly to understand the pressure, it would not be a crash

After the user uploads the zip file, how should be detected before the decompression to prevent a repetition of the tragedy?
It's best to use Python, PHP as an example, and I think the Web language should have this kind of risk.

Reply content:

See this article about zip bombs on hackernews http://news.ycombinator.com/item?id=4 ...
I think, if users upload a zip to the server, the server silly to understand the pressure, it would not be a crash

After the user uploads the zip file, how should be detected before the decompression to prevent a repetition of the tragedy?
It's best to use Python, PHP as an example, and I think the Web language should have this kind of risk.

The WEB server generally does not automatically unzip the zip bar, and the mail server Virus Inspection Unit will generally automatically extract all kinds of compressed files, such as Amavisd-new, which is 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.