note 61256 deleted from function.unserialize by aharvey

From: Date: Tue, 06 Nov 2012 01:25:58 +0000
Subject: note 61256 deleted from function.unserialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191698@lists.php.net to get a copy of this message
Note Submitter: Jules ---- "Moreover, you must be *very* careful when using eval() as it can be easily used to do something nasty." Actually, you should probably be equally careful with unserialize, as using it might result in code from your (or standard PHP) classes being executed when you aren't expecting it. It's clearly harder to exploit, but the possibility is there. Therefore, only unserialize data that you know you generated yourself (either because it's stored where you put it, or because its signed, or has been validated in some other way).

« previous php.notes (#191698) next »