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 147808

Summary: php curl open_basedir bypass
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: deisenst, leonard-rh-bugzilla, mjc
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20041215
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-28 18:53:25 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 ubuntu to fix this issue
none
Updated patch for CAN-2004-1392 none

Description Josh Bressers 2005-02-11 16:02:40 UTC
PHP 4.0 with cURL functions allows remote attackers to bypass the open_basedir
setting and read arbitrary files via a file: URL argument to the curl_init function.

You can verify this issue with this simple php example.

<?php
$ch = curl_init("file:///etc/parla");
$file=curl_exec($ch);
echo $file
?>

Comment 1 Josh Bressers 2005-02-11 16:02:40 UTC
Created attachment 110975 [details]
Patch from ubuntu to fix this issue

Comment 2 Josh Bressers 2005-02-11 16:06:12 UTC
This issue should also affect RHEL2.1.

Comment 3 Marc Deslauriers 2005-02-26 16:45:13 UTC
Created attachment 111457 [details]
Updated patch for CAN-2004-1392

from Ubuntu advisory USN-66-2

Comment 4 Joe Orton 2005-03-02 16:07:54 UTC
Safe mode bypasses are not considered to have "security" severity,
since the PHP interpreter does not really provide a sandbox in which
scripts are executed.

Comment 5 Josh Bressers 2005-04-28 18:53:25 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-2005-405.html