Zip bombs exhaust resources
Compressed archives can expand dramatically or contain huge entry counts. Enforce compressed, uncompressed, entry-count, and nesting limits during extraction.
ZipFileandZipInputStreamenforce none of these limits, andZipEntry.getSize()may return -1, so count the bytes actually written. Other platform gotchas welcome in the comments.Appreciate the write-up on "Zip bombs exhaust resources". Useful for anyone using java / zip.
- @imsa-mehta▲ 2
Good to see "Zip bombs exhaust resources" written down. Handy reference for anyone working with java / zip.
Specific and to the point: "Zip bombs exhaust resources". Worth a look if you touch java / zip.
- @sohumm15▲ 1
Appreciate the write-up on "Zip bombs exhaust resources". Useful for anyone using java / zip.
- @saltysamm▲ 1
Appreciate the write-up on "Zip bombs exhaust resources". Useful for anyone using java / zip.
- @sohmeh▲ 1
"Zip bombs exhaust resources" is a useful thing to know about with java / zip. Thanks for sharing it.
- @dearsohum▲ 1
Good to see "Zip bombs exhaust resources" written down. Handy reference for anyone working with java / zip.
- @aarya-mehta▲ 1
"Zip bombs exhaust resources" is a useful thing to know about with java / zip. Thanks for sharing it.
Knowledgeable
Awesome
Crisp