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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Fri Aug 07 14:01:26 2020 UTC