Re: unserialize() data from untrusted source

From: Date: Mon, 06 Sep 2004 09:17:36 +0000
Subject: Re: unserialize() data from untrusted source
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-12610@lists.php.net to get a copy of this message
As I said, over the years I've done both, and this is what I've settled on as the most practical.
    Then you should have learned by now that verifying your
    data's integrity is a mandatory task when designing any
    client-side session system.  Otherwise, attackers can inject
    any kind of data into your system where the falsified data
    will be viewed as 'trusted'.
    Once you add the integrity check, you have also eliminated
    the possibility that arbitrary classes could be instantiated.
    - Sascha


« previous php.internals (#12610) next »