Class: Scanny::Checks::InsecureMethod::MarshalCheck

Inherits:
Check
  • Object
show all
Defined in:
lib/scanny/checks/insecure_method/marshal_check.rb

Instance Method Summary collapse

Methods inherited from Check

#compiled_pattern, #issue, #strict?, #visit

Instance Method Details

#check(node) ⇒ Object



9
10
11
# File 'lib/scanny/checks/insecure_method/marshal_check.rb', line 9

def check(node)
  issue :high, warning_message, :cwe => 502
end

#patternObject



5
6
7
# File 'lib/scanny/checks/insecure_method/marshal_check.rb', line 5

def pattern
  pattern_load_call
end