Re: Tainted Mode Decision

From: Date: Mon, 19 Nov 2007 01:02:28 +0000
Subject: Re: Tainted Mode Decision
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-33274@lists.php.net to get a copy of this message
Stefan Esser: [ Charset ISO-8859-15 unsupported, converting... ] > Hi Steph, > > > > > In a preliminary release for feedback purposes you talk about wrong > > assumptions? Surely this is the whole point of having a preliminary > > release for feedback :) > yes of course it is preliminary. But the whole idea is flawed. It is > assumed that a single function exists that makes user input secure for > HTML or for SQL. But infact there is not. In my own code, the htmlentities() conversion function makes data safe ONLY for HTML but NOT for SHELL, MYSQL*, etc. Likewise, the mysqli_real_escape_string() conversion function makes data safe ONLY for MYSQLI but NOT for MYSQL, SHELL, HTML, etc. Ditto for the shell conversion function. I suppose you get the idea. By the way, I do aim for performance that is acceptable in production environments, because that is where security matters most. Right now, the hit is in the 2% range. I hope this will be acceptable. Wietse

« previous php.internals (#33274) next »