I'm wondering if it is secure to pass $regex into YAPE::Regex::Explain this way, and if not please provide me with a way this could be exploited security-wise.#!/usr/bin/perl use strict; use CGI; use YAPE::Regex::Explain; my $cgi = CGI->new(); die unless $cgi->param('regex'); my $regex = $cgi->param('regex'); print $cgi->header('text/plain'); print YAPE::Regex::Explain->new(qr/$regex/)->explain;
In reply to CGI script security: putting untainted input into a qr// by eXile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |