x='() { :;}; echo shellshock’ bash -c ‘echo Ok’If the result is like the above then your system is vulnerable. Otherwise if you get something like “bash: warning: x: ignoring function definition attempt”, then your system is not vulnerable. The problem comes in if it’s possible to have external input going in to bash. Like if you have a web server which is passing some requests to bash then an attacker can exploit it remotely gaining access to your system.
A new vulnerability or bug has surfaced and this has been all over the news these past few days. It’s nicknamed shellshock and estimated to be even worst then heartbleed, which surfaced a few months back. The real thing is that this is all true and this bug is really very serious and can lead to a site being compromised.
This shellshock bug effects the unix command line shell known as “Bash” which is also the most common shell used in the linux/unix world. The command shell is the command line interpreter which most common users do not use in their day to day use, yet it is there.
To check if your system is vulnerable open bash and type in the following: