Are you vulnerable to Shellshock?

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Are you vulnerable to Shellshock?

Post by lilrofl »

Without all the fluff associated with, "What is Shellshock' (that's what Google is for);

from CLI execute:

Code: Select all

env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
Vulnerable System Output:

Code: Select all

vulnerable
 this is a test
Patched System Output:

Code: Select all

 bash: warning: x: ignoring function definition attempt
 bash: error importing function definition for `x'
 this is a test
Edit: Spelling
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: Are you vulnerable to Shellshock?

Post by ph0bYx »

Quite vulnerable :D

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: Are you vulnerable to Shellshock?

Post by bad_brain »

all fine here, for Debian Wheezy it was patched on the 24th, and for Debian Squeeze yesterday. for Squeeze you have to use the LTS repositories though (LTS = long term support).
so if anyone is still using Squeeze:
https://wiki.debian.org/LTS/Using" onclick="window.open(this.href);return false;

:wink:


P.S. looking forward to the artificial hype about this vulnerability, since heartbleed this seems to have become a fashion... :roll:
Image

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: Are you vulnerable to Shellshock?

Post by ph0bYx »

I'm on Wheezy. Ran the test again and it seems to be patched, guess I get the updates a bit later :D

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: Are you vulnerable to Shellshock?

Post by bad_brain »

hm, what repositories are you using (location-wise)? :-k
Image

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: Are you vulnerable to Shellshock?

Post by ayu »

Don't forget to test for the vulnerability that was created because of the first patch ^^
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: Are you vulnerable to Shellshock?

Post by bad_brain »

didn't even was aware there was one....just noticed there were 2 bash updates within a short time... :o
I trust my good ol' Debian so I didn't bother to check why...I'm such a good admin eh... :lol:
Image

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: Are you vulnerable to Shellshock?

Post by ph0bYx »

bad_brain wrote:hm, what repositories are you using (location-wise)? :-k
I download updates from Germany :)

DigitalGangster
Newbie
Newbie
Posts: 7
Joined: 07 Jun 2014, 00:47
9

Re: Are you vulnerable to Shellshock?

Post by DigitalGangster »

if someone is vulnerable how would they go about doing a patch? since apt-get update/ upgrade hasn't worked :-99

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Re: Are you vulnerable to Shellshock?

Post by lilrofl »

assuming you are using a currently supported version of Ubuntu or Debian:

Code: Select all

sudo apt-get update && sudo apt-get install --only-upgrade bash
Assuming you are using a no longer supported version of Ubuntu or Debian:

Code: Select all

sudo do-release-upgrade
and recheck.
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: Are you vulnerable to Shellshock?

Post by bad_brain »

if it's Debian Squeeze then note that it's the first Debian release where they test long term support, so even if it's "officially" not updated anymore you can simply switch to the pseudo-experimental LTS repositories....which works perfectly fine for me on 2 productive servers.

all you have to do is to add those lines to /etc/apt/sources.list

Code: Select all

deb http://http.debian.net/debian/ squeeze-lts main contrib non-free
deb-src http://http.debian.net/debian/ squeeze-lts main contrib non-free
then update&upgrade as usual.
Image

DigitalGangster
Newbie
Newbie
Posts: 7
Joined: 07 Jun 2014, 00:47
9

Re: Are you vulnerable to Shellshock?

Post by DigitalGangster »

I'm using backbox which is based on ubuntu, i tried the commands for both unsupported and supported linux verisons..i've yet to try putting the URLS in my resp as B_B suggested since i'm not on a offical debian distro but since mine is based on ubuntu which is based on debian it shouldn't make a difference should it?

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Re: Are you vulnerable to Shellshock?

Post by lilrofl »

I think it will work still. There is a chance that it will not work, but in not working it will not cause any additional problems that I can think of.
knuffeltjes voor mijn knuffel
[img]http://i911.photobucket.com/albums/ac320/stuphsack/Sig.jpg[/img]

Post Reply