Last active
December 12, 2015 05:08
-
-
Save tarcieri/4719525 to your computer and use it in GitHub Desktop.
A SecureContext strawman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is Ruby right? We abuse dynamic scope for everything | |
SecureContext.new do | |
# NO | |
eval "`rm -rf /`" | |
# NO | |
system "rm -rf /" | |
# NO | |
alias_method :loleval, :eval | |
loleval "`rm -rf /`" | |
# NO | |
passw3rdz = File.read("/etc/passwd") | |
# NO | |
l33t_pip3z = IO.pipe | |
# NO | |
Object.new.instance_eval("`rm -rf /") | |
# NO | |
class HaxorShiz; end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment