in reply to Re^2: Untaint a string match, regular expression.
in thread Untaint a string match, regular expression.
But that is rather easily bypassed:
C:\Users\HomeAdmin>set PERL5OPT=-Mre=eval C:\Users\HomeAdmin>perl -e" my $re = shift; 1 =~ /$re/; " "(?{die666 +})" C:\Users\HomeAdmin>
I agree, that anything the user could supply the OPs program with from the command line, they could equally just supply to perl directly, via the command line; but that's partly why I phrased my response the way I did. Ie. Trying to tease out exactly what the OPs concerns are.
For example, perhaps the arguments that will be supplied to the OPs program, originate from a web page interface accessible to 'external' users.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Untaint a string match, regular expression.
by Anonymous Monk on May 18, 2015 at 00:58 UTC | |
|
Re^4: Untaint a string match, regular expression.
by cheako (Beadle) on May 18, 2015 at 00:43 UTC |