Closed DanilaKazakevich closed 3 years ago
@DanilaKazakevich taking a look at it. There is some weird stuffs in this part.
At least I can reproduce it:
======================================================================
ERROR: test_parse_issue4360 (dojo.unittests.tools.test_zap_parser.TestZapParser)
Report from GitHub issue 4360
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/damien/dd/dojo/unittests/tools/test_zap_parser.py", line 58, in test_parse_issue4360
findings = parser.get_findings(testfile, Test())
File "/home/damien/dd/dojo/tools/zap/parser.py", line 40, in get_findings
return self.get_items(tree, test)
File "/home/damien/dd/dojo/tools/zap/parser.py", line 67, in get_items
site = Site(node)
File "/home/damien/dd/dojo/tools/zap/parser.py", line 144, in __init__
self.items.append(Item(alert))
File "/home/damien/dd/dojo/tools/zap/parser.py", line 221, in __init__
n2 = item_node.findall('instances/instance/param')[i]
IndexError: list index out of range
Working on a pull request to fix that.
fixed in dev / 1.15.0
Bug description It happens only when I use
ictu/zap2docker-weekly
image for scanning DVWA (https://github.com/ICTU/zap-baseline). It helps me with authenticated packaged scan.docker run --rm -v $(pwd):/zap/wrk/:rw -t ictu/zap2docker-weekly zap-full-scan.py -I -j -t http://172.17.0.2/ -x dvwa_baseline_dojo.xml --hook=/zap/auth_hook.py -z "auth.loginurl=http://172.17.0.2/login.php auth.username='admin' auth.password='password' auth.auto=1"
If I use official image - scan importing works properly
docker run --rm -v $(pwd):/zap/wrk/:rw -u zap -p 8080:8080 -p 8090:8080 -i owasp/zap2docker-stable zap.sh -cmd -quickurl http://172.17.0.1/login.php -quickprogress -quickout wrk/zap_report.xml
Deployment method (select with an
X
)ERRORS I tried to import report into Defectdojo and got errors (file attached below):