geektron has asked for the wisdom of the Perl Monks concerning the following question:
I'm rewriting the thing with an extra eye for security and configurability (so that I can reuse it across our sites, if/when needed), and I want to make sure I've covered all the bases since the PHB keeps throwing "what if ...." scenarios at me.
I've already come up with the following to secure this thing:
- using the -T switch (which isn't in the original)
- using MIME::Lite to create the message rather than just printing to sendmail
- using Mail::Address or something similar to validate the "To:" field in the messages. i'll probably also make sure that only *one* value is in the "To:" field
- (not security related) using Config::General to allow for config file creation with an eye for deploying the remailer across sites.
Does adding some form of key/ session_id buy any security? I think not, because it would be just another thing that needs to be passed in the form, and enough brute-force attacks would crack that too ...
Any other suggestions for making this thing as locked down as possible?