in reply to Re: Re (tilly) 2: Opinions needed on CGI security
in thread Opinions needed on CGI security
The other way is just too hazy. From CGI pod (I've always found this entertaining):
If you import a function name that is not part of CGI.pm, the module will treat it as a new HTML tag and generate the appropriate subroutine. You can then use it like any other HTML tag. This is to provide for the rapidly-evolving HTML "standard." For example, say Microsoft comes out with a new tag called <GRADIENT> (which causes the user's desktop to be flooded with a rotating gradient fill until his machine reboots). You don't need to wait for a new version of CGI.pm to start using it immediately:
If you only filter script tags, then you're missing this DoS HTML tag. On the other hand, if you know which tags are good and ignore all others, you're set for life without trying to track down new exploits.use CGI qw/:standard :html3 gradient/; print gradient({-start=>'red',-end=>'blue'});
|
|---|