Re:CVE-2014-6271: Remote code execution through bash
by gwillem on Wednesday September 24, 2014 @04:57PM
(#8364091)
This is quite stealthy way to scan, as Accept headers are generally not logged:
Found nothing so far though. IMHO the number of Bash CGI scripts in the wild must be pretty low.
[ Parent
| on HN ]
Re:CVE-2014-6271: Remote code execution through bash
by antocv on Wednesday September 24, 2014 @05:40PM
(#8364304)
Maybe the bash is invoked on some other request path, not just / which you are scanning.
I would go with /login and such, or write a crawler to parse out where the login/logout URLs are and try those.
Re:CVE-2014-6271: Remote code execution through bash
by dremel on Wednesday September 24, 2014 @06:35PM
(#8364549)
Would disabling CGI e.g. adding Option -ExecCIG to httpd.conf for Apache prevent exploitation via the web-server?
Re:CVE-2014-6271: Remote code execution through bash
by mr_brown on Wednesday September 24, 2014 @05:34PM
(#8364273)
import os
os.putenv("ANYTHING", "() { :;}; echo bu")
os.system("bash")
If this works (and it does) that means it's enough for a CGI script to invoke bash. It doesn't even have to be written in bash.