Open Maijin opened 4 years ago
I also see crashes with other Office formats:
# python3 /opt/oletools/oletools/olevba.py -a -j docx-encrypted.docx
[
{
"script_name": "olevba",
"version": "0.56dev5",
"url": "http://decalage.info/python/oletools",
"type": "MetaInformation"
},
{
"container": null,
"file": "docx-encrypted.docx",
"json_conversion_successful": true,
"analysis": null,
"code_deobfuscated": null,
"do_deobfuscate": false,
"type": "OLE",
"macros": []
},
ERROR Decrypt failed, run with debug output to get details
ERROR Problems with encryption in main: Given passwords could not decrypt office file docx-encrypted.docx, use option -p to specify the password
Traceback (most recent call last):
File "/opt/oletools/oletools/olevba.py", line 4366, in main
curr_return_code = process_file(filename, data, container, options)
File "/opt/oletools/oletools/olevba.py", line 4260, in process_file
raise crypto.WrongEncryptionPassword(filename)
oletools.common.errors.WrongEncryptionPassword: Given passwords could not decrypt office file docx-encrypted.docx, use option -p to specify the password
# echo $?
9
While the return code is correct and useful, the JSON is missing the last closing bracket and leads to errors while parsing.
Affected tool: olevba
Describe the bug Password protected XLM crashes olevba
File/Malware sample to reproduce the bug Please attach the file in a password protected zip archive, or provide a link where it can be downloaded (e.g. Hybrid Analysis, preferably not VirusTotal which requires paid access). If not possible, please provide a hash.
3fbc4f03bd9e52de5042b656f87c11d44128246e657eb65cb2944c490df86948.zip
Password is "CaseExport"
How To Reproduce the bug olevba hash
Expected behavior
Console output / Screenshots