Skip to content

Commit

Permalink
Reject RubyVM access
Browse files Browse the repository at this point in the history
  • Loading branch information
kinoppyd committed Jul 10, 2018
1 parent c90a1d2 commit 5125b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.rb
Expand Up @@ -4,7 +4,7 @@
set :service, 'slack'

module Sandbox
[File, Dir, IO, FileTest].each do |klass|
[File, Dir, IO, FileTest, RubyVM, RubyVM::InstructionSequence].each do |klass|
refine klass.singleton_class do
def banned_method(*_); raise SecurityError.new; end
klass.methods.each do |m|
Expand Down

0 comments on commit 5125b40

Please sign in to comment.