by super_mario · 12y ago · 0 comments
$ echo $BASH_VERSION
3.2.51(1)-release
$ x='() { :;}; echo vulnerable' bash -c "echo this is a test"
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test
$
I manually patched my BASH 4.3 to patch level 25 so it's not vulnerable either. $ echo $BASH_VERSION
4.3.25(1)-release
$ x='() { :;}; echo vulnerable' bash -c "echo this is a test"
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test
$In other words, I suspect that:
$ echo $BASH_VERSION
and $ bash --version
Will report different version numbers.If you start a new terminal and try `echo $BASH_VERSION`, you will probably see a different version as well.
I started bash 3.2 from bash 4.3 so that could be the reason why it is not vulnerable as child process.
http://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052
Your paste indicates patch level 51.
The phrase in question doesn't appear on the internet much at all before today.
https://www.google.com/search?q="ignoring+function+definitio...
I presume that the one search result we see is due to a server that has an incorrect clock (or a time machine).