php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56168 Security problem
Submitted: 2004-08-15 16:30 UTC Modified: 2013-12-03 11:37 UTC
From: bool at boolsite dot net Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 4.3.3 OS: Debian 3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bool at boolsite dot net
New email:
PHP Version: OS:

 

 [2004-08-15 16:30 UTC] bool at boolsite dot net
Description:
------------
Imagick does not respect SAFE_MODE restrictions. It can open files owned by other users, and does not apply the open_base_dir restriction.


Reproduce code:
---------------
<?php
$image='/root/test.jpg';

$handle=imagick_readimage($image);

if(imagick_iserror($handle))
    echo 'cant\'t read : ',$image,' <br>',
        imagick_failedreason($handle),imagick_faileddescription($handle);
else echo 'OK !';
?>

Expected result:
----------------
Image should not be accessed.

Actual result:
--------------
Image is correctly read.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-03 11:37 UTC] mike@php.net
-Status: Open +Status: Not a bug
 [2013-12-03 11:37 UTC] mike@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 09:01:29 2024 UTC