Class: Scanny::Checks::InsecureMethod::SystemMethodCheck
- Inherits:
-
Check
- Object
- Check
- Scanny::Checks::InsecureMethod::SystemMethodCheck
show all
- Defined in:
- lib/scanny/checks/insecure_method/system_method_check.rb
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/insecure_method/system_method_check.rb', line 13
def check(node)
issue :high, warning_message, :cwe => [88, 78]
end
|
#pattern ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/scanny/checks/insecure_method/system_method_check.rb', line 5
def pattern
[
pattern_system_calls,
pattern_execute_string,
pattern_popen
].join("|")
end
|