lib/cms_scanner/vulnerability.rb in cms_scanner-0.13.1 vs lib/cms_scanner/vulnerability.rb in cms_scanner-0.13.2

- old
+ new

@@ -3,11 +3,11 @@ module CMSScanner # Generic Vulnerability class Vulnerability include References - attr_reader :title, :type, :fixed_in, :cvss + attr_reader :title, :type, :fixed_in, :introduced_in, :cvss # @param [ String ] title # @param [ Hash ] references # @option references [ Array<String>, String ] :cve # @option references [ Array<String>, String ] :secunia @@ -16,17 +16,19 @@ # @option references [ Array<String> ] :url URL(s) to related advisories etc # @option references [ Array<String>, String ] :metasploit The related metasploit module(s) # @option references [ Array<String> ] :youtube # @param [ String ] type # @param [ String ] fixed_in + # @param [ String ] introduced_in # @param [ HashSymbol ] cvss # @option cvss [ String ] :score # @option cvss [ String ] :vector - def initialize(title, references: {}, type: nil, fixed_in: nil, cvss: nil) - @title = title - @type = type - @fixed_in = fixed_in - @cvss = { score: cvss[:score], vector: cvss[:vector] } if cvss + def initialize(title, references: {}, type: nil, fixed_in: nil, introduced_in: nil, cvss: nil) + @title = title + @type = type + @fixed_in = fixed_in + @introduced_in = introduced_in + @cvss = { score: cvss[:score], vector: cvss[:vector] } if cvss self.references = references end # param [ Vulnerability ] other