dradis-nessus 4.16.0 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/dradis/plugins/nessus/field_processor.rb +1 -3
- data/lib/dradis/plugins/nessus/gem_version.rb +1 -1
- data/lib/nessus/report_item.rb +13 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1c159a4127118116cdd844aad7262f3a6441ce745b8410ba59485ffef0c1707
|
4
|
+
data.tar.gz: 4b8605c6b2bc8fd7ef8c5bb6fdca2fddb091de6d8e0112dfa5551184e8e82aac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb92690f5447df06670d5bad373dad4b52d20aaa31e53dfe2b521dcbc8f9809ea6fb5597dc0846f00d92047ef8bd86c21c4c4aed832bb150c8ed4aa95062a96
|
7
|
+
data.tar.gz: 136d39fd3e9369fbb717813b08ed854aeec8c8228c4b6632fba8e1f3c1ed538a6cef332ef00d01da06a943537c0bc08f16fa9a04170b7bf7feba786901bcc1b2
|
data/CHANGELOG.md
CHANGED
@@ -16,9 +16,7 @@ module Dradis
|
|
16
16
|
_, name = field.split('.')
|
17
17
|
|
18
18
|
if name.end_with?('entries')
|
19
|
-
#
|
20
|
-
# report_item.cve_entries
|
21
|
-
# report_item.xref_entries
|
19
|
+
# bid_entries, cve_entries, cwe_entries, see_also_entries, xref_entries,
|
22
20
|
entries = @nessus_object.try(name)
|
23
21
|
if entries.any?
|
24
22
|
entries.to_a.join("\n")
|
data/lib/nessus/report_item.rb
CHANGED
@@ -19,16 +19,16 @@ module Nessus
|
|
19
19
|
def supported_tags
|
20
20
|
[
|
21
21
|
# attributes
|
22
|
-
:plugin_family, :plugin_id, :plugin_name, :port, :protocol, :svc_name, :severity,
|
22
|
+
:plugin_family, :plugin_id, :plugin_name, :port, :protocol, :svc_name, :severity,
|
23
23
|
# simple tags
|
24
|
-
:age_of_vuln, :cvss3_base_score, :cvss3_temporal_score, :cvss3_temporal_vector,
|
25
|
-
:cvss3_vector, :cvss_base_score, :cvss3_impact_score, :cvss_temporal_score,
|
26
|
-
:cvss_temporal_vector, :cvss_vector, :description, :exploit_available,
|
27
|
-
:exploit_code_maturity, :exploit_framework_canvas, :exploit_framework_core,
|
28
|
-
:exploitability_ease, :exploit_framework_metasploit,:metasploit_name,
|
29
|
-
:patch_publication_date, :plugin_modification_date, :plugin_output,
|
30
|
-
:plugin_publication_date, :plugin_type, :plugin_version, :product_coverage,
|
31
|
-
:risk_factor, :solution, :synopsis, :threat_intensity_last_28, :threat_recency,
|
24
|
+
:age_of_vuln, :cvss3_base_score, :cvss3_temporal_score, :cvss3_temporal_vector,
|
25
|
+
:cvss3_vector, :cvss_base_score, :cvss3_impact_score, :cvss_temporal_score,
|
26
|
+
:cvss_temporal_vector, :cvss_vector, :description, :exploit_available,
|
27
|
+
:exploit_code_maturity, :exploit_framework_canvas, :exploit_framework_core,
|
28
|
+
:exploitability_ease, :exploit_framework_metasploit,:metasploit_name,
|
29
|
+
:patch_publication_date, :plugin_modification_date, :plugin_output,
|
30
|
+
:plugin_publication_date, :plugin_type, :plugin_version, :product_coverage,
|
31
|
+
:risk_factor, :solution, :synopsis, :threat_intensity_last_28, :threat_recency,
|
32
32
|
:threat_sources_last_28, :vpr_score, :vuln_publication_date,
|
33
33
|
# multiple tags
|
34
34
|
:bid_entries, :cve_entries, :cwe_entries, :see_also_entries, :xref_entries,
|
@@ -53,7 +53,7 @@ module Nessus
|
|
53
53
|
# attribute, simple descendent or collection that it maps to in the XML
|
54
54
|
# tree.
|
55
55
|
def method_missing(method, *args)
|
56
|
-
|
56
|
+
|
57
57
|
# We could remove this check and return nil for any non-recognized tag.
|
58
58
|
# The problem would be that it would make tricky to debug problems with
|
59
59
|
# typos. For instance: <>.potr would return nil instead of raising an
|
@@ -102,8 +102,8 @@ module Nessus
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
-
# older versions of Nessus use <vpr_score> while newer versions of Nessus
|
106
|
-
# use <vulnerability_priority_rating>. This allows either tag to be
|
105
|
+
# older versions of Nessus use <vpr_score> while newer versions of Nessus
|
106
|
+
# use <vulnerability_priority_rating>. This allows either tag to be
|
107
107
|
# pulled in to the vpr_score mapping
|
108
108
|
if method_name == 'vpr_score'
|
109
109
|
return @xml.at_xpath('./vulnerability_priority_rating | ./vpr_score')&.text
|
@@ -119,7 +119,7 @@ module Nessus
|
|
119
119
|
}
|
120
120
|
method_name = translations_table.fetch(method, nil)
|
121
121
|
if method_name
|
122
|
-
@xml.xpath("./#{method_name}").collect(&:text)
|
122
|
+
@xml.xpath("./#{method_name}").collect(&:text).reject(&:empty?)
|
123
123
|
else
|
124
124
|
# nothing found, the tag is valid but not present in this ReportItem
|
125
125
|
return nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-nessus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|