Class: Scanny::Checks::Sql::SanitizeCheck

Inherits:
SqlCheck show all
Defined in:
lib/scanny/checks/sql_injection/sanitize_sql_check.rb

Overview

Check for use of the “sanitize_sql” method

Instance Method Summary collapse

Methods inherited from Check

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

Instance Method Details

#check(node) ⇒ Object



12
13
14
# File 'lib/scanny/checks/sql_injection/sanitize_sql_check.rb', line 12

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

#patternObject



8
9
10
# File 'lib/scanny/checks/sql_injection/sanitize_sql_check.rb', line 8

def pattern
  pattern_sanitize_sql
end