From 35edb1046b07ada5b8c4543e929581cabdb859b0 Mon Sep 17 00:00:00 2001 From: Leonardo de Oliveira Maia <101437950+LeoOMaia@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:37:50 -0300 Subject: [PATCH] fix parser --- dojo/tools/nmap/parser.py | 1 - dojo/tools/nuclei/parser.py | 1 - dojo/tools/openvas/xml_parser.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dojo/tools/nmap/parser.py b/dojo/tools/nmap/parser.py index afbba36a7b..de61e1697c 100644 --- a/dojo/tools/nmap/parser.py +++ b/dojo/tools/nmap/parser.py @@ -129,7 +129,6 @@ def get_findings(self, file, test): mitigation="N/A", impact="No impact provided", vuln_id_from_tool=script_id, - test=test, ) find.unsaved_endpoints = [] dupes[dupe_key] = find diff --git a/dojo/tools/nuclei/parser.py b/dojo/tools/nuclei/parser.py index 825c18e2ed..f84c7065f3 100644 --- a/dojo/tools/nuclei/parser.py +++ b/dojo/tools/nuclei/parser.py @@ -68,7 +68,6 @@ def get_findings(self, filename, test): severity=severity, nb_occurences=1, vuln_id_from_tool=template_id, - test=test, ) if finding.severity != "Info": finding.problem = problems_help.find_or_create_problem(finding) diff --git a/dojo/tools/openvas/xml_parser.py b/dojo/tools/openvas/xml_parser.py index f7e5325044..f8cbceb9a3 100644 --- a/dojo/tools/openvas/xml_parser.py +++ b/dojo/tools/openvas/xml_parser.py @@ -41,11 +41,11 @@ def get_findings(self, filename, test): finding = Finding( title=str(title), + test=test, description="\n".join(description), severity=severity, dynamic_finding=True, static_finding=False, - test=test, vuln_id_from_tool=script_id, ) if finding.severity != "Info":