News for hackers. Stuff that matters.
Re:Every C99.php shell is backdoored by zimbatm on Tuesday June 24, 2014 @07:24AM (#7937100)
The problem is when unexpected variables are overwritten. It would be better to have a mandatory list of allowed variables that can be extracted.

    $login = '1234';
    extract(array('login'=>true, 'messsage'=>'hacker'), 'message');
    var_dump($login_, $message);
    // => $login='1234', $message='hacker'
(pardon my rusty PHP)
Re:Every C99.php shell is backdoored by ars on Tuesday June 24, 2014 @02:23PM (#7939452)
> variables are overwritten. It would be better to have a mandatory list of allowed variables that can be extracted.

You can set the EXTR_SKIP flag to do something like that. There are a bunch of other flags as well to control how it works.