Unconfigured Ad Widget

Collapse

Linux 'shellshock' update your bash or get owned

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stonith3901
    Member
    • Jul 2012
    • 175

    Linux 'shellshock' update your bash or get owned

    If you are using Linux it probably has the 'bash' shell package installed. If not then don't worry. If it does, this has been rated a severity 10. Granted most of these are Redhat specific, as that is what I use:





    Here is the solutions page:


    This vulnerability is probably just as bad as Heartbleed if not worse. Update your systems with the latest updates on bash for your particular flavor.
    Last edited by stonith3901; 09-25-2014, 4:05 PM.
  • #2
    yellowsulphur
    Senior Member
    • May 2007
    • 1648

    Thanks for the info and I just updated my personal cloud server to the latest version. Although I don't consider myself a big target I use Fedora and have ssh open to the outside.

    Comment

    • #3
      pbsmind
      Senior Member
      • Jun 2011
      • 527

      Shellshock wont be as wide spread as heartbleed. To exploit remotely you'll need public services that access bash environment variables. Like passing the user agent as an environment variable. Hopefully you're not running these services as root.

      Also affects OSX since it uses bash.

      Easy test to see if you were vulnerable.
      This flaw is triggered when extra code is added to the end of these function definitions (inside the enivronment variable). Something like:

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

      The patch used to fix this flaw, ensures that no code is allowed after the end of a bash function. So if you run the above example with the patched version of bash, you should get an output similar to:

      $ env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
      bash: warning: x: ignoring function definition attempt
      bash: error importing function definition for `x'
      this is a test
      Last edited by pbsmind; 09-25-2014, 5:00 PM. Reason: To many alsos
      "He is no fool who gives what he cannot keep to gain that which he cannot lose." - Jim Elliot

      Comment

      • #4
        Jscanlan
        Junior Member
        • Sep 2014
        • 11

        Additional Info

        Ubuntu is vulnerable. Go to :



        To find the info to patch the vulnerability
        There is no crueler tyranny than that which is perpetuated under the shield of law and in the name of justice. Charles de Montesquieu

        Comment

        • #5
          elSquid
          In Memoriam
          • Aug 2007
          • 11844

          Originally posted by pbsmind
          Also affects OSX since it uses bash.
          Yup.

          On my 10.9.5 MacMini:

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


          -- Michael

          Comment

          • #6
            Cowboy T
            Calguns Addict
            • Mar 2010
            • 5725

            Yep. This isn't a "Linux bug" like some of the press have tried to claim. It's not even a Red Hat bug. It's a shell bug, specific to the Bourne-Again SHell (BASH). That means it could also show up on Free/Net/OpenBSD if you run BASH there, too.

            Furthermore, if you happen to be running BASH on a Microsoft platform (one example would be Cygwin), then you're also vulnerable, depending on what else you're running.

            Get those systems patched! Mine are already done.
            "San Francisco Liberal With A Gun"
            F***ing with people's heads, one gun show at a time. Hallelujah!
            http://www.sanfranciscoliberalwithagun.com (reloading info w/ videos)
            http://www.liberalsguncorner.com (podcast)
            http://www.youtube.com/sfliberal (YouTube channel)
            ----------------------------------------------------
            To be a true Liberal, you must be 100% pro-Second Amendment. Anything less is inconsistent with liberalism.

            Comment

            • #7
              skunkbad
              Member
              • Nov 2012
              • 147

              Yes, it's not just Linux, but pretty much any OS with a Unix core, because nearly all of them will have bash. I think the media is downplaying the effect on Mac OSX for whatever reason. Ubuntu had a update to bash last night, and another today. I think most linux geeks will be on top of their updates. Mac OSX people range from geeks to old grannies, so they may suffer more. I have 3 linux machines and one Mac, all updated immediately. Makes me glad I have 5 windows computers, just in case ...

              Comment

              • #8
                yellowsulphur
                Senior Member
                • May 2007
                • 1648

                Originally posted by Cowboy T
                Yep. This isn't a "Linux bug" like some of the press have tried to claim. It's not even a Red Hat bug. It's a shell bug, specific to the Bourne-Again SHell (BASH). That means it could also show up on Free/Net/OpenBSD if you run BASH there, too.

                Furthermore, if you happen to be running BASH on a Microsoft platform (one example would be Cygwin), then you're also vulnerable, depending on what else you're running.

                Get those systems patched! Mine are already done.
                Totally true. For some reason I thought some of the more well known distros out there were running Zsh.

                Comment

                • #9
                  the86d
                  Calguns Addict
                  • Jul 2011
                  • 9591

                  Nice, THX for the test line.

                  I updated before I even looked for a test and since there was an update I was patched before this thread dropped. I don't keep up on things like I once did, scouring forums and such, but then again I don't have default ports opened like I used to.

                  Comment

                  • #10
                    ocabj
                    Calguns Addict
                    • Oct 2005
                    • 7924

                    This isn't a Linux bug. It's a bug that affects anything that can run bash. This includes Oracle Solaris, FreeBSD, OpenBSD, Linux, OS X, Cygwin for Windows, etc. Don't look at bugs as OS specific. bash is an application. It's an application bug. If your OS can run that application, you need to check to see if that application is installed and test it.

                    Plus, OS'es don't have to 'run' bash. Quite a few Linux distributions have multiple shells installed (e.g. sh, bash, tcsh, ksh). They don't all 'run'. The shell is only run when something invokes it, whether it's your local console login, remote console (tty?), ssh, cgi via httpd, or even a system call in a php script.

                    And note, the patches that were released prior to 2014-09-26 0000Z are not complete. If you check your email or secfeeds, you'll see that RHEL has another bash update that addresses the incomplete fix from the initial bash code patches.

                    It was discovered shortly after the first bash update post CVE-2014-6271 that there are still environment variable exploits and resulted in CVE-2014-7169.



                    Redhat might be releasing the bash updates in their upstreams slightly faster than other distros simply because many bash developers work for Redhat.

                    What you guys also need to do is restart any daemons that have the ability to spawn bash (e.g. openssh, apache via cgi) or flat out reboot your boxes after you update bash (either through packages or source compile). Even after you update your bash binaries, it's still possible that the previous bash version is loaded in memory by another daemon such as openssh, leaving it network vulnerable.
                    Last edited by ocabj; 09-26-2014, 8:51 AM.

                    Distinguished Rifleman #1924
                    NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
                    NRL22 Match Director at WEGC

                    https://www.ocabj.net

                    Comment

                    • #11
                      ocabj
                      Calguns Addict
                      • Oct 2005
                      • 7924

                      Originally posted by skunkbad
                      Yes, it's not just Linux, but pretty much any OS with a Unix core, because nearly all of them will have bash. I think the media is downplaying the effect on Mac OSX for whatever reason. Ubuntu had a update to bash last night, and another today. I think most linux geeks will be on top of their updates. Mac OSX people range from geeks to old grannies, so they may suffer more. I have 3 linux machines and one Mac, all updated immediately. Makes me glad I have 5 windows computers, just in case ...
                      If you want to talk about being downplayed, you need to look at Solaris. They still haven't released a patch. We've had to compile and deploy updated bash for both Sparc and X86 for three different Solaris versions (via puppet).

                      As far as my Macs, I only run OS X on my laptop/desktops which don't have open attack vectors to utilize the bash exploit.
                      Last edited by ocabj; 09-26-2014, 9:00 AM.

                      Distinguished Rifleman #1924
                      NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
                      NRL22 Match Director at WEGC

                      https://www.ocabj.net

                      Comment

                      • #12
                        yellowsulphur
                        Senior Member
                        • May 2007
                        • 1648

                        Ocabj, you're right. Updated yesterday and there is another update today.

                        Comment

                        • #13
                          stonith3901
                          Member
                          • Jul 2012
                          • 175

                          ugh again!

                          Originally posted by yellowsulphur
                          Ocabj, you're right. Updated yesterday and there is another update today.
                          Yeah came here to say this. There is a second update in regards to this:



                          Red Hat has been made aware of a vulnerability affecting all versions of the bash package as shipped with Red Hat products. This vulnerability CVE-2014-6271 could allow for arbitrary code execution. Certain services and applications allow remote unauthenticated attackers to provide environment variables, allowing them to exploit this issue.

                          Update: 2014-09-26 05:15 UTC

                          Red Hat has become aware that the patch for CVE-2014-6271 is incomplete. An attacker can provide specially-crafted environment variables containing arbitrary commands that will be executed on vulnerable systems under certain conditions. The new issue has been assigned CVE-2014-7169.

                          Comment

                          • #14
                            Cowboy T
                            Calguns Addict
                            • Mar 2010
                            • 5725

                            Originally posted by skunkbad
                            Yes, it's not just Linux, but pretty much any OS with a Unix core, because nearly all of them will have bash. I think the media is downplaying the effect on Mac OSX for whatever reason.
                            Probably because the media folks are still being affected by the Jobsian "Reality Distortion Field" which says that anything Apple must be like manna from the heavens and thus already perfect. That's a dangerous attitude for them to have, because people might get bitten. There are folks who do run Mac OS X as a Web server platform, for example.

                            Originally posted by skunkbad
                            Makes me glad I have 5 windows computers, just in case ...
                            If your Windows computers have bash (e. g. Services for UNIX or Cygwin), then they're vulnerable, too.
                            "San Francisco Liberal With A Gun"
                            F***ing with people's heads, one gun show at a time. Hallelujah!
                            http://www.sanfranciscoliberalwithagun.com (reloading info w/ videos)
                            http://www.liberalsguncorner.com (podcast)
                            http://www.youtube.com/sfliberal (YouTube channel)
                            ----------------------------------------------------
                            To be a true Liberal, you must be 100% pro-Second Amendment. Anything less is inconsistent with liberalism.

                            Comment

                            • #15
                              ocabj
                              Calguns Addict
                              • Oct 2005
                              • 7924

                              I haven't gotten around to writing any OSSEC rules to check for shellshock attempts against my personal webhosts.

                              We have bro rules on the work NIDS that detect for specific http headers attempting to probe and/or obtain a shell through the shellshock exploit.

                              But since I need something for my personal HIDS applications, I need to leverage an OSSEC rule + active response rule with Apache logs.

                              Distinguished Rifleman #1924
                              NRA Certified Instructor (Rifle and Metallic Cartridge Reloading) and RSO
                              NRL22 Match Director at WEGC

                              https://www.ocabj.net

                              Comment

                              Working...
                              UA-8071174-1