Req #69090 [Com]: add prefix/xor to cache keys/check permissions or separate caches

From: Date: Thu, 24 Sep 2015 18:32:23 +0000
Subject: Req #69090 [Com]: add prefix/xor to cache keys/check permissions or separate caches
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196217@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69090&edit=1

 ID:                 69090
 Comment by:         toni at lygon dot net
 Reported by:        simon at ikanobori dot jp
 Summary:            add prefix/xor to cache keys/check permissions or
                     separate caches
 Status:             Analyzed
 Type:               Feature/Change Request
 Package:            opcache
 Operating System:   linux/debian
 PHP Version:        5.6.5
 Block user comment: N
 Private report:     N

 New Comment:

I can replicate this with php5-fpm 5.5.9+dfsg-1ubuntu4.11.

I baffled how a huge security / usability problem like this can exist, yet nobody gives a poop about
it.
We've got a server with multiple sites chrooted using the same directory structure inside the
chrooted /.
Obviously this causes fatal problems as there are conflicts, like index.php in those hosts causing
it to randomly load from any of those.

Because of this, opcache can not be used as we can't change the directory structure.

Someone, please investigate this!


Previous Comments:
------------------------------------------------------------------------
[2015-07-26 17:10:12] thesparkdevelopment at gmail dot com

noescape at centrum dot sk:

I think open_basedir is useless in chroot

------------------------------------------------------------------------
[2015-07-16 19:09:25] noescape at centrum dot sk

I cannot seem to replicate this... But I got open basedir enabled. Can somebody verify that open
basedir solve it?

------------------------------------------------------------------------
[2015-06-14 09:04:02] thesparkdevelopment at gmail dot com

4 month for critical fix... it's bad...

------------------------------------------------------------------------
[2015-02-22 01:21:14] rasmus@php.net

Yes, it was one of the features we lost by dropping APC. It has been on our radar for a while to
fix, but nobody has gotten to writing the code yet.

------------------------------------------------------------------------
[2015-02-21 11:15:14] simon at ikanobori dot jp

I've written a more extensive post with more examples here: https://ikanobori.jp/php55-opcache-shared-hosting.html

Inodes seem to be a good idea, I think APC does it that way?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=69090


--
Edit this bug report at https://bugs.php.net/bug.php?id=69090&edit=1


Thread (38 messages)

« previous php.bugs (#196217) next »