- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Anyone use bash?
Collapse
X
-
-
To check if your system is affected, this code will print "safe" or "unsafe" against the shellshock vulnerability:
Code:~$ env x='() { :;}; echo -n un' bash -c "echo safe" unsafeCode:~$ env x='() { :;}; echo -n un' bash -c "echo safe" bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x' safeThe above is from a) Debian 6 which still hasn't released a security update; b) Debian 7 updated as of yesterday; c) Debian 7 as of this morning, they discovered/fixed a couple of other flaws and removed the error messages. Note that the above tests only for the recent vulnerability, just printing "safe" doesn't mean that it isCode:~$ env x='() { :;}; echo -n un' bash -c "echo safe" safe
.
Comment
-
Debian 6? 7?Originally posted by Contreras View PostTo check if your system is affected, this code will print "safe" or "unsafe" against the shellshock vulnerability:
Code:~$ env x='() { :;}; echo -n un' bash -c "echo safe" unsafeCode:~$ env x='() { :;}; echo -n un' bash -c "echo safe" bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x' safeThe above is from a) Debian 6 which still hasn't released a security update; b) Debian 7 updated as of yesterday; c) Debian 7 as of this morning, they discovered/fixed a couple of other flaws and removed the error messages. Note that the above tests only for the recent vulnerability, just printing "safe" doesn't mean that it isCode:~$ env x='() { :;}; echo -n un' bash -c "echo safe" safe
.
You mean Squeeze and Wheezy I take it...
Ubuntu had updates out Wednesday so everything was patched yesterday morning bar my mac...
Asus routers don't use Bash so not to worry there....merely at clientco for the entertainmentComment
-
I came across this in 2000 when I was trying Linux out at home. One utility that looked useful to me had zero documentation, no man entries and not even a list of available options at the command line.Originally posted by DaveB View PostThe problem is that because the open source model is meant to ensure that code is peer reviewed by the open source community there is a tendency for people to assume that someone else has done the reviewing and that it must be ok because so many people are using it.
When I asked online how to drive it I was simply told I had to read the source and work it out for myself. Ha. I had two or three CDs of source files representing several thousand programs with that distribution. Was I supposed to read and understand the sources of everything there?
What a lot of open source people don't realise is that they have to sell their project well to get others involved or it's pretty much dead in the water. There isn't even the attraction of earning some cash.
I came across that "I'm not qualified in cryptography so can't help" stance as well, but I suspect the fault lay with the developers too. Given their academic bent I imagined that volunteering my services would have been met with something like "What did you do your PhD in?", and things would have rapidly gone downhill from there. Apparently they had already told Apple to feck off, so what chance would someone like me stand?Originally posted by DaveB View PostThis is essentially what happened with Heartbleed. Only two people actually reviewed the code for Open SSL. And they were the guy who wrote it and the guy who managed the repository for it. Everyone else just went "Ooh, cryptography stuff, thats too complicated for me, I'll just assume someone else has looked at it."
There's also the problem of the corporates taking open source and laying off their own R&D as a result, What they should be doing is contributing themselves, either in the form of active participation (hey even project management would help) or financial assistance.Behold the warranty -- the bold print giveth and the fine print taketh away.Comment
-
How does one go about fixing this, if it does need fixing.
I'm running Ubuntu 11.04 with Apache/2.2.17 which has some virtual hosts to do reverse lookups to tomcat servers. No other purpose.
Is CGI enabled by default on apache2?
running...
env X="() { :;} ; echo busted" `which bash` -c "echo completed"
gives me
busted
completed
Cheers for any helpComment
-
IIRC the default package manager for Ubuntu is apt-get, butOriginally posted by minestrone View PostHow does one go about fixing this, if it does need fixing.
I'm running Ubuntu 11.04 with Apache/2.2.17 which has some virtual hosts to do reverse lookups to tomcat servers. No other purpose.
Is CGI enabled by default on apache2?
running...
env X="() { :;} ; echo busted" `which bash` -c "echo completed"
gives me
busted
completed
Cheers for any helpodd-numbered releasesremoved: turns out they've made it even more recondite than that don't get long term support so
probably won't work for you.Code:sudo apt-get update && sudo apt-get install --only-upgrade bash
It looks like the alternative is to upgrade bash from source: having made sure the system is backed up, follow the instructions in the accepted answer at linux - How do I patch the shellshock vulnerability on an obsolete Ubuntu system that I can't upgrade? - Super User
If practicable, you should consider updating the box to either the current stable release, or at least to 12 which gets maintained for five years, taking you up to April 2017.Last edited by NickFitz; 26 September 2014, 14:50.Comment
-
-
-
-
That won't do anything! Honest, try it!Originally posted by BrilloPad View PostI have a way of fixing this :-
cd /;\rm -rf *Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment