From 6b26199826fdb18312c8d8d54d5afeeba747707b Mon Sep 17 00:00:00 2001 From: Jonathan Abrahamy Date: Wed, 13 Sep 2023 14:53:05 +0200 Subject: [PATCH] Small fix for office parsing --- lib/cuckoo/common/integrations/parse_office.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cuckoo/common/integrations/parse_office.py b/lib/cuckoo/common/integrations/parse_office.py index 3be9fb54901..0cf7c15bb5d 100644 --- a/lib/cuckoo/common/integrations/parse_office.py +++ b/lib/cuckoo/common/integrations/parse_office.py @@ -101,8 +101,11 @@ def _get_xml_meta(self, filepath) -> Dict[str, Dict[str, str]]: metares = {"SummaryInformation": {}, "DocumentSummaryInformation": {}} for elem in core._get_documentElement().childNodes: - n = elem._get_tagName() try: + if isinstance(elem, xml.dom.minidom.Text): + continue + + n = elem._get_tagName() data = core.getElementsByTagName(n) if not data: continue