MISP / MISP-STIX-Converter

A utility repo to assist with converting between MISP and STIX formats
GNU Lesser General Public License v3.0
64 stars 31 forks source link

Bug preventing File and Email Message attributes being built #41

Open chmason13 opened 3 years ago

chmason13 commented 3 years ago

The conditional in the buildAttribute function of buildMISPAttribute.py checking to see if the current object being processed is a URI, Link URI, or Link object leads to the subsequent conditionals never being processed, as it will always return true.

The bug is on line 560: elif type_ == uri_object.URI or type_ == link_object.URI or link_object.Link:

and should be changed to: elif type_ == uri_object.URI or type_ == link_object.URI or type_ == link_object.Link: