django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

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

Open stayfr0sty141 opened this issue 6 years ago • 3 comments

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

Deployment method (select with an X)

  • [ ] Kubernetes
  • [x ] Docker
  • [ ] setup.bash / legacy-setup.bash

Environment information

  • Operating System: Ubuntu 18.04

Screenshots image

image

Additional context Line 9476 is:

emails was set to 1 ˤˢ%2527%2522

Error message found:
A Database Error Occurred
]]>

stayfr0sty141 avatar Apr 23 '20 08:04 stayfr0sty141

After some investigation this is was the problem

1 ˤˢ%2527%2522

image

because XML parser wont input that character

stayfr0sty141 avatar Apr 23 '20 11:04 stayfr0sty141

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.

steeve85 avatar Apr 27 '20 04:04 steeve85

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

stayfr0sty141 avatar Apr 27 '20 10:04 stayfr0sty141