Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
In this reply, an AM posts that he uses Matt's formmail program so as not to reinvent the wheel. The problem is that this wheel is very broken, and we need a new wheel.

Matt's FormMail has many problems, but one of the biggest is its lack of security. Any instance of FormMail can be used as a spam gateway, because FormMail uses hidden form variables to specify recipient(s) and message subject. Do you want your forms used as spammer tools? Sure, FormMail checks the referrer--but referrers are trivially faked, and this is *not* good enough protection.

We need a good alternative to FormMail. I think (bias) that STAMP can be such an alternative.

I wrote STAMP (Secure, Template-Aware Mail Processor) as a more secure alternative to FormMail. It uses server-side configuration files, so spammers can't use the form as an arbitrary email gateway; it supports all of the options used in FormMail; and it supports the use of templates (using HTML::Template) to customize mail messages sent to the recipient(s) of the form data.

I don't think that STAMP is the only possible alternative, of course, and it's possible that it wouldn't even be the best solution for FormMail users. It requires the use of CPAN modules, for example, which could be a possible turnoff to users who just want a simple form mailer. And it's not even the only alternative (I'm thinking specifically of Not Matt's Scripts, here).

Anyway, it's pretty well documented; it is, I believe, secure, not buggy, etc.; and I like it. :) If anyone wishes to give me a security review, here is the source.


In reply to Secure form mail processing by btrott

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-29 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found