Skip to content

Commit 8a22540

Browse files
committed
Fix bug #67060: use default mode of 660
1 parent 4b48b29 commit 8a22540

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ PHP NEWS
1010
. Fixed memory corruption in openssl_x509_parse() (CVE-2013-6420).
1111
(Stefan Esser).
1212

13+
- FPM:
14+
. Fixed bug #67060 (sapi/fpm: possible privilege escalation due to insecure
15+
default configuration) (CVE-2014-0185). (Stas)
16+
1317
11 Jul 2013, PHP 5.3.27
1418

1519
- Core:

sapi/fpm/fpm/fpm_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int fpm_unix_resolve_socket_premissions(struct fpm_worker_pool_s *wp) /* {{{ */
3535
/* uninitialized */
3636
wp->socket_uid = -1;
3737
wp->socket_gid = -1;
38-
wp->socket_mode = 0666;
38+
wp->socket_mode = 0660;
3939

4040
if (!c) {
4141
return 0;

sapi/fpm/php-fpm.conf.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ listen = 127.0.0.1:9000
158158
; permissions must be set in order to allow connections from a web server. Many
159159
; BSD-derived systems allow connections regardless of permissions.
160160
; Default Values: user and group are set as the running user
161-
; mode is set to 0666
161+
; mode is set to 0660
162162
;listen.owner = @php_fpm_user@
163163
;listen.group = @php_fpm_group@
164-
;listen.mode = 0666
164+
;listen.mode = 0660
165165

166166
; List of ipv4 addresses of FastCGI clients which are allowed to connect.
167167
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original

0 commit comments

Comments
 (0)