Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Phar: PHP bug #73768: Memory corruption when loading hostile phar --EXTENSIONS-- ..

Decoded Output download

--TEST--
Phar: PHP bug #73768: Memory corruption when loading hostile phar
--EXTENSIONS--
phar
--FILE--
<?php
chdir(__DIR__);
try {
$p = Phar::LoadPhar('bug73768.phar', 'alias.phar');
echo "OK
";
} catch(PharException $e) {
    echo $e->getMessage();
}
?>
--EXPECTF--
internal corruption of phar "%sbug73768.phar" (truncated manifest header)

Did this file decode correctly?

Original Code

--TEST--
Phar: PHP bug #73768: Memory corruption when loading hostile phar
--EXTENSIONS--
phar
--FILE--
<?php
chdir(__DIR__);
try {
$p = Phar::LoadPhar('bug73768.phar', 'alias.phar');
echo "OK\n";
} catch(PharException $e) {
    echo $e->getMessage();
}
?>
--EXPECTF--
internal corruption of phar "%sbug73768.phar" (truncated manifest header)

Function Calls

None

Variables

None

Stats

MD5 2f1a63d9ced1bfc7992b02f7da5e882e
Eval Count 0
Decode Time 107 ms