﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Confessions of an email spammer</title>
	<atom:link href="http://west-penwith.org.uk/blog/archives/204/feed" rel="self" type="application/rss+xml" />
	<link>http://west-penwith.org.uk/blog/archives/204</link>
	<description>A soggy blog by Rick Parsons</description>
	<pubDate>Sat, 22 Nov 2008 07:12:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: <img class="monsterid" src="http://www.gravatar.com/avatar.php?gravatar_id=bb1b3dcb995a61c82b157641714468f0&#38;&;size=32&#38;default=http://west-penwith.org.uk/blog/wp-content/plugins/monsterid/6492dd056b64bbe.png" alt="Rick MonsterID Icon" height="32" width="32"/> Rick</title>
		<link>http://west-penwith.org.uk/blog/archives/204#comment-51653</link>
		<dc:creator><img class="monsterid" src="http://www.gravatar.com/avatar.php?gravatar_id=bb1b3dcb995a61c82b157641714468f0&#38;&;size=32&#38;default=http://west-penwith.org.uk/blog/wp-content/plugins/monsterid/6492dd056b64bbe.png" alt="Rick MonsterID Icon" height="32" width="32"/> Rick</dc:creator>
		<pubDate>Tue, 05 Jun 2007 12:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://west-penwith.org.uk/blog/archives/204#comment-51653</guid>
		<description>Hi Chris,

the good news is that, for this particular problem at least, it was self inflicted and other users of the package should not be affected, except as I noted that it may be exploitable through similar variables. Your solution in general is a good one and is roughly what I will be doing but working from a better base - that is when the tuits are available.</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>the good news is that, for this particular problem at least, it was self inflicted and other users of the package should not be affected, except as I noted that it may be exploitable through similar variables. Your solution in general is a good one and is roughly what I will be doing but working from a better base - that is when the tuits are available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="monsterid" src="http://www.gravatar.com/avatar.php?gravatar_id=f1c49383226026a1fd8499ac27533b0f&#38;&;size=32&#38;default=http://west-penwith.org.uk/blog/wp-content/plugins/monsterid/d6e6212bab209df.png" alt="Chris Norton MonsterID Icon" height="32" width="32"/> Chris Norton</title>
		<link>http://west-penwith.org.uk/blog/archives/204#comment-51524</link>
		<dc:creator><img class="monsterid" src="http://www.gravatar.com/avatar.php?gravatar_id=f1c49383226026a1fd8499ac27533b0f&#38;&;size=32&#38;default=http://west-penwith.org.uk/blog/wp-content/plugins/monsterid/d6e6212bab209df.png" alt="Chris Norton MonsterID Icon" height="32" width="32"/> Chris Norton</dc:creator>
		<pubDate>Mon, 04 Jun 2007 22:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://west-penwith.org.uk/blog/archives/204#comment-51524</guid>
		<description>All I can assume is that anyone else using the same script is going to be vulnerable to a similar attack. 

I really am no expert, but if you work on the principle that what a spammer wants to inject into your email headers is essentially a long list of email addresses, if you set up a few small lines of code to remove "to:", and "cc:" from your email body variable then i would have thought you make it a no win situation for them (removing "cc:" would leave only "b" from "bcc:" of course - thats not gonna send their message to a long list of email addresses!)

For example, if your email is built by adding attribute=value pairs to a variable called $subject, before you fire off the email to yourself at the end of the script, do something like 
$subject = eregi_replace("cc:","",$subject)  //case insensitive replace to change "cc:" to nothing in the variable $subject

Maybe add the same line, but next time replacing "to:" with nothing - I may be wrong but I have a memory that you can have as many "to's" in an email as you like. Well, even, you could replace the @ with something arbitrary like =A=, then for a genuine person sending you a single email you would know what to do to reply to them - whereas a spammers list is going to fall over if its sent to people=A=somehost.com

Like I said, I aren't an expert but in my simplistic way of looking at it, whatever other rubbish they can inject into your headers, at the very least only you will be getting the email.</description>
		<content:encoded><![CDATA[<p>All I can assume is that anyone else using the same script is going to be vulnerable to a similar attack. </p>
<p>I really am no expert, but if you work on the principle that what a spammer wants to inject into your email headers is essentially a long list of email addresses, if you set up a few small lines of code to remove &#8220;to:&#8221;, and &#8220;cc:&#8221; from your email body variable then i would have thought you make it a no win situation for them (removing &#8220;cc:&#8221; would leave only &#8220;b&#8221; from &#8220;bcc:&#8221; of course - thats not gonna send their message to a long list of email addresses!)</p>
<p>For example, if your email is built by adding attribute=value pairs to a variable called $subject, before you fire off the email to yourself at the end of the script, do something like<br />
$subject = eregi_replace(&#8221;cc:&#8221;,&#8221;",$subject)  //case insensitive replace to change &#8220;cc:&#8221; to nothing in the variable $subject</p>
<p>Maybe add the same line, but next time replacing &#8220;to:&#8221; with nothing - I may be wrong but I have a memory that you can have as many &#8220;to&#8217;s&#8221; in an email as you like. Well, even, you could replace the @ with something arbitrary like =A=, then for a genuine person sending you a single email you would know what to do to reply to them - whereas a spammers list is going to fall over if its sent to people=A=somehost.com</p>
<p>Like I said, I aren&#8217;t an expert but in my simplistic way of looking at it, whatever other rubbish they can inject into your headers, at the very least only you will be getting the email.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Order of the Bath &#187; Blog Archive &#187; Blueyonder - Spam source</title>
		<link>http://west-penwith.org.uk/blog/archives/204#comment-55577</link>
		<dc:creator>Order of the Bath &#187; Blog Archive &#187; Blueyonder - Spam source</dc:creator>
		<pubDate>Fri, 25 May 2007 14:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://west-penwith.org.uk/blog/archives/204#comment-55577</guid>
		<description>[...] of blacklists, but at least this one is contactable and apparently accountable. Why should the misdemeanours of a few customers impact the whole [...]</description>
		<content:encoded><![CDATA[<p>[...] of blacklists, but at least this one is contactable and apparently accountable. Why should the misdemeanours of a few customers impact the whole [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
