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-- Bug #73029: Missing type check when unserializing SplArray --FILE-- <?php try { $..
Decoded Output download
--TEST--
Bug #73029: Missing type check when unserializing SplArray
--FILE--
<?php
try {
$a = 'C:11:"ArrayObject":19:0x:i:0;r:2;;m:a:0:{}}';
$m = unserialize($a);
$x = $m[2];
} catch(UnexpectedValueException $e) {
print $e->getMessage() . "
";
}
?>
DONE
--EXPECT--
Error at offset 10 of 19 bytes
DONE
Did this file decode correctly?
Original Code
--TEST--
Bug #73029: Missing type check when unserializing SplArray
--FILE--
<?php
try {
$a = 'C:11:"ArrayObject":19:0x:i:0;r:2;;m:a:0:{}}';
$m = unserialize($a);
$x = $m[2];
} catch(UnexpectedValueException $e) {
print $e->getMessage() . "\n";
}
?>
DONE
--EXPECT--
Error at offset 10 of 19 bytes
DONE
Function Calls
None |
Stats
MD5 | f560a5a274574adb2d76ada3ff0d151c |
Eval Count | 0 |
Decode Time | 76 ms |