in reply to Insecurities in my scripting
Somebody could simply copy and paste an entire mailing list into the 'usermail' field and submit it.print MAIL "To: $form{'usermail'}\n";
You get the picture.victim1@domain.com, victim2@domain.com, victim3@domain.com, etc...
If you switch on taint mode
Then perl will force you to run every user inputted data through a regex before you can send it outside of your program, such as to sendmail.#!/usr/bin/perl -wT
See the regex docs for help.my $username; If ($form{username} =~ /^([\w.-]+)$/) { $username = $1; } else { die("invalid username"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Insecurities in my scripting
by sulfericacid (Deacon) on Nov 20, 2002 at 10:16 UTC | |
by dakkar (Hermit) on Nov 20, 2002 at 11:12 UTC | |
by fireartist (Chaplain) on Nov 20, 2002 at 14:30 UTC | |
by sulfericacid (Deacon) on Nov 21, 2002 at 08:10 UTC | |
|
Re: Re: Insecurities in my scripting
by iburrell (Chaplain) on Nov 20, 2002 at 17:38 UTC |