Browse files

Reject RubyVM access

  • Loading branch information...
kinoppyd committed Jul 10, 2018
1 parent c90a1d2 commit 5125b409ae22bd985c4c077e3a4900f90e0563cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.rb
2 app.rb
@@ -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; end
klass.methods.each do |m|

0 comments on commit 5125b40

Please sign in to comment.