Bug 17245

Summary: upload form could be used to read any file on a system
Product: [Retired] Red Hat Linux Reporter: Arenas Belon, Carlo Marcelo <carenas>
Component: phpAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 7.1Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-09-11 18:49:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch for upload bug, build from zeev instructions on bugzilla none

Description Arenas Belon, Carlo Marcelo 2000-09-05 07:45:59 UTC
as explained on http://bugs.php.net/bugs.php?id=6496, a bug on the
generation of internal variables of PHP could be used to read any file on a
system (now on bugtraq)

php-4.0.2 is affected and previous versions should be also (tested on RC2
at least)

the attached patch fixes the problem.

upgrade to php-4.0.2 is a good idea too, spec on bug 17171 should be used
for this

Comment 1 Arenas Belon, Carlo Marcelo 2000-09-05 07:48:22 UTC
Created attachment 3239 [details]
patch for upload bug, build from zeev instructions on bugzilla

Comment 2 Nalin Dahyabhai 2000-09-07 15:17:28 UTC
An errata is being prepped.

Comment 3 Nalin Dahyabhai 2000-09-11 18:49:45 UTC
Hang on -- the bug is only a problem on poorly-coded pages, and the fix in CVS
appears to actually break certain other things which it's not supposed to (which
looks like it might actually be a problem in the hash table implementation in
Zend).

Comment 4 Arenas Belon, Carlo Marcelo 2000-10-17 17:29:37 UTC
obsoleted by 18965.
this patch is *somehow* included on 4.0.3pl1