Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    So, CVE-2014-6271 (bash SHELL SHOCK) Anyone?

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    16 Posts 7 Posters 4.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      redbeard0x0a
      last edited by

      You can always use 'find' to search for a binary named bash:

      
      [2.1.5-RELEASE][root@myrouter]/(1): find / -name bash -print
      [2.1.5-RELEASE][root@myrouter]/(2):
      
      
      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The bash issue going around appears to only affect one commonly used package, and not the base system. The base system does not include bash, no problem there.

        The affected packages are:

        • Anyterm
        • Contains bash in its binaries which are in the git repo, not a .pbi or .tgz. This package may simply be retired as it is unmaintained and is rarely used.
        • Freeswitch-dev
        • Runs pkg_add for bash. Not actively maintained, could probably be safely removed with minimal impact.
        • FreeRADIUS2
        • Adds bash via pkg_add using FreeBSD's 8.3-RELEASE package set if the user activates Mobile-One-Time-Password (varsettingsmotpenable). We're looking into the best way to fix it.

        Also include bash and will have rebuilt PBIs shortly:

        • Mailscanner

        The following packages use bash to build but do NOT include the bash binary in their PBI for use on the firewall:

        • git
        • avahi
        • ntopng

        Overall, not a huge impact.

        EDIT: Added mailscanner which also includes bash, though it doesn't do so explicitly something it needs must have pulled it in as a dependency.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          FreeRADIUS2 has been updated, should show an update available soon.

          Mailscanner will be updated some time tomorrow.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Affected packages have been either updated or removed (thanks to garga).

            • FreeRADIUS2: Package updated with a patched version of bash
            • Mailscanner: Package updated with a patched version of bash
            • FreeSWITCH/FreeSWITCH-dev: -dev variant attempted to install bash via pkg_add. Unmaintained, FreeBSD removed it from ports tree. Removed package.

            Other packages that had a reference to bash but are not vulnerable:

            • Anyterm: Defaulted to attempt to run bash. Unmaintained, package removed.
            • git: Used bash during build, but did not include bash in its PBI
            • avahi: Used bash during build, but did not include bash in its PBI
            • ntopng : Used bash during build, but did not include bash in its PBI

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • BismarckB
              Bismarck
              last edited by

              @jimp:

              • Mailscanner: Package updated with a patched version of bash

              I've update the Mailscanner package and it looks like bash has been completely removed from the system instead.

              # bash
              bash: Command not found.
              
              # find -f / bash
              ...
              find: bash: No such file or directory
              
              1 Reply Last reply Reply Quote 0
              • R
                robi
                last edited by

                Could anybody please attach a gzipped patched binary here, to optionally replace it manually? Or maybe an URL to download the new .tgz?

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  There is no new tgz. For packages that require it, it is built into their PBI. Not sure why it didn't show up in mailscanner, but feel free to open a ticket in redmine for it if mailscanner is misbehaving because of its absence. It should also be the new FreeRADIUS2 PBI, so if you really want it, install that and copy the binary from there, then you could remove it if you want.

                  It is highly unlikely we'll make a stand-alone package just for bash.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • R
                    robi
                    last edited by

                    I Installed freeradius2 package on my i386 NanoBSD box, and it didn't pull the bash binary as far as I can see:

                    /usr/local/bin(11): ls -la | grep bash
                    lrwxr-xr-x   1 root  wheel       36 Sep 27 19:31 bashbug -> /usr/pbi/freeradius-i386/bin/bashbug
                    /usr/local/bin(12): bash
                    bash: Command not found.
                    

                    :o

                    1 Reply Last reply Reply Quote 0
                    • R
                      robi
                      last edited by

                      @Bismarck:

                      I've update the Mailscanner package and it looks like bash has been completely removed from the system instead.

                      Confirming that bash is missing from Mailscanner too.

                      1 Reply Last reply Reply Quote 0
                      • R
                        robi
                        last edited by

                        :o :o :o

                        Nobody cares?

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          It's being looked at, they're apparently there on 2.2, though if you install one and then the other and remove one, the symlink goes with it.

                          There was another update to bash that needs put in anyhow, but it's mostly cosmetic (version bump) since the previous + patches has the fix already.

                          Since bash isn't there (and thus really isn't vulnerable  ;D ) it isn't as high a priority, though it'll be fixed soon.

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            Also:
                            https://isc.sans.edu/forums/diary/Shellshock+We+are+not+done+yet+CVE-2014-6277+CVE-2014-6278/18723
                            http://www.openwall.com/lists/oss-security/2014/09/25/32

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • rbgargaR
                              rbgarga Developer Netgate Administrator
                              last edited by

                              @robi:

                              @Bismarck:

                              I've update the Mailscanner package and it looks like bash has been completely removed from the system instead.

                              Confirming that bash is missing from Mailscanner too.

                              Please try last package version. Both PBIs were rebuilt and bash is inside.

                              Renato Botelho

                              1 Reply Last reply Reply Quote 0
                              • R
                                robi
                                last edited by

                                Thanks.

                                Tried freeradius2 package by deleting it and installing it again. The patched bash binary is deployed on both i386 and amd64 platforms.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.