Where exceptional client service meets reality.
Welcome to our new website!

X
Posted 9.25.14
by wpadmin
Blog

What to do about Bash bug, which could pose bigger threats than Heartbleed

Cybersecurity experts are saying a bug in the widely-used command prompt software Bash could be a bigger threat to users than the Heartbleed bug that surfaced earlier this year. The vulnerability affects Unix-based operating systems, including Linux and Apple’s Mac OS X.

The bug – which has picked up the moniker Shellshock – allows for malicious code execution to take over an operating system and access information. Patches have been issued by many of the major Linux distribution vendors.

Security expert Robert Graham, who has extensive coverage of the bug on his Errata Security blog,  describes why it is so worrisome:

The first reason is that the bug interacts with other software in unexpected ways. We know that interacting with the shell is dangerous, but we write code that does it anyway. An enormous percentage of software interacts with the shell in some fashion. Thus, we’ll never be able to catalogue all the software out there that is vulnerable to the bash bug. This is similar to the OpenSSL bug: OpenSSL is included in a bajillion software packages, so we were never able to fully quantify exactly how much software is vulnerable.

The second reason is that while the known systems (like your web-server) are patched, unknown systems remain unpatched. We see that with the Heartbleed bug: six months later, hundreds of thousands of systems remain vulnerable. These systems are rarely things like webservers, but are more often things like Internet-enabled cameras.

So, what to do?

ArsTechnica.com published a test to determine if a Linux or Unix system is vulnerable:

To check your system, from a command line, type:

env x='() { :;}; echo vulnerable’ bash -c “echo this is a test”

If the system is vulnerable, the output will be:

vulnerable

this is a test

An unaffected (or patched) system will output:

bash: warning: x: ignoring function definition attempt

bash: error importing function definition for `x’

this is a test

The fix is an update to a patched version of the Bash shell. To be safe, administrators should do a blanket update of their versions of Bash in any case, ArsTechnica.com suggests.

David Kennedy, security expert and CEO of northeastern Ohio’s TrustedSec, also strongly recommends updating systems.

The TrustedSec blog offers this local system test to see if you are vulnerable:

env x='() { :;}; echo Your system is vulnerable’ bash -c “echo Test script”

However, Graham provides this somber note: “There’s little need to rush and fix this bug. Your primary servers are probably not vulnerable to this bug. However, everything else probably is. Scan your network for things like Telnet, FTP, and old versions of Apache (masscan is extremely useful for this). Anything that responds is probably an old device needing a bash patch. And, since most of them can’t be patched, you are likely screwed.”


RELATED CONTENT
Bridging the software and infosec professional chasm
Encryption video series
White paper: Encryption of Cloud Data

Get the latest news and trends in the industry

SUBSCRIBE