Live data from Hacker News

New PHP Vulnerability:?-s may expose source code for mod_cgi

php.net

11–20 of 65 posts

Re: New PHP Vulnerability:?-s may expose source code for mod_cgi

#12
post #7

Wow, it's pretty scary that a vulnerability as simple as this has been around for 8 years!

Yeah, but nobody's run PHP in this silly CGI configuration for 10 years.

Yeah, last time I worked with php was 2002 and we were already on mod_php.

Re: New PHP Vulnerability:?-s may expose source code for mod_cgi

#13
post #7

Wow, it's pretty scary that a vulnerability as simple as this has been around for 8 years!

Yeah, but nobody's run PHP in this silly CGI configuration for 10 years.

I wouldn't be so sure: http://wiki.dreamhost.com/Php#PHP_on_DreamHost

Re: New PHP Vulnerability:?-s may expose source code for mod_cgi

#14

This vulnerability is about as bad as it gets, and my heart stopped while I was reading the intro (it's so trivially simple to compromise a site). Then I reached this sentence, which I felt needed to be bolded and underlined: A large number of sites run PHP as either an Apache module through mod_php or using php-fpm under nginx. Neither of these setups are vulnerable to this. . Thank God. That said, some blackhats ar…

Given how long this has been a problem, it would be interesting to look back through access logs to find attempts to use this.

Re: New PHP Vulnerability:?-s may expose source code for mod_cgi

#18
post #7

Wow, it's pretty scary that a vulnerability as simple as this has been around for 8 years!

Yeah, but nobody's run PHP in this silly CGI configuration for 10 years.

Dutch ISP KPN actually has a hosting service that runs PHP primarily in CGI mode: https://www.google.com/#hl=en&output=search&sclient=... yields a massive amount of vulnerable sites.

Re: New PHP Vulnerability:?-s may expose source code for mod_cgi

#19

Earlier quoted context omitted.

Yeah, but nobody's run PHP in this silly CGI configuration for 10 years.

I wouldn't be so sure: http://wiki.dreamhost.com/Php#PHP_on_DreamHost

That's horrible! I would never use a host that relied on CGI for anything. There's a reason they came out with FastCGI.

Re: New PHP Vulnerability:?-s may expose source code for mod_cgi

#20

This vulnerability is about as bad as it gets, and my heart stopped while I was reading the intro (it's so trivially simple to compromise a site). Then I reached this sentence, which I felt needed to be bolded and underlined: A large number of sites run PHP as either an Apache module through mod_php or using php-fpm under nginx. Neither of these setups are vulnerable to this. . Thank God. That said, some blackhats ar…

Additionally:

The vulnerability can only be exploited if the HTTP server follows a fairly obscure part of the CGI spec. Apache does this, but many other servers do not.

From: http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/

Post reply on HN