-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZipSlip not fixed #55
Comments
Thanks for pointing it out. I will test and include a fix for this and make a release in the next couple of days |
Fixed in v2.1.3 released today |
It cause issue on Android, completePath = /data/user/0/com.damon.englishbook/cache/temp/unzip/1 File(completePath).canonicalPath = /data/data/com.damon.englishbook/cache/temp/unzip/1 it then throw exception : "illegal file name that break...." |
@DamonChen117 Did you try to use the latest version v2.1.4? There was another fix done for this in 2.1.4 |
@srikanth-lingala Just tried 2.1.4, it works perfect, thank you. |
According to tests and manual debugging, the library is still vulnerable against ZipSlip.
The fix seems to be a change in
AbstractExtractFileTask#extractFile(...)
, namely:should be replaced with
Test case (JUnit5 + AspectJ) for verification:
The text was updated successfully, but these errors were encountered: