Skip to content

Instantly share code, notes, and snippets.

@skottler skottler/bash_spec.rb
Last active Aug 29, 2015

What would you like to do?
require 'spec_helper'
describe command("env x='() { :;}; echo vulnerable' bash -c 'echo this is a test'") do
its(:exit_status) { eq 0 }
its(:stdout) { is_expected.not_to match(/vulnerable/) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.