Re: query string passing woes........ help... please....
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 19:25:33 +0100
rcoan@xxxxxxxxxxxxxxxxxx wrote:
You form as it stands can
be used to spam anyone.
Actually I don't really see a way of it being used to send spam to
anyone really. Unless they actually key in the query string. The
email address that's being passed via the query string is from a
database of email addresses that are location specific. In other
words these people are expecting the emails and for there to be some
junk mail possibly. So I'm not too worried about the spam issue as of
right now but I will keep an eye out for it. Thanks.
The problem is if you allow people send a "From" address with the form,
as there isn't any real from argument in the mail function, you are
instead using the mail header directly and then you can add other things
like bcc/cc to the header and that way send out mail to more than one
person at the time.
It don't hurt to check all variables used in the mail function, if
detecting header injection, then abort the mailing (easy check is to
compare the size of the variable before and after removing all \r\n, if
the same no header injection was attempted, otherwise it's a try to spam).
--
//Aho
.
- Follow-Ups:
- References:
- query string passing woes........ help... please....
- From: rcoan@xxxxxxxxxxxxxxxxxx
- Re: query string passing woes........ help... please....
- From: shimmyshack
- Re: query string passing woes........ help... please....
- From: rcoan@xxxxxxxxxxxxxxxxxx
- query string passing woes........ help... please....
- Prev by Date: Re: saving content from another site
- Next by Date: Re: query string passing woes........ help... please....
- Previous by thread: Re: query string passing woes........ help... please....
- Next by thread: Re: query string passing woes........ help... please....
- Index(es):
Relevant Pages
|