#26220 [Opn->Bgs]: dba_open read arbitrary files
ID: 26220
Updated by: helly@php.net
Reported By: evgeny at 100mb dot ru
-Status: Open
+Status: Bogus
Bug Type: DBM/DBA related
Operating System: FreeBSD 4.7
PHP Version: 4.3.4
-Assigned To:
+Assigned To: helly
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Don't use gdbm then.
Previous Comments:
------------------------------------------------------------------------
[2003-11-12 09:57:08] evgeny at 100mb dot ru
Description:
------------
dba_open() creates *.db file with fragments of system files or source
php scripts
Reproduce code:
---------------
<?php
$db=dba_open("/var/tmp/test.db","n", "gdbm");
?>
Expected result:
----------------
Create test.db only
Actual result:
--------------
#cat /var/tmp/test.db
...
127.0.0.1 localhost localhost.my.domain
#
# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend
...
(pert of my /etc/hosts here! :( and part of my /etc/services file below
:-()
....
hylafax 4559/tcp #HylaFAX client-server protocol
rfa 4672/tcp #remote file access server
rfa 4672/udp #remote file access server
commplex-main 5000/tcp
commplex-main 5000/udp
.....
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26220&edit=1
Thread (2 messages)