DefectDojo / django-DefectDojo

DevSecOps, ASPM, Vulnerability Management. All on one platform.
https://defectdojo.com
BSD 3-Clause "New" or "Revised" License
3.71k stars 1.55k forks source link

Char 0x0 out of allowed range Error Parsing Acunetix XML File #2247

Closed zfirered closed 4 years ago

zfirered commented 4 years ago

Expected behavior I want to import another XML but ther is an another Error, i describe bellow

Deployment method (select with an X)

Environment information

Screenshots image

image

Additional context Line 9476 is:

emails was set to 1 ˤˢ%2527%2522

Error message found:
A Database Error Occurred
]]>
zfirered commented 4 years ago

After some investigation this is was the problem

1 ˤˢ%2527%2522

image

because XML parser wont input that character

steeve85 commented 4 years ago

According to the XML specification, NULL byte is not valid character. I believe Acunetix should remove invalid XML characters before creating the file. In the meantime, you can manually fix your XML file before importing it into DefectDojo.

zfirered commented 4 years ago

According to the XML specification, NULL byte is not valid character. I believe Acunetix should remove invalid XML characters before creating the file. In the meantime, you can manually fix your XML file before importing it into DefectDojo.

Already done by that, so i have manualy edit the file before upload it