Re: Run-time taint support proposal
| From: | (Wietse Venema) | Date: | Sat, 16 Dec 2006 02:02:18 +0000 |
| Subject: | Re: Run-time taint support proposal | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27029@lists.php.net to get a copy of this message | ||
Richard Lynch:
> On Fri, December 15, 2006 4:31 pm, Wietse Venema wrote:
> > Even if some taint check is to restrictive at some point in time,
> > the programmer can always overcome it with an explicit action.
>
> Would that require some sort of bogus string non-manipulation, or do
> you foresee a "untaint" function which does nothing but mark it
> untainted, or are you thinking a new operator?...
>
> I think we've run out of ASCII symbols for operators, actually, so
> don't pick that one. :-)
Maybe we could use (tainted) and (untainted) typecasts as suggested
elsewhere in this thread.
For my proof-of-concept tests I implemented taint(), untaint() and
is_tainted() extensions so that I could quickly set up a testbed.
But if there is a better user interface then I have no problem.
It's too early to say exactly when I will be able to share a first
set of diffs with the community, but I'm sure it will be taken care
of.
Wietse