svn: /phpdoc/en/trunk/reference/mongo/ security.xml

From: Date: Fri, 11 Feb 2011 14:47:05 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/ security.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7765@lists.php.net to get a copy of this message
danbrown Fri, 11 Feb 2011 14:47:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308258 Log: Changes password -> username in the text, as pointed out by (Raja dot Kapur at gmail dot com). Changed paths: U phpdoc/en/trunk/reference/mongo/security.xml Modified: phpdoc/en/trunk/reference/mongo/security.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/security.xml 2011-02-11 14:38:36 UTC (rev 308257) +++ phpdoc/en/trunk/reference/mongo/security.xml 2011-02-11 14:47:05 UTC (rev 308258) @@ -21,7 +21,7 @@ <para> Someone could subvert this by getting - <emphasis>http://www.example.com?password[$ne]=foo</emphasis>, which PHP + <emphasis>http://www.example.com?username[$ne]=foo</emphasis>, which PHP will magically turn into an associative array, turning your query into <literal>$collection->find(array("username" => array('$ne' => "foo")))</literal>, which will return all users not named "foo" (all of your users, probably).

« previous php.doc.cvs (#7765) next »