Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.
Permalink
Browse files
Ensure the php file exists (#475)
Ensure the php file exists before invoking php-fpm. Mitigates CVE-2019-11043 https://bugs.php.net/bug.php?id=78599
Tested with https://github.com/neex/phuip-fpizdam
  • Loading branch information
ProCycleDev authored and alessfg committed Oct 28, 2019
1 parent 3401302 commit f4265ea0fac8987740d9d08e5bacaa5b6bdb7055
Showing 1 changed file with 2 additions and 0 deletions.
@@ -92,6 +92,8 @@ Recipe
# pattern with front controllers other than update.php in a future
# release.
location ~ '\.php$|^/update.php' {
# Ensure the php file exists. Mitigates CVE-2019-11043
try_files $uri =404;
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
# Security note: If you're running a version of PHP older than the
# latest 5.3, you should have "cgi.fix_pathinfo = 0;" in php.ini.

0 comments on commit f4265ea

Please sign in to comment.