You can test your server for bash command injection with
[root@ss ~]# env x='() { :;}; echo vulnerable' bash -c "echo this is a test" vulnerable this is a test |
Update bash with
# yum -y update bash |
and you’ll get
[root@ss ~]# env 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 |