From 6efe94f4dc93ab23545590442a4c44bc50253586 Mon Sep 17 00:00:00 2001 From: Jeff Odegard <42775175+JeffOdegard@users.noreply.github.com> Date: Tue, 15 Jan 2019 16:53:54 -0700 Subject: [PATCH] parse_nessus.php null parameter fix Line 1214 of parse_nessus.php had a bug when parsing by-name Nessus scan data. Fixed with isset() check. --- exec/parse_nessus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/parse_nessus.php b/exec/parse_nessus.php index cf3fd0e..ee6e56d 100644 --- a/exec/parse_nessus.php +++ b/exec/parse_nessus.php @@ -1210,7 +1210,7 @@ class nessus_parser extends scan_xml_parser } $finding = $this->db->get_Finding($this->tgt, $this->plugin->db_plugin); - if (is_array($finding) && count($finding)) { + if (is_array($finding) && count($finding) && isset($finding[0])) { $finding = current($finding[0]); }