You should never use a piped open with tainted data. ichimunki's suggestion of Mail::Sendmail.pm is excellent also Mail::Sender.pm is very good. Check out Ovid's excellent tutorial on "Web Programming with Perl" It points out many of the security holes your script has. grep#!/usr/bin/perl -w use strict; my $email = '; cat /etc/passwd'; open (MAIL, "| /usr/lib/sendmail $email");
|
In reply to Re: (Ovid) Re: why is this tainted?
by grep
in thread why is this tainted?
by michellem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |