Skip to content

Instantly share code, notes, and snippets.

@skottler
Last active August 29, 2015 14:07
require 'spec_helper'
describe command("env x='() { :;}; echo vulnerable' bash -c 'echo this is a test'") do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.not_to match(/vulnerable/) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment