From 5444253ed61b99af56a28793ccadf8fe0ffc2f5a Mon Sep 17 00:00:00 2001
From: Jeremy Long
Date: Mon, 27 Jul 2015 06:56:23 -0400
Subject: [PATCH] added more CVSS details per issue #154
---
.../src/main/resources/schema/dependency-check.1.3.xsd | 8 +++++++-
.../src/main/resources/templates/HtmlReport.vsl | 4 ++--
.../src/main/resources/templates/XmlReport.vsl | 9 ++++++++-
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/dependency-check-core/src/main/resources/schema/dependency-check.1.3.xsd b/dependency-check-core/src/main/resources/schema/dependency-check.1.3.xsd
index 232d1c424..023eb6f15 100644
--- a/dependency-check-core/src/main/resources/schema/dependency-check.1.3.xsd
+++ b/dependency-check-core/src/main/resources/schema/dependency-check.1.3.xsd
@@ -158,7 +158,13 @@
-
+
+
+
+
+
+
+
diff --git a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl
index 979d16327..ac1bf63e9 100644
--- a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl
+++ b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl
@@ -16,7 +16,7 @@ limitations under the License.
Copyright (c) 2012 Jeremy Long. All Rights Reserved.
@author Jeremy Long
-@version 1.1
+@version 1.2
*#
@@ -757,7 +757,7 @@ arising out of or in connection with the use of this tool, the analysis performe
#else
Medium
#end
-
CVSS Score: $vuln.cvssScore
+
CVSS Score: $vuln.cvssScore (AV:$enc.html($vuln.cvssAccessVector.substring(0,1))/AC:$enc.html($vuln.cvssAccessComplexity.substring(0,1))/Au:$enc.html($vuln.cvssAuthentication.substring(0,1))/C:$enc.html($vuln.cvssConfidentialityImpact.substring(0,1))/I:$enc.html($vuln.cvssIntegrityImpact.substring(0,1))/A:$enc.html($vuln.cvssAvailabilityImpact.substring(0,1)))
#if ($vuln.cwe)
CWE: $vuln.cwe
#end
diff --git a/dependency-check-core/src/main/resources/templates/XmlReport.vsl b/dependency-check-core/src/main/resources/templates/XmlReport.vsl
index 78dc468d6..8e71e1dc7 100644
--- a/dependency-check-core/src/main/resources/templates/XmlReport.vsl
+++ b/dependency-check-core/src/main/resources/templates/XmlReport.vsl
@@ -16,7 +16,8 @@ limitations under the License.
Copyright (c) 2012 Jeremy Long. All Rights Reserved.
@author Jeremy Long
-@version 1.1
+@version 1.2
+
*#
@@ -122,6 +123,12 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved.
$enc.xml($vuln.name)
$vuln.cvssScore
+ $enc.xml($vuln.cvssAccessVector)
+ $enc.xml($vuln.cvssAccessComplexity)
+ $enc.xml($vuln.cvssAuthentication)
+ $enc.xml($vuln.cvssConfidentialityImpact)
+ $enc.xml($vuln.cvssIntegrityImpact)
+ $enc.xml($vuln.cvssAvailabilityImpact)
#if ($vuln.cvssScore<4.0)
Low
#elseif ($vuln.cvssScore>=7.0)