Dotclear


Ignore:
Timestamp:
08/21/18 07:11:18 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.14
Message:

Unregister phar wrapper in order to avoid PHP Phar extension vulerability, see  https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It's-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf - Thank's DaScritch? for reporting this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/prepend.php

    r3808 r3814  
    103103if (function_exists('stream_wrapper_unregister')) { 
    104104    $special_wrappers = array_intersect(array('http', 'https', 'ftp', 'ftps', 'ssh2.shell', 'ssh2.exec', 
    105         'ssh2.tunnel', 'ssh2.sftp', 'ssh2.scp', 'ogg', 'expect'), stream_get_wrappers()); 
     105        'ssh2.tunnel', 'ssh2.sftp', 'ssh2.scp', 'ogg', 'expect', 'phar'), stream_get_wrappers()); 
    106106    foreach ($special_wrappers as $p) { 
    107107        @stream_wrapper_unregister($p); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map