note 56715 added to security.variables

From: Date: Tue, 13 Sep 2005 10:50:17 +0000
Subject: note 56715 added to security.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-95105@lists.php.net to get a copy of this message
One thing I would repeat in the docs here is what information actually comes from the user. Many people think a Cookie, since it's written by PHP, was safe. But the fact is that it's stored on the user's computer, transferred by the user's browser, and thus very easy to manipulate. So, it'd be handy to mention here again that: CGI parameters in the URL, HTTP POST data and cookie variables are considered "user data" and thus need to be validated. Session data and SQL database contents only need to be validated if they came from untrustworthy sources (like the ones just mentioned). Not new, but I would have expected this info under this headline, at least as a short recap plus linlk to the actual docs. ---- Manual Page -- http://www.php.net/manual/en/security.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56715 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56715&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56715&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56715&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56715&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56715&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56715&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56715&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95105) next »