Sha256: 9eda9e3989262f8c0b3c839529823aa316d41e0db02c8a2d22b77c0667c6a72a

Contents?: true

Size: 329 Bytes

Versions: 14

Compression:

Stored size: 329 Bytes

Contents

module Kaya
  module Support
    class Risk
      def self.secure? value
        value.scan(/&&|kill.*|rm -rf|rm -r \.\[\^\.\]\*|mkfs.*|.*\> \/dev\/sda|\:\(\)\{\:\|\:\&\}\;\:|wget .*|sh \.\/.*|\||grep|python \-c \'import os.*|mv .+|\> .+|\^foo\^bar|dd if=\/dev\/random of=\/dev\/sda|mkdir .*/).empty?
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kaya-0.0.14 lib/kaya/support/risk.rb
kaya-0.0.13 lib/kaya/support/risk.rb
kaya-0.0.12 lib/kaya/support/risk.rb
kaya-0.0.11 lib/kaya/support/risk.rb
kaya-0.0.10 lib/kaya/support/risk.rb
kaya-0.0.9 lib/kaya/support/risk.rb
kaya-0.0.8 lib/kaya/support/risk.rb
kaya-0.0.7 lib/kaya/support/risk.rb
kaya-0.0.6 lib/kaya/support/risk.rb
kaya-0.0.5 lib/kaya/support/risk.rb
kaya-0.0.4 lib/kaya/support/risk.rb
kaya-0.0.3 lib/kaya/support/risk.rb
kaya-0.0.2 lib/kaya/support/risk.rb
kaya-0.0.1 lib/kaya/support/risk.rb