echo vulnerable

screen shot with ubuntu 10.10Even though most people are now aware of the Shellshock security problem on the bash shell, here is a test to check whether your Unix system is at risk:

[sourcecode language=”bash” gutter=”false”]
env x='() { :;}; echo vulnerable’ bash -c ‘echo hello’
[/sourcecode]

if the prompt returns vulnerable, it means the system is vulnerable and needs to be upgraded with the proper security patch… For instance running

[sourcecode language=”bash” gutter=”false”]
sudo apt-get update && sudo apt-get install –only-upgrade bash
[/sourcecode]

for Debian/Ubuntu versions. Check Apple support page for Apple OS.

3 Responses to “echo vulnerable”

  1. Reblogged this on In Ken's Head and commented:
    Note to self to test at home later.

    But I also can’t help wondering, with all of the breaches, loopholes, backdoors and revelations these days, is it possible to be digitally safe and secure at all any longer?

Leave a Reply

Discover more from Xi'an's Og

Subscribe now to keep reading and get access to the full archive.

Continue reading