]> granicus.if.org Git - php/commit
fix potentially major security hole: modification/creation of files in .phar director...
authorGreg Beaver <cellog@php.net>
Thu, 15 May 2008 16:09:01 +0000 (16:09 +0000)
committerGreg Beaver <cellog@php.net>
Thu, 15 May 2008 16:09:01 +0000 (16:09 +0000)
commitde5aaaa74c319e4fd2cdcec0cfb57c0ae1edc14a
tree0a97a926b504d1bc3b1760dfeca589f49e0fe476
parent8cc335a0da2ec6d96ed9afd281d11b1cc1ffb33c
fix potentially major security hole: modification/creation of files in .phar directory enabled in many locations
which then allows easy creation of tar/zip-based phar archives with a simple rename even when phar.readonly=1.  Plug the hole very tightly, allowing read access to
files, and also excluding them from opendir() output
17 files changed:
ext/phar/dirstream.c
ext/phar/phar_internal.h
ext/phar/phar_object.c
ext/phar/stream.c
ext/phar/tests/030.phpt
ext/phar/tests/addfuncs.phpt
ext/phar/tests/mkdir.phpt
ext/phar/tests/mounteddir.phpt
ext/phar/tests/phar_buildfromiterator4.phpt
ext/phar/tests/phar_copy.phpt
ext/phar/tests/phar_extract2.phpt
ext/phar/tests/phar_offset_check.phpt
ext/phar/tests/phar_offset_get_error.phpt
ext/phar/tests/tar/dir.phpt
ext/phar/tests/tar/tar_003.phpt
ext/phar/tests/zf_test.phpt
ext/phar/util.c