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

ftguess: Handle error when [Content_Types].xml is not present. #770

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

enkelli
Copy link
Contributor

@enkelli enkelli commented Jun 15, 2022

I came across some files where this XML was named [Content_Types].xmla. It's strange suffix, MS Word does not open it and ftguess crashes with KeyError.

Have you ever seen such files? The other option would be to support analysis even for xmla content types. It's up to you.
I'm mostly interested in non-crashing olevba so this is a quickfix. If you think we should handle such files differently, let me know or feel free to implement it yourself and close this PR :)

I came across some files where this XML was named [Content_Types].xmla. It's
strange suffix, MS Word does not open it and ftguess crashes with KeyError.
@decalage2 decalage2 self-requested a review June 16, 2022 10:14
@decalage2 decalage2 self-assigned this Jun 16, 2022
@decalage2 decalage2 added this to the oletools 0.60 milestone Jun 16, 2022
@decalage2
Copy link
Owner

I have never seen such files. If MS Word refuses to open them, it means they are malformed. Is it possible to share those files with me so that I have a look and reproduce the issue? (either here with a password-protected zip, or a link to online sandboxes if samples are public)

@enkelli
Copy link
Contributor Author

enkelli commented Jun 17, 2022

Mail sent

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

Successfully merging this pull request may close these issues.

None yet

2 participants