Class: Mdm::Vuln

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/mdm/vuln.rb

Overview

A vulnerability found on a #host or #service.

Instance Attribute Summary collapse

Instance Attribute Details

#exploit_attemptsActiveRecord::Relation<Mdm::ExploitAttempt>

Attempts to exploit this vulnerability.

Returns:



11
12
13
# File 'app/models/mdm/vuln.rb', line 11

has_many :exploit_attempts,
class_name: 'Mdm::ExploitAttempt',
inverse_of: :vuln

#exploited_atDateTime

When the vulnerability was exploited

Returns:

  • (DateTime)


# File 'app/models/mdm/vuln.rb', line 97

#hostMdm::Host

The host with this vulnerability.

Returns:



19
20
21
22
# File 'app/models/mdm/vuln.rb', line 19

belongs_to :host,
class_name: 'Mdm::Host',
counter_cache: :vuln_count,
inverse_of: :vulns

#infoString

Additional information about the vulnerability

Returns:

  • (String)


# File 'app/models/mdm/vuln.rb', line 107

#module_detailsArray<Mdm::Module::Detail> (readonly)

Modules that share the same external references as this vuln.

Returns:



87
88
89
90
91
# File 'app/models/mdm/vuln.rb', line 87

has_many :module_details,
:class_name => 'Mdm::Module::Detail',
:source => :detail,
:through => :module_refs,
:uniq => true

#module_refsArray<Mdm::Module::Ref> (readonly)

References in module that match names in #refs.

Returns:



77
# File 'app/models/mdm/vuln.rb', line 77

has_many :module_refs, :class_name => 'Mdm::Module::Ref', :through => :refs

#nameString

The name of the vulnerability in metasploit-framework or from the import source.

Returns:

  • (String)


# File 'app/models/mdm/vuln.rb', line 102

#refsArray<Mdm::Ref> (readonly)

External references to this vulnerability.

Returns:



67
# File 'app/models/mdm/vuln.rb', line 67

has_many :refs, :class_name => 'Mdm::Ref', :through => :vulns_refs

#serviceMdm::Service

The service with the vulnerability.

Returns:



28
29
30
# File 'app/models/mdm/vuln.rb', line 28

belongs_to :service,
class_name: 'Mdm::Service',
inverse_of: :vulns

#vuln_attempt_countInteger

Counter cache for number of #vuln_attempts.

Returns:

  • (Integer)


# File 'app/models/mdm/vuln.rb', line 112

#vuln_attemptsArray<Mdm::VulnAttempt>

Attempts to exploit this vulnerability.

Returns:



36
37
38
39
# File 'app/models/mdm/vuln.rb', line 36

has_many :vuln_attempts,
class_name: 'Mdm::VulnAttempt',
dependent: :destroy,
inverse_of: :vuln

#vuln_detail_countInteger

Counter cache for number of #vuln_details.

Returns:

  • (Integer)


# File 'app/models/mdm/vuln.rb', line 117

#vuln_detailsArray<Mdm::VulnDetail>

Additional information about this vulnerability.

Returns:



45
46
47
48
# File 'app/models/mdm/vuln.rb', line 45

has_many :vuln_details,
class_name: 'Mdm::VulnDetail',
dependent: :destroy,
inverse_of: :vuln

#vulns_refsArray<Mdm::VulnRef>

Join model that joins this vuln to its external references.

Returns:



54
55
56
57
# File 'app/models/mdm/vuln.rb', line 54

has_many :vulns_refs,
class_name: 'Mdm::VulnRef',
dependent: :destroy,
inverse_of: :vuln