thornmaker Wrote:
-------------------------------------------------------
> An injection can be massaged to have any [\w\s] to
> [^\w\s] ratio needed... I just don't see that
> approach ever working.
[snip]
> $xxxxxxx=.1.eval,$xxxxxxx($xxxxxxx('na'+status+('me'),1))
@thornmaker: I have the feeling your probably right.
But I wonder, what about looking at unique "words" and using that count in the ratio as well, as opposed to just characters classes. That is, in the vector that thronmaker posted, I see 6 unique 'words':
$xxxxxxx
1
eval
na
status
me
Although you can pretty much infinitely pad out your variable names, to a certain extent you can make that irrelevant, because a variable is only useful if it's used. I mean that, a variable will have to be assigned and called which means we should see it at least twice (in many vectors, though not all).
If that approach is taken then a variable like $x is the same as $xxxxxxxxxxxxx so long as we can 'mark' it essentially as a variable (based on the fact that it's used multiple times) and weight it accordingly.
EDIT: This can be bypassed by inserting comments containing natural looking language or by assigning values to strings that are never used, but I think it has promise:
$str_length_weight = count($unique_words)/str_len($vector); //just pseudo code, but you get the idea.
<wishful_thinking type='unrealistic'>
what phpids needs is a fully sandboxed universal parser
</wishful_thinking>
-tx @ lowtech-labs.org
Edited 3 time(s). Last edit at 01/21/2008 09:58PM by tx.