• Post Reply Bookmark Topic Watch Topic
  • New Topic

Are you safe from Shellshock if Bash is not your default shell?  RSS feed

 
Junilu Lacar
Sheriff
Posts: 11477
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some comments I've seen recently seem to imply that if your default shell is not Bash then you're not vulnerable to the Shellshock bug.

However, the Shellshock FAQ says (emphasis mine):
Michael Lin and Larry Seltzer wrote:Bash can be called directly by the CGI (i.e. A Bash script), or it could be called via a subprocess or system command. If Bash is started at any point within the context of this malicious CGI request, then the vulnerability will be triggered.

I think this means that it doesn't matter whether Bash is your default shell or not. As long as it's installed on the vulnerable system and an attacker can formulate the right command to injectdo something to start Bash, you still have a risk of getting pwned.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct : the vulnerability concerns bash being run; it's not relevant what the default shell is. Executing a shell script that specifies it should be run via bash would also do.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!