All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.xmlReport.vsl Maven / Gradle / Ivy

Go to download

dependency-check-core is the engine and reporting tool used to identify and report if there are any known, publicly disclosed vulnerabilities in the scanned project's dependencies. The engine extracts meta-data from the dependencies and uses this to do fuzzy key-word matching against the Common Platfrom Enumeration (CPE), if any CPE identifiers are found the associated Common Vulnerability and Exposure (CVE) entries are added to the generated report.

There is a newer version: 10.0.4
Show newest version
#**
This file is part of Dependency-Check.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Copyright (c) 2018 Jeremy Long. All Rights Reserved.

@author Jeremy Long 
@version 2.0

*#

    
        $version
#foreach($prop in $properties.getMetaData().entrySet())
        
            $enc.xml($prop.key)
            $enc.xml($prop.value)
        
#end
    
    
        $enc.xml($applicationName)
#if ($groupID)
        $enc.xml($groupID)
#end
#if ($artifactID)        
        $enc.xml($artifactID)
#end
#if ($applicationVersion)
        $enc.xml($applicationVersion)
#end
        $scanDateXML
        This report contains data retrieved from the National Vulnerability Database: https://nvd.nist.gov, NPM Public Advisories: https://www.npmjs.com/advisories, and the RetireJS community.
    
    
#foreach($dependency in $dependencies)
        
            $enc.xml($dependency.DisplayFileName)
            $enc.xml($dependency.FilePath)
            #if(!$dependency.isVirtual())$enc.xml($dependency.Md5sum)#end
            #if(!$dependency.isVirtual())$enc.xml($dependency.Sha1sum)#end
            #if(!$dependency.isVirtual())$enc.xml($dependency.Sha256sum)#end
#if ($dependency.description)
            $enc.xml($dependency.description)
#end
#if ($dependency.license)
            $enc.xml($dependency.license)
#end
#if ($dependency.projectReferences.size()>0)
            
#foreach($ref in $dependency.projectReferences)
                $enc.xml($ref)
#end
            
#end
#if ($dependency.getRelatedDependencies().size()>0)
            
#foreach($related in $dependency.getRelatedDependencies())
                
                    $enc.xml($related.FilePath)
                    #if(!$dependency.isVirtual())$enc.xml($dependency.Sha256sum)#end
                    #if(!$related.isVirtual())$enc.xml($related.Sha1sum)#end
                    #if(!$related.isVirtual())$enc.xml($related.Md5sum)#end
#if($related.getSoftwareIdentifiers().size()>0)
                    
#foreach($id in $related.getSoftwareIdentifiers())
                        
                            $enc.xml($id.value)
#if( $id.url )
                            $enc.xml($id.url)
#end
#if( $id.description )
                            $enc.xml($id.description)
#end
#if ($id.notes)
                            $enc.xml($id.notes)
#end
                        
#end
                    
                    #end
                
#end
            
#end
            
#foreach($evidence in $dependency.getEvidence($VENDOR))
                
                    $enc.xml($evidence.getSource())
                    $enc.xml($evidence.getName())
                    $enc.xml($evidence.getValue().trim())
                
#end
#foreach($evidence in $dependency.getEvidence($PRODUCT))
                
                    $enc.xml($evidence.getSource())
                    $enc.xml($evidence.getName())
                    $enc.xml($evidence.getValue().trim())
                
#end
#foreach($evidence in $dependency.getEvidence($VERSION))
                
                    $enc.xml($evidence.getSource())
                    $enc.xml($evidence.getName())
                    $enc.xml($evidence.getValue().trim())
                
#end
            
#if($dependency.getSoftwareIdentifiers().size()>0 || $dependency.getVulnerableSoftwareIdentifiers().size()>0 || $dependency.getSuppressedIdentifiers().size()>0)
            
#foreach($id in $dependency.getSoftwareIdentifiers())
                
                    $enc.xml($id.value)
#if( $id.url )
                    $enc.xml($id.url)
#end
#if( $id.description )
                    $enc.xml($id.description)
#end
#if ($id.notes)
                    $enc.xml($id.notes)
#end
                
#end
#foreach($id in $dependency.getSoftwareIdentifiers())
                
                    $enc.xml($id.value)
#if( $id.url )      $enc.xml($id.url)
#end
#if($id.description)$enc.xml($id.description)
#end
#if ($id.notes)     $enc.xml($id.notes)
#end
                
            #end
#foreach($id in $dependency.getSuppressedIdentifiers())
                
                    $enc.xml($id.value)
#if( $id.url )
                    $enc.xml($id.url)
#end
#if( $id.description )
                    $enc.xml($id.description)
#end
#if ($id.notes)
                    $enc.xml($id.notes)
#end
                
#end
            
#end
#if($dependency.getVulnerabilities().size()>0 || $dependency.getSuppressedVulnerabilities().size()>0)
            
#foreach($vuln in $dependency.getVulnerabilities(true))
                
                    $enc.xml($vuln.name)
#if($vuln.unscoredSeverity)
                    $enc.xml($vuln.unscoredSeverity)
#elseif($vuln.cvssV3 && $vuln.cvssV3.baseSeverity)
                    $enc.xml($vuln.cvssV3.baseSeverity)
#elseif($vuln.cvssV2 && $vuln.cvssV2.severity)
                    $enc.xml($vuln.cvssV2.severity)
#end
#if($vuln.cvssV2)
                    
                        $vuln.cvssV2.score
                        #if($vuln.cvssV2.accessVector)$enc.xml($vuln.cvssV2.accessVector)#end
                        #if($vuln.cvssV2.accessComplexity)$enc.xml($vuln.cvssV2.accessComplexity)#end
                        #if($vuln.cvssV2.authentication)$enc.xml($vuln.cvssV2.authentication)#end
                        #if($vuln.cvssV2.confidentialityImpact)$enc.xml($vuln.cvssV2.confidentialityImpact)#end
                        #if($vuln.cvssV2.integrityImpact)$enc.xml($vuln.cvssV2.integrityImpact)#end
                        #if($vuln.cvssV2.availabilityImpact)$enc.xml($vuln.cvssV2.availabilityImpact)#end
                        #if($vuln.cvssV2.severity)$enc.xml($vuln.cvssV2.severity)#end
                    
#end
#if($vuln.cvssV3)
                    
                        $vuln.cvssV3.baseScore
                        #if($vuln.cvssV3.attackVector)$enc.xml($vuln.cvssV3.attackVector)#end
                        #if($vuln.cvssV3.attackComplexity)$enc.xml($vuln.cvssV3.attackComplexity)#end
                        #if($vuln.cvssV3.privilegesRequired)$enc.xml($vuln.cvssV3.privilegesRequired)#end
                        #if($vuln.cvssV3.userInteraction)$enc.xml($vuln.cvssV3.userInteraction)#end
                        #if($vuln.cvssV3.scope)$enc.xml($vuln.cvssV3.scope)#end
                        #if($vuln.cvssV3.confidentialityImpact)$enc.xml($vuln.cvssV3.confidentialityImpact)#end
                        #if($vuln.cvssV3.integrityImpact)$enc.xml($vuln.cvssV3.integrityImpact)#end
                        #if($vuln.cvssV3.availabilityImpact)$enc.xml($vuln.cvssV3.availabilityImpact)#end
                        #if($vuln.cvssV3.baseSeverity)$enc.xml($vuln.cvssV3.baseSeverity)#end
                    
#end
#if (!$vuln.cwe.cwes.isEmpty())
                    
#foreach($cweEntry in $vuln.cwes.entries)
                    $enc.xml($cweEntry)
#end
                    
#end
                    $enc.xml($vuln.description)
#if ($vuln.notes)
                    $enc.xml($vuln.notes)
#end
                    
#foreach($ref in $vuln.getReferences())
                        
                            $enc.xml($ref.source)
                            #if($ref.url)$enc.xml($ref.url)#end
                            $enc.xml($ref.name)
                        
#end
                    
                    
#foreach($vs in $vuln.getVulnerableSoftware())
                        $enc.xml($vs.toCpe23FS())
#end
                    
                
#end
#foreach($vuln in $dependency.getSuppressedVulnerabilities(true))
                
                    $enc.xml($vuln.name)
#if($vuln.cvssV2)
                    
                        $vuln.cvssV2.score
                        #if($vuln.cvssV2.accessVector)$enc.xml($vuln.cvssV2.accessVector)#end
                        #if($vuln.cvssV2.accessComplexity)$enc.xml($vuln.cvssV2.accessComplexity)#end
                        #if($vuln.cvssV2.authentication)$enc.xml($vuln.cvssV2.authentication)#end
                        #if($vuln.cvssV2.confidentialityImpact)$enc.xml($vuln.cvssV2.confidentialityImpact)#end
                        #if($vuln.cvssV2.integrityImpact)$enc.xml($vuln.cvssV2.integrityImpact)#end
                        #if($vuln.cvssV2.availabilityImpact)$enc.xml($vuln.cvssV2.availabilityImpact)#end
                        #if($vuln.cvssV2.severity)$enc.xml($vuln.cvssV2.severity)#end
                    
#end
#if($vuln.cvssV3)
                    
                        $vuln.cvssV3.baseScore
                        #if($vuln.cvssV3.attackVector)$enc.xml($vuln.cvssV3.attackVector)#end
                        #if($vuln.cvssV3.attackComplexity)$enc.xml($vuln.cvssV3.attackComplexity)#end
                        #if($vuln.cvssV3.privilegesRequired)$enc.xml($vuln.cvssV3.privilegesRequired)#end
                        #if($vuln.cvssV3.userInteraction)$enc.xml($vuln.cvssV3.userInteraction)#end
                        #if($vuln.cvssV3.scope)$enc.xml($vuln.cvssV3.scope)#end
                        #if($vuln.cvssV3.confidentialityImpact)$enc.xml($vuln.cvssV3.confidentialityImpact)#end
                        #if($vuln.cvssV3.integrityImpact)$enc.xml($vuln.cvssV3.integrityImpact)#end
                        #if($vuln.cvssV3.availabilityImpact)$enc.xml($vuln.cvssV3.availabilityImpact)#end
                        #if($vuln.cvssV3.baseSeverity)$enc.xml($vuln.cvssV3.baseSeverity)#end
                    
#end
#if (!$vuln.cwe.cwes.isEmpty())
                    
#foreach($cweEntry in $vuln.cwes.entries)
                    $enc.xml($cweEntry)
#end
                    
#end
                    $enc.xml($vuln.description)
#if ($vuln.notes)
                    $enc.xml($vuln.notes)
#end
                    
#foreach($ref in $vuln.getReferences())
                        
                            $enc.xml($ref.source)
                            $enc.xml($ref.url)
                            $enc.xml($ref.name)
                        
#end
                    
                    
#foreach($vs in $vuln.getVulnerableSoftware())
                        $enc.xml($vs.toCpe23FS())                            
#end
                    
                
#end
            
#end
        
#end
    





© 2015 - 2024 Weber Informatics LLC | Privacy Policy