Class: Scanny::Checks::SystemTools::TarCommandsCheck
- Inherits:
-
Check
- Object
- Check
- Scanny::Checks::SystemTools::TarCommandsCheck
show all
- Includes:
- Helpers
- Defined in:
- lib/scanny/checks/system_tools/tar_commands_check.rb
Instance Method Summary
collapse
Methods included from Helpers
#build_pattern_exec_command
Methods inherited from Check
#compiled_pattern, #issue, #strict?, #visit
Instance Method Details
#check(node) ⇒ Object
15
16
17
|
# File 'lib/scanny/checks/system_tools/tar_commands_check.rb', line 15
def check(node)
issue :high, warning_message, :cwe => 88
end
|
#pattern ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/scanny/checks/system_tools/tar_commands_check.rb', line 7
def pattern
[
build_pattern_exec_command(/tar.*\-\-to\-command/),
build_pattern_exec_command(/tar.*\-\-rmt\-command/),
build_pattern_exec_command(/tar.*\-\-rsh\-command/)
].join("|")
end
|