<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020521" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020521</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125689</link>
    <description> &lt;p&gt;Rayna,&lt;/p&gt;
&lt;p&gt;Matt&#039;s Script Archive has been totally secured now and relaunched under a new name. Thanks for the London Perl Mongers groups, they&#039;ve developed a totally secure versions of all his scripts that can be a &quot;drop-in&quot; replacement. You don&#039;t have to edit anything on your site.&lt;/p&gt;
&lt;p&gt;Check out:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://nms-cgi.sourceforge.net/&quot; class=&quot;bb-url&quot;&gt;http://nms-cgi.sourceforge.net/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For more information.&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 09:50:11 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1125689 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125677</link>
    <description> &lt;p&gt;Thanks Mark! I really appreciate all the help!&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 06:33:59 +0000</pubDate>
 <dc:creator>Rayna</dc:creator>
 <guid isPermaLink="false">comment 1125677 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125675</link>
    <description> &lt;p&gt;Simply hard code the recipient email.  When your contactus.html form submits to contactus.php, have the &quot;To&quot; email hardcoded in the PHP code, and remove the hidden field from your form.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;mail&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;you@your.com\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subject_from_form&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message_from_form&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;From: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$from_name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$from_email&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;gt;\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 06:22:21 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1125675 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125673</link>
    <description> &lt;p&gt;Thank you for the explanation Mark.&lt;/p&gt;
&lt;p&gt;So since the form handler I am currently using will never be secure can anyone recommend a form handler I can switch to that will not be vulnerable to spam?&lt;/p&gt;
&lt;p&gt;Thanks again Mark!!&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 04:17:45 +0000</pubDate>
 <dc:creator>Rayna</dc:creator>
 <guid isPermaLink="false">comment 1125673 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125662</link>
    <description> &lt;p&gt;If someone sees in the HTML source code, or in the GET querystring, a &#039;To&#039; or &#039;Recipient&#039; email address.  They can send fake requests to the server with different headers.&lt;/p&gt;
&lt;p&gt;For example.  If you have a script (on contactus.html) that has a hidden field called &quot;to_email&quot; and a default value of &quot;info@your.com&quot;.  Your form sends it&#039;s data via POST to (action) &quot;contactus.php&quot;.  Additional fields called &quot;from_email&quot;, &quot;from_name&quot;, &quot;message&quot;. Then I could spam your form like so:&lt;/p&gt;
&lt;p&gt;First, create some fake HTTP Request headers:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;POST /contactus.php HTML/1.1&lt;br /&gt;Connection: Keep-Alive&lt;br /&gt;User-Agent: You&amp;#039;ve been had.&lt;br /&gt;Accept-Language: en-US&lt;br /&gt;Referrer: &amp;lt;a href=&amp;quot;http://your.coom/contactus.html&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://your.coom/contactus.html&amp;lt;/a&amp;gt;&lt;br /&gt;&lt;br /&gt;to_email=spam@spam.com&amp;amp;from_email=you@your.com&amp;amp;from_name=Sucker&amp;amp;message=This is my spam email. Muhahaha!&lt;/code&gt;&lt;/div&gt;&#039;Then I simply open a TCP/IP connection to your host, send my HTTP Request header, read the HTTP Response, and close the connection.  Your server won&#039;t be able to tell that the data wasn&#039;t submitted form your own form on your own site, and will go right ahead and send &lt;a href=&quot;mailto:spam@spam.com&quot; class=&quot;bb-email&quot;&gt;spam@spam.com&lt;/a&gt; an email.&lt;/p&gt;
&lt;p&gt;Now imagine I dropped this functionality into a program with an email database.  I simply loop through thousands of emails, sending off spam email using your complementary mail services to do my dirty work.&lt;/p&gt;
&lt;p&gt;And, the recipients can only trace it back to you.  In order to catch me, you have to examine your access_log files (from apache) to get an IP.  Then you have to find who owns the IP, and who had the IP at the time of the incident (easy for static IP, harder for dynamic IP).&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 01:57:40 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1125662 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125653</link>
    <description> &lt;p&gt;mairving - I am using a linux box with Ensim&lt;/p&gt;
&lt;p&gt;Busy - Forgive me this is not my area at all so please be patient. Can you explain to me how seeing what happens via URL makes the script more vulnerable?&lt;/p&gt;
&lt;p&gt;I don&#039;t allow form handlers on my server either really....there are a few but they are in php and not an issue. This one was MINE that everyone on my server was using. I figured at least I would have control over it if there were issues.&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Feb 2003 22:37:43 +0000</pubDate>
 <dc:creator>Rayna</dc:creator>
 <guid isPermaLink="false">comment 1125653 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125647</link>
    <description> &lt;p&gt;If your using a script that allows people to see whats happening via the URL you&#039;ll always have trouble, Just looking at your source code I can see how easy it would be to spam.&lt;br /&gt;
Use a server side script like PHP, ASP etc that you can validate the contents (don&#039;t use javascript) and even set limits on posting messages without any of it being seen.&lt;br /&gt;
formmail isn&#039;t very secure and the older versions get hacked all the time because anyone can go to your server and do a request in the URL and get your details or set stuff. My host has had so many people being attacked via formmail, formmail is no longer allowed, unless its the latest version with addons.&lt;/p&gt;
&lt;p&gt;things you don&#039;t want in your forms are recipient, redirect, required or any other hidden value. &lt;/p&gt;
&lt;p&gt;so thats two ways of breaking your code, via a request and via your hidden tags&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Feb 2003 22:14:02 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1125647 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/form-handler-spam-issue#comment-1125646</link>
    <description> &lt;p&gt;It could be someone using your mailserver as a relay. What kind of system is it (2000, &#039;nix)?&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Feb 2003 22:13:11 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1125646 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
