Closed Danko90 closed 7 years ago
File "/home/misp/MISP-Taxii-Server/fsisac.xml", line 611
lxml.etree.XMLSyntaxError: AttValue: ' expected, line 611, column 87
your XML is invalid.
This is not an issue with the converter, but I'll to help.
Can you post line 611 from fsisac.xml?
Hi @FloatingGhost, thanks for helping. I can't share all XML because it contains sensitive data, I can say you that is a very large file (800MB). I tried to download it by using another taxiiclient and it is valid (I used xmllint). The strange thing is that MISP-TAXII-Server receives block by block and when it raises the exception that block is incomplete. This is the 611 line
<WinExecutableFileObj:Function_Name condition="Equa
As you can see it is incomplete, and I can't understand why!
hum, weird
I don't have access to fsisac, so I can't pull the file, and misp-taxii-server just uses OpenTAXII
I can't say I know why it'd cut off half way through >__<
@FloatingGhost I tried to upload the whole file by using stix-to-misp.py and I got this exception:
mixbox.parser.UnsupportedRootElementError: Document root element ({http://taxii.mitre.org/messages/taxii_xml_binding-1.1}Poll_Response) not one of (['{http://stix.mitre.org/stix-1}STIX_Package'])
I guess it's related to mixbox, but do you know what kind of error is this?
That implies that... well, the root element of the document isn't \<STIXPackage>
Hi @FloatingGhost, I'm still having that problem, I tried to load the XML manually and it works. The problem seems to be located in the connection between the TAXII client and the repository. In particular the TAXII client can't receive all block data from the repository, in the same XML point, which is strange. Do you have any idea?
I can't test, I have no data and absolutely no access to any taxii servers. I can't help.
Closing.
I noticed a warning saying:
Data truncated for column 'content' at row 1
So on mysql I found out that variable has a maximum length of 65535, that's the reason of that error.
select COLUMN_NAME, CHARACTER_MAXIMUM_LENGTH
from information_schema.columns
where table_schema = DATABASE() AND
table_name = 'content_blocks' AND
COLUMN_NAME = 'content';
+-------------+--------------------------+
| COLUMN_NAME | CHARACTER_MAXIMUM_LENGTH |
+-------------+--------------------------+
| content | 65535 |
+-------------+--------------------------+
1 row in set (0.00 sec)
I modified that variable by setting it as LONGTEXT. Now it works fine. Can you change it? Thanks for your help
No I cannot change that. That is a feature of OpenTAXII.
Go raise it there.
This is the output
root@misp-ubuntu:/home/misp/MISP-Taxii-Server/config# mysql --version
mysql Ver 14.14 Distrib 5.5.54, for debian-linux-gnu (x86_64) using readline 6.3
root@misp-ubuntu:/home/misp/MISP-Taxii-Server/config#
:P you're using mysql <15
Update your mysql to at least ver15.
Damn! I'm using the Ubuntu MISP iso.. I didn't install anything since it was already prepared! I'll let you know, thanks a lot!
Hi,
I ran into an error while trying to pull data from a TAXII Server in STIX Format. This is the traceback
I checked the XML and it is correct (unfortunately I can't share it) This is the configuration file
I tried to change the xml_parser_supports_huge_tree option in yes, but nothing changed. The XML block size that causes this error is 65535 bytes. As you can notice on the stacktrace I modified a bit the source code by writing each XML Block in a fixed file in order to see where is the error.
Can anyone help me?
Thanks in advance