Forum Moderators: phranque
Now I know why I've been banning Microsoft URL Control all this time.
If you don't have formmail.pl on your system, you are a-ok.
If you're using FormMail, an extra piece of security for it. Change all methods on your site to POST, don't use get.
Original (from my copy)
# Determine the form's REQUEST_METHOD (GET or POST) and split the form #
# fields up into their name-value pairs. If the REQUEST_METHOD was #
# not GET or POST, send an error. #
if ($ENV{'REQUEST_METHOD'} eq 'GET') {
# Split the name-value pairs
@pairs = split(/&/, $ENV{'QUERY_STRING'});
}
elsif ($ENV{'REQUEST_METHOD'} eq 'POST') {
# Get the input
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
# Split the name-value pairs
@pairs = split(/&/, $buffer);
}
else {
&error('request_method');
}
I would change this to:
# Determine the form's REQUEST_METHOD (GET or POST) and split the form #
# fields up into their name-value pairs. If the REQUEST_METHOD was #
# not POST, send an error. #
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
# Get the input
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
# Split the name-value pairs
@pairs = split(/&/, $buffer);
}
else {
&error('request_method');
}
[adding]
Although not completely foolproof, I would also change the 'recipient' field in the script and corresponding forms to some obscure term.
(edited by: bobriggs at 3:56 pm (gmt) on Jan. 1, 2002)
[webmasterworld.com...]