
Formmail is a common web-hosted script that can be used to accept email via a webpage form, and several makes of formmail script can be abused to send spam to any recipient. Other CGI scripts and web applications can also be abused to relay spam.
Most of these vulnerabilities use email header injection (CRLF injection), which uses carriage return and newline characters in submitted form fields to inject new header lines that are under the spammer's control.
The most popular Formmail script has several security flaws. These alternative scripts may not have the same flaws.
NMS FormMail - nms-cgi.sourceforge.net/
dr. Jørgen Mash's FormMail.pl - moensted.dk/formmail/
Contact Form - ostermiller.org/contactform/
MailWebForm - freshmeat.net/projects/mailwebform/
SCForm - jimsun.linxnet.com/SCForm.html
Soupermail - soupermail.sourceforge.net/
Jack's FormMail.php - www.dtheatre.com/scripts/formmail.php
Tectite FormMail PHP - www.tectite.com/formmailpage.php
WebPro - www.geocel.com/webpro/
Protect mail() from new line injection attacks with these hardening solutions for PHP.
Suhoshin PHP protection system - www.hardened-php.net/suhosin/
PHP Hardening-Patch - www.hardened-php.net/hphp/
Server peace: Individual security measures for PHP applications - www.heise-online.co.uk/security/Basic-security-for-PHP-software--/features/97299
GamaScan - www.gamasec.com/ - free, online
Top 10 Web Vulnerability Scanners - sectools.org/web-scanners.html
Web Application Vulnerability Scanners - samate.nist.gov/index.php/Web_Application_Vulnerability_Scanners
Web Applications Scanners - www.networkcomputing.com/rollingreviews/Web-Applications-Scanners/