Col-E / Col-E/LL-Java-Zip

Warn about / reject local file headers which have a data descriptor but don't use deflate compression

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
enhancement idea
Dominant language
Java
Stars
52
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Parsing just a local file header which uses a data descriptor is technically not reliable when it uses stored (uncompressed) data. A malicious actor could theoretically insert a local file header or data descriptor header at an arbitrary point to confuse parsing. Deflate compressed streams are self terminating, so they don't suffer from the same problem. If the size of an entry is only read from the central directory file header, this isn't a problem, but JVM zip parsing rejects such local file headers anyway.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.