Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Do you know where your variables are?
 
PerlMonks  

RE: SECURITY RISK

by merlyn (Sage)
on May 09, 2000 at 23:34 UTC ( [id://10846]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to SECURITY RISK
in thread How to get into $ENV{'QUERY_STRING'}?

There's no security risk here in most systems, because the output of CGI is not generally parsed for SSI. Methinks you have a hair-trigger on that. :)

Even having said that,

$var =~ s/ < ! - - ( . | \ n ) * - - >//g;
is poor performing code. You want something like this instead:
$var =~ s/<!--.*?-->//gi;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://10846]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.