News for hackers. Stuff that matters.
Re:Another ShellShock exploit in the wild by general_failure on Thursday September 25, 2014 @12:16PM (#8367936)
Can someone explain why apache cgi use bash? You can of course setup an environment without bash and execute your scripts. It's just an argument to exec*() after all.
Re:Another ShellShock exploit in the wild by ZoFreX on Thursday September 25, 2014 @12:56PM (#8368167)
It doesn't necessarily. But what it does do is pass information about the request in environment variables - that's step 1: attacker controls the contents of an environment variable. Then, if at any point the script invokes bash, or calls something like system(), exec() or popen() and has bash set as the default shell, then bash will run, with those environment variables set. That's step 2, and the server is now the attacker's.
Re:Another ShellShock exploit in the wild by danielweber on Thursday September 25, 2014 @12:25PM (#8367986)
All the modern webserver<->framework interfaces don't call bash directly, but they may end up calling it indirectly in one of a dozen different ways.
Re:Another ShellShock exploit in the wild by tlrobinson on Thursday September 25, 2014 @12:56PM (#8368175)
And environment variables are typically inherited by subprocesses, so if the CGI script executes anything (that executes anything, recursively) that uses bash (including system() if /bin/sh is bash, e.x. on OS X) this bug becomes exploitable?