The exploit requires > fastcgi_split_path_info ^(.+?\.php)(/.*)$; If I'm not using this feature of PHP, what can I put in this config value to prevent the exploit from working?
I don't think you can fix it there, because you probably need stuff like /foo.php?key=value to work. (Edit: not quite...see comment below) The try_files config mentioned on the page mitigates the issue.
PHP-FPM remote code execution bug exploited in the wild
21–30 of 139 posts
Re: PHP-FPM remote code execution bug exploited in the wild
#22Earlier quoted context omitted.
> The vast majority of PHP 7.0 installations don't use FastGCI and don't use nginx Do you have a source for this?
Common approach is to serve static files with nginx and use apache / php_mod to process. Why are you running php-fpm? Do you need to separate request's processes? The speed benefits of php-fpm are part of php 7 so using php_mod is faster now.
Because running just nginx is more convenient than nginx + Apache, where Apache is only used for mod_php. For me anyway. (I only use nginx + php-fpm for a Wordpress instance; I have tons of stuff in other languages running on top of nginx too.)
Re: PHP-FPM remote code execution bug exploited in the wild
#23Re: PHP-FPM remote code execution bug exploited in the wild
#24Earlier quoted context omitted.
> The vast majority of PHP 7.0 installations don't use FastGCI and don't use nginx Do you have a source for this?
Common approach is to serve static files with nginx and use apache / php_mod to process. Why are you running php-fpm? Do you need to separate request's processes? The speed benefits of php-fpm are part of php 7 so using php_mod is faster now.
Not sure how common that really is, I've personally never set things up like that and just use nginx + php-fpm and don't know anyone that still uses apache with mod_php.
Re: PHP-FPM remote code execution bug exploited in the wild
#25Re: PHP-FPM remote code execution bug exploited in the wild
#26Earlier quoted context omitted.
> The vast majority of PHP 7.0 installations don't use FastGCI and don't use nginx Do you have a source for this?
Common approach is to serve static files with nginx and use apache / php_mod to process. Why are you running php-fpm? Do you need to separate request's processes? The speed benefits of php-fpm are part of php 7 so using php_mod is faster now.
Re: PHP-FPM remote code execution bug exploited in the wild
#27Earlier quoted context omitted.
> The vast majority of PHP 7.0 installations don't use FastGCI and don't use nginx Do you have a source for this?
Common approach is to serve static files with nginx and use apache / php_mod to process. Why are you running php-fpm? Do you need to separate request's processes? The speed benefits of php-fpm are part of php 7 so using php_mod is faster now.
Re: PHP-FPM remote code execution bug exploited in the wild
#28This is patched in 7.1.33.
Re: PHP-FPM remote code execution bug exploited in the wild
#29For those of you not speaking Russian, Russian for ‘dick’ & ‘cunt’ (also meaning ‘something very bad happening’) are in the title.
Re: PHP-FPM remote code execution bug exploited in the wild
#30Earlier quoted context omitted.
Common approach is to serve static files with nginx and use apache / php_mod to process. Why are you running php-fpm? Do you need to separate request's processes? The speed benefits of php-fpm are part of php 7 so using php_mod is faster now.
Why are you not running php-fpm with Apache is a more pressing question IMO.