# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 24 def []=(command, arguments) # Note: this is how bad this COULD be. # system("#{command} #{arguments}") @exploited_through_setter = true end
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 2 def exploited? @exploited_through_setter || @exploited_through_init_with || @exploited_through_ivars end
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 10 def exploited_through_init_with? @exploited_through_init_with end
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 14 def exploited_through_ivars? self.instance_variables.any? end
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 6 def exploited_through_setter? @exploited_through_setter end
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 18 def init_with(command) # Note: this is how bad this COULD be. # system("#{command}") @exploited_through_init_with = true end