Earlier quoted context omitted.
I just patched my CentOS 6 server a few hours ago. Double check yum.
I patched mine about 10 hours ago. Is this one newer?
Re: CVE-2014-6271 – remote code execution through bash
11–20 of 52 posts
Re: Re: CVE-2014-6271 – remote code execution through bash
#12Re: Re: CVE-2014-6271 – remote code execution through bash
#13Not having worked with bash (et al) in ages I wonder whether allowing a function definition (even without trailing commands) is not still hole? What if you defined a function 'ls() { evil... }'... could a CGI script making a call to 'ls' actually end up with the function instead of the real 'ls'?
Yes, but if you can control enviroment variable names then you can also set LD_PRELOAD and a whole load of other nasty enviroment variables.
Re: Re: CVE-2014-6271 – remote code execution through bash
#14Debian patched this 8 hours ago, Redhat issued a patch about 3 hours ago, I believe Centos is still vulnerable, Ubuntu 14.10 isn't patched yet, Ubuntu 14.04 was patched about 3 hours ago.
So I don't know if every architecture, and version is updated with the same speed.
Re: Re: CVE-2014-6271 – remote code execution through bash
#15wget https://oss.oracle.com/el4/SRPMS-updates/bash-3.0-27.0.2.el4...
rpm -ivh bash-3.0-27.0.2.el4.src.rpm
rpmbuild -ba /usr/src/redhat/SPECS/bash.spec
rpm -Uvh /usr/src/redhat/RPMS/x86_64/bash-3.0-27.0.2.x86_64.rpm
Re: Re: CVE-2014-6271 – remote code execution through bash
#16Not having worked with bash (et al) in ages I wonder whether allowing a function definition (even without trailing commands) is not still hole? What if you defined a function 'ls() { evil... }'... could a CGI script making a call to 'ls' actually end up with the function instead of the real 'ls'?
Re: Re: CVE-2014-6271 – remote code execution through bash
#17Earlier quoted context omitted.
Yes, but if you can control enviroment variable names then you can also set LD_PRELOAD and a whole load of other nasty enviroment variables.
...although some programs blacklist unsafe environment variable names. They all should be updated to also blacklist bash function values.
Re: Re: CVE-2014-6271 – remote code execution through bash
#18Procedure for Ubuntu 8.04 and other installations where binaries are not available (default 8.04 LTS server did not have m4 and bison dependencies), assuming that 1st patch has already been applied per https://news.ycombinator.com/item?id=8364385 :
#Executing as root
#assume your sources are in /src:
cd /src/
echo "getting m4..."
wget http://ftp.gnu.org/gnu/m4/m4-latest.tar.gz
tar zxvf m4-latest.tar.gz
cd m4-1.4.17/
./configure && make && sudo make install
cd /src/
echo "getting bison..."
wget http://ftp.gnu.org/gnu/bison/bison-3.0.tar.gz
tar zxvf bison-3.0.tar.gz
cd bison-3.0
./configure && make && sudo make install
echo "getting patch..."
cd /src/
#replace line below with wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-026 tomorrow
wget http://seclists.org/oss-sec/2014/q3/att-690/eol-pushback.patch
cd bash-4.3
patch -p0 Re: Re: CVE-2014-6271 – remote code execution through bash
#19Not having worked with bash (et al) in ages I wonder whether allowing a function definition (even without trailing commands) is not still hole? What if you defined a function 'ls() { evil... }'... could a CGI script making a call to 'ls' actually end up with the function instead of the real 'ls'?
Re: Re: CVE-2014-6271 – remote code execution through bash
#20Very thankful this made it out today.