
March 7th, 2002, 12:08 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Flawed?
I don't think it's that much of a security hole -- using an unexpected type in Python code will usually only lead to an exception. The user who manipulates the input will get an unfriendly error message, but that's no big deal -- you don't need to provide pretty interfaces for malicious users.<p>
A much more significant flaw is in using "From: <dtml-var email>" in the submission. It's easy enough to submit a value with newlines, and mess with the headers of the email as you wish. You could BCC people with spam, include odd things in the body, include attachments, or whatever. I haven't tested this exploit, but it seems like it should exist. <p>
There really needs to be a validation function on that term before it's called. Altogether, while it's important to show simple and accessible examples, those examples are far short of anything you'd want public -- and unfortunately (for Zope) it seems like public-ready examples are rather complicated. <p>
Maybe with Formulator...
|