Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 134975

Summary: CAN-2004-0959 PHP arbitrary file creation
Product: Red Hat Enterprise Linux 3 Reporter: Josh Bressers <bressers>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: tao
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-21 18:54:54 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 from upstream CVS none

Description Josh Bressers 2004-10-07 16:48:30 UTC
This issue was reported to bugtraq on 2004-09-15
http://www.securityfocus.com/archive/1/375370

Bad array parsing in the rfc1867.c file could lead to the overwriting
of the $_FILES array, which in turn could allow an attacker to write
arbitrary files with the permission of the user running apache.

This issue also affects RHEL2.1

Comment 1 Josh Bressers 2004-10-07 18:02:37 UTC
Created attachment 104908 [details]
Patch from upstream CVS

Comment 2 Joe Orton 2004-10-11 14:30:38 UTC
OK.  This is a (somewhat) subtle trick to bypass the sanity checking
of the filename used for the uploaded file.

But the code to do sanity checking of the filename was itself not
added until after 4.3.2, so in fact no clever tricks are needed at all
for this version.

Comment 3 Mark J. Cox 2004-12-21 18:54:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2004-687.html