Sha256: d4c79ae43fd221d03887155c4879793b7761acc8d22bbed3459c838b8bf0cb0a

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 Bytes

Contents

class ExploitableBackDoor
  @@exploited = false

  def self.exploited?
    @@exploited
  end

  def self.reset
    @@exploited = false
  end

  def init_with(command)
    # Note: this is how bad this COULD be.
    # system("#{command}")
    @@exploited = true
  end

  def []=(command, arguments)
    # Note: this is how bad this COULD be.
    # system("#{command} #{arguments}")
    @@exploited = true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
safe_yaml-0.2.2 spec/support/exploitable_back_door.rb
safe_yaml-0.2.1 spec/support/exploitable_back_door.rb
safe_yaml-0.2 spec/support/exploitable_back_door.rb
safe_yaml-0.1 spec/support/exploitable_back_door.rb