java.lang.IllegalArgumentException in net.lingala.zip4j.model.enums.AesVersion.getFromVersionNumber::AesVersion.java:42
zip4j 2.9.0
#370
Labels
This vulnerability is of java.lang.IllegalArgumentException, and can be triggered in latest version zip4j (2.9.0).
It is caused by passing an illegal or inappropriate argument into a method. and can be used for attackers to launch DoS (Denial of Service) attack for any java program that uses this library (since the user of zip4j doesn't know they need to catch this kind of exception) ( CWE-248: Uncaught exception).
Likely, the root cause of this crash is in
net.lingala.zip4j.model.enums.AesVersion.getFromVersionNumber::AesVersion.java:42
.This exception function is indirectly being called by other functions and this exception is not documented under these functions. Users are not aware of it when the documentation is only done in the exception function alone.
zip4j/src/main/java/net/lingala/zip4j/model/enums/AesVersion.java
Line 42 in ce1cff6
See more detail from the following crash stack.
Crash stack:
The crash thread's stack is as follows:
Steps to reproduce:
(poc file can be downloaded from https://drive.google.com/file/d/1zmf8t4ymGTDkR4TMlnmagAMEYr7aI_a4/view?usp=sharing)
Any further discussion for this vulnerability including fix is welcomed!
The text was updated successfully, but these errors were encountered: