Class: Scanny::Checks::HTTPRedirectCheck

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

Instance Method Summary collapse

Methods inherited from Check

#compiled_pattern, #issue, #visit

Instance Method Details

#check(node) ⇒ Object



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

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

#patternObject



4
5
6
# File 'lib/scanny/checks/http_redirect_check.rb', line 4

def pattern
  pattern_open_uri
end

#strict?Boolean

Returns:

  • (Boolean)


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

def strict?
  true
end