Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Validating parameters passed to CDO.message against inject..

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Related Topics:
Stop IIS 5.1 from validating directories - Hi, I have IIS 5.1 running on Windows XP I have a setup which worked fine under Windows 2000, but is failing in peculiar ways under XP. I have a program that acts as a gateway to another running program, and a virtual..

Error: data area passed to a system call is too small - I get this error when I try to download large realmedia files from my I am running Win2000 advanced server (SP4) and IIS 5.0. ISAPI cache is checked and is set to high. The only things i found in technet applied to..

how to pass parameters to iisext containing quotes (W2003)? - I am doing the following on a Windows 2003 server. I am trying to set up a web service extension through the use of I need to add the following as a new Please note the quotes around %s. To do..

FTP Welcome Message - As a part of an automated I need to display the date/time after the remote device logs in with the correct Are there FTP Welcome Message variables that can be used to display the date/time for the that just..

CDO.Message - Hi Everyone, Have a mail script using working fine on my hosts system, however, on my machine when I try to send the mail line) I get this error: error Looking into it it looks like something to do..
Author Message
TomR

External


Since: Sep 06, 2005
Posts: 1



(Msg. 1) Posted: Tue Sep 06, 2005 9:11 pm
Post subject: Validating parameters passed to CDO.message against injection atta
Archived from groups: microsoft>public>inetserver>iis (more info?)

I'm using a pretty basic VBScript to send "request for information" type
e-mails to our sales force from a form on our web site (running IIS6.0 on
2003SP1) . The script builds the CDO.message object from the form in the
usual way:

iMsg.From = Request.Form.Item("Email")
iMsg.To = "fixedaddress@me.org"
iMsg.Subject = Request.Form.Item("Subject")
iMsg.TextBody = Request.Form.Item("Comment")
iMsg.Send

Lately, we've been seeing attempts to relay spam through our site by
providing mal-formed from, subject, or comment fields. I don't think they've
been working, but it's gotten me worrying: should I be doing any validation
on the user-supplied form values before building/sending the CDO.message?

Thanks for any advice on this!

 >> Stay informed about: Validating parameters passed to CDO.message against inject.. 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 2901



(Msg. 2) Posted: Wed Sep 07, 2005 2:55 am
Post subject: Re: Validating parameters passed to CDO.message against injection atta [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hmm

Since you have a fixed "to:" address, I'm not sure what they can inject. As
far as I'm aware, CDO.Message doesn't just create a text file and drop it
into the "pickup" folder of the SMTP server (if it did, then it may be
possible to inject some text to create another To: or From: address).
Instead it uses SMTP commands to speak to an SMTP server. In that case, what
you set in the properties of your object instance would be what's sent. If
you do want to filter, then looking for more than one "@" symbol (and
encoded versions of such) would be all that's necessary.

In any case, your SMTP server should be configured to prevent unauthorized
third party relay. In that case, even if an attacker does manage to somehow
subvert your script, the SMTP server would reject the mail.

Cheers
Ken

--
IIS Blog: www.adopenstatic.com/cs/blogs/ken/
Web: www.adopenstatic.com


"TomR" <TomR.TakeThisOut@discussions.microsoft.com> wrote in message
news:331D3D41-4FC6-4D84-9ACC-E46C63F7AC5E@microsoft.com...
: I'm using a pretty basic VBScript to send "request for information" type
: e-mails to our sales force from a form on our web site (running IIS6.0 on
: 2003SP1) . The script builds the CDO.message object from the form in the
: usual way:
:
: iMsg.From = Request.Form.Item("Email")
: iMsg.To = "fixedaddress@me.org"
: iMsg.Subject = Request.Form.Item("Subject")
: iMsg.TextBody = Request.Form.Item("Comment")
: iMsg.Send
:
: Lately, we've been seeing attempts to relay spam through our site by
: providing mal-formed from, subject, or comment fields. I don't think
they've
: been working, but it's gotten me worrying: should I be doing any
validation
: on the user-supplied form values before building/sending the CDO.message?
:
: Thanks for any advice on this!

 >> Stay informed about: Validating parameters passed to CDO.message against inject.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]