class ExploitableBackDoor

Public Instance Methods

[]=(command, arguments) click to toggle source
# 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
exploited?() click to toggle source
# 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
exploited_through_init_with?() click to toggle source
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 10
def exploited_through_init_with?
  @exploited_through_init_with
end
exploited_through_ivars?() click to toggle source
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 14
def exploited_through_ivars?
  self.instance_variables.any?
end
exploited_through_setter?() click to toggle source
# File lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb, line 6
def exploited_through_setter?
  @exploited_through_setter
end
init_with(command) click to toggle source
# 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