Questions tagged [shellshock]

Shellshock is a series of security vulnerabilities in bash, starting with (CVE-2014-6271) which allows arbitrary code execution from environment variables.

Shellshock is vulnerability CVE-2014-6271 in bash (other shells are not affected), reported by Stéphane Chazelas in September 2014.

Bash imports function definitions from the environment when it starts; the vulnerability is due to executing arbitrary code from specially-crafted environment variables.

Common remote execution vectors include CGI scripts, OpenSSH forced commands, and some DHCP servers. Local execution vectors include bash scripts executed with elevated privileges or with environment values obtained from untrusted sources; sudo is not affected because it filters out environment entries that look like bash exported functions.

In the wake of the initial discovery, several more vulnerabilities were discovered in the same part of the bash code.

To fix these vulnerabilities, upgrade bash to a version that fixes CVE-2014-6271 and other vulnerabilities. Apply your distribution's security updates as usual. For the rare users who install bash from source, patches have been provided for all affected versions.

80 questions
213
votes
5 answers

What is a specific example of how the Shellshock Bash bug could be exploited?

I read some articles (article1, article2, article3, article4) about the Shellshock Bash bug (CVE-2014-6271 reported Sep 24, 2014) and have a general idea of what the vulnerability is and how it could be exploited. To better understand the…
Rob Bednark
  • 1,435
  • 3
  • 10
  • 9
77
votes
6 answers

Is there a short command to test if my server is secure against the shellshock bash bug?

I did apt-get update; apt-get upgrade -y on all systems I'm running. I'm not sure if my /etc/apt/sources.list is good enough on all of these systems. I would like to quickly check each system again, ideally with a one-line shell command. Does such a…
the
  • 1,841
  • 2
  • 16
  • 33
43
votes
4 answers

How do I secure Apache against the Bash Shellshock vulnerability?

I have an Apache webserver running, and with the recent news of the Shellsock exploit against bash I was wondering if my webserver is vulnerable. I don't think it is, but I want to make sure I'm not mistaken. I don't use any bash CGI intentionally…
user56147
  • 431
  • 1
  • 4
  • 4
41
votes
3 answers

Are ordinary OS X desktops at risk from bash "shellshock" bug (CVE-2014-6271)?

I've recently heard via Twitter about CVE-2014-6271. Are ordinary OS X desktops, that aren't acting as a web server, at risks of receiving attacks that could exploit this vulnerability?
Andrew Grimm
  • 2,100
  • 2
  • 20
  • 27
26
votes
1 answer

Where is Bash Shellshock vulnerability in source code?

I have been hearing about the Bash Shellshock problem since yesterday and am curious to see where in the source code this problem occurs. I have downloaded the source for Bash 4.2 from here. Where exactly should I look for Shellshock in the source…
Jake
  • 1,095
  • 3
  • 12
  • 20
23
votes
2 answers

What vulnerability is targeted by an HTTP referer starting with (){ :;};/bin/bash

I found this code, followed by several bash commands downloading and running a payload from the web, in the referer field in my apache error logs. The attack appears to work by converting a command name into a funtion name for the empty function…
Kylos
  • 333
  • 1
  • 6
22
votes
1 answer

GitHub's Bash Shell for Windows is vulnerable to Shellshock. Can it do any harm though?

After the news of the Shellshock vulnerability broke out, I remembered I had GitHub's version of a bash shell for Windows installed. Just to see if it also had the vulnerability, I executed: env x='() { :;}; echo vulnerable' bash -c "echo this is a…
cptncrnch
  • 305
  • 3
  • 8
22
votes
1 answer

Attack scenarios of the new Bash vulnerability

Odds are that you're already aware of the newly discovered Bash bug. It can be tested using env x='() { :;}; echo vulnerable' bash -c "echo this is a test". What yet I haven't understand is, what are the real attack scenarios of this vulnerability.…
The Illusive Man
  • 10,487
  • 16
  • 56
  • 88
19
votes
2 answers

Are python's popen (and similar) functions affected by Shellshock?

Basically which python's functions trigger bash (and might be impacted by shellshock), and which don't ? I have come up with this question by seeing in some scripts the popen() function. My question relates to both Python 2 and 3.
15
votes
3 answers

What is "tmUnblock.cgi" and can it be exploited by Shellshock? (Linux / Apache webserver)

I found what looks like a possible attempted Shellshock attack targeting tmUnblock.cgi, and I'm trying to understand it. I was checking through Apache access logs for a small webserver during the time period between the Shellshock bug becoming news…
13
votes
4 answers

Does the bash shell function import feature inevitably give rise to privilege escalation problem?

Even without the immediate code-execution problem of Shellshock trailing commands, to what extent does the feature of bash importing functions from the environment give rise to a comprehensive privilege escalation vulnerability? To be clear, there…
Ben
  • 3,697
  • 1
  • 18
  • 24
13
votes
5 answers

Is replacing bash with another shell a prudent step?

Considering that RedHat and other major teams in business are conducting an audit in bash and have uncovered a few other vulnerabilities besides -7169 (-7186 and -7187), is it sensible to link /bin/sh to another shell? Both -7186 and -7187 were…
Deer Hunter
  • 5,297
  • 5
  • 33
  • 50
12
votes
1 answer

Even with the Shellshock patch, isn't Bash vulnerable to command redefinition?

At the risk of adding to the heap of "Shellshock"-related questions... The Shellshock patch prevents arbitrary code from being executed after function definitions in environment variables. For example, here is what a patched version of Bash does…
Sam Harada
  • 123
  • 6
11
votes
2 answers

What operating systems and devices are known to be affected by Shellshock? What patches are available?

This is intended to be a Community Wiki to document which operating systems and devices are known to be affected by the Shellshock vulnerability (and related vulnerabilities), and what patches are available. The CW list should contain the following…
Iszi
  • 26,997
  • 18
  • 98
  • 163
11
votes
3 answers

Shellshock Bash bug on mobile systems

Does the bug in Bash affect Android or iOS mobile systems?
1
2 3 4 5 6