#23179 [Fbk->Csd]: PEAR.php and others are installed chmod 666 by default
| From: | sniper@php.net | Date: | Sun, 18 May 2003 16:53:15 +0000 |
| Subject: | #23179 [Fbk->Csd]: PEAR.php and others are installed chmod 666 by default | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16445@lists.php.net to get a copy of this message | ||
ID: 23179
Updated by: sniper@php.net
Reported By: Marius at LowVoice dot nl
-Status: Feedback
+Status: Closed
Bug Type: PEAR related
Operating System: debian linux
PHP Version: 4.3.1
Assigned To: ssb
Previous Comments:
------------------------------------------------------------------------
[2003-05-12 09:58:10] meebey@php.net
this bug is fixed in PEAR 1.1, it was a problem with Config... pear
config-show should show you a umask of 22 if not upgrade your PEAR
installation..
the bug was that the umask was wrong calculated, and the installed
packages got the wrong chmods...
for already installed packages the chmod must be changed manualy, goto
the PEAR installation directy and do:
find -perm 666 -type f -exec chmod og-w {} \;
this should remove the write right for all wrong chmoded package
files....
------------------------------------------------------------------------
[2003-04-28 03:56:28] arnaud@php.net
changing status (alan got me again ;)
------------------------------------------------------------------------
[2003-04-28 03:51:42] arnaud@php.net
Assigning to stig.
------------------------------------------------------------------------
[2003-04-12 12:19:18] Marius at LowVoice dot nl
I've found that on our systems files in PEAR
(/usr/local/php/share/pear/*)
have unsafe modes (666)
basicaly this enables anyone on the system that has the ability to edit
files to change the files to their liking.
For instance the MAIL module of PEAR could easily be modified to send
duplicates of all mail send by PEAR to their address.
I've been able to reproduce this with a clean install of php4.3.1 that
i've downloaded today.
I think it's a pretty straitforward issue that doesn't require more
info on the matter, however i'll be happy to be of more assistance if
needed.
Marius Karthaus
Senior Systems Administrator
LowVoice.com
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23179&edit=1