Class: Scanny::Checks::Sql::FindMethodWithDynamicStringCheck

Inherits:
SqlCheck
  • Object
show all
Defined in:
lib/scanny/checks/sql_injection/find_method_with_dynamic_string_check.rb

Overview

Check for methods executing external params on database engine with dynamic string

Instance Method Summary collapse

Methods inherited from Check

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

Instance Method Details

#check(node) ⇒ Object



13
14
15
# File 'lib/scanny/checks/sql_injection/find_method_with_dynamic_string_check.rb', line 13

def check(node)
  issue :medium, warning_message, :cwe => 89
end

#patternObject



9
10
11
# File 'lib/scanny/checks/sql_injection/find_method_with_dynamic_string_check.rb', line 9

def pattern
  pattern_find_by_with_conditions_dynamic_string
end