Skip to content
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

Bug report: zip password feature not working #1243

Closed
Belsaros opened this issue Sep 14, 2021 · 3 comments
Closed

Bug report: zip password feature not working #1243

Belsaros opened this issue Sep 14, 2021 · 3 comments
Labels

Comments

@Belsaros
Copy link

Describe the bug
When I use the zip feature:
https://gchq.github.io/CyberChef/#recipe=Zip('malsample.zip','','malwareisbad','Deflate','MSDOS','Dynamic%20Huffman%20Coding') and save the output to a file, I get an incorrect password when I later try to unzip it:
olevba.exe -z malwareisbad malsample.zip
olevba 0.60 on Python 3.7.7 - http://decalage.info/python/oletools
ERROR Exception opening/reading 'malsample.zip' from zip file 'malsample.zip': Bad password for file 'malsample.zip'

To Reproduce
https://gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z0-9%2B/%3D',true)Zip('malsample.zip','','malwareisbad','Deflate','MSDOS','Dynamic%20Huffman%20Coding')&input=VkdocGN5QnBjeUJ6YjIxbElHOTFkSEIxZEFvPQ

  1. Go to the above link
  2. Click on save output to file
  3. Try to unzip file with password used in step 1 "malwareisbad"
  4. See error

Expected behaviour
File should unzip properly with provided password

Desktop (if relevant, please complete the following information):

  • OS: Windows 10, WSL Ubuntu
  • Browser: Edge Version 93.0.961.44 (Official build) (64-bit)
  • CyberChef version: 9.32.3

Additional context
Add any other context about the problem here.

@Belsaros Belsaros added the bug label Sep 14, 2021
@mt3571
Copy link
Contributor

mt3571 commented Sep 14, 2021

Thanks for giving an example of this! This bug is a duplicate of #671

@mikecat
Copy link
Contributor

mikecat commented Nov 18, 2021

This issue looks like due to a bug in zlib.js. (see the duplicate)

@n1073645
Copy link
Contributor

As this issue is a duplicate, I will close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants