44 points · by crazydoggers · 12y ago · 34 comments
Commands can be:
portscan (scans a host for open ports)
tcpflood (try to keep 1000 TCP connections open to a host for a specified period of time);
udpflood (send UDP packets to all ports on a host with an payload of a specified number of 'A' characters for a specified period of time);
httpflood( send HTTP requests to a host for specified period of time [with HTTP Keep-Alive header]);
shell (execute arbitrary commands on the host);
google (use google to find other hosts to infect [targets modules.php]);
version (returns bot version)
All commands send status back via IRC.
There are several brazilian portuguese strings and comments, although is not clear if the author is brazilian.
Interesting stuff.
This requires a webserver to be running CGI (mod_cgi or whatever) and the get request has to go to a valid page, correct? So in this case `GET /cgi-bin/hello ... yada yada yada` /cgi-bin/hello has to be a valid location.
So, explain to me how this is any worse than any remote execution vulnerability in something like PHP?
Environment variables are passed around all the time.
Why does it need to be worse than something you might find in PHP? If it's a worm that's been found in the wild spreading by exploiting a remote execution vulnerability in bash and cgi, isn't that bad enough?
Because that's what it's being hyped as, or more correctly hyped as "OH MY GOD IT'S THE END OF EVERYTHING" when in reality it appears that if you're not running ssh with forcecommands or a webserver with CGI enabled, you don't care, just like if you didn't run a webserver with PHP enabled a PHP vulnerability wouldn't really be much of an issue to you.
From what I can tell you are affected only if you use CGI or the like somewhere in your response chain. AFAIK most people use http reverse proxies, phpfm, wsgi and the like. They are all unaffected.
What I don't understand is why everybody seems to think its necessary to start posting every script kiddies attempt at spreading their crappy ddos / botnet scripts via the vulnerability.
Are you running sshd with ForceCommand? - Get Patching (when a patch is out)
Are you running a webserver that uses 'old style' CGI (are you really sure you're not?) - Get Patching (when a patch is out)
Are you absolutely sure neither of the above is true? Then patch bash in your next patch cycle.
The super-hype vulnerabilities are getting is just muddying the waters when trying to get actual information.
Hypothetical: some GPG library is just a wrapper around /usr/bin/gpg. Maybe that library uses an environment variable to set a password that doesn't show up in ps. Maybe that library used system() instead of execve(). That password is now an attack vector.
See also /usr/bin/mail called by mail() functions in scripting languages, /bin/hostname, /bin/uname, etc. If any user-controlled variable is set in the environment, those calls become potential attack vectors
http://blog.sucuri.net/2014/09/bash-vulnerability-shell-shoc...