<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — How does PunBB do against spam attacks]]></title>
		<link>https://punbb.informer.com/forums/topic/16233/how-does-punbb-do-against-spam-attacks/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/16233/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How does PunBB do against spam attacks.]]></description>
		<lastBuildDate>Mon, 18 Jun 2007 13:36:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96581/#p96581</link>
			<description><![CDATA[<div class="quotebox"><cite>MattF wrote:</cite><blockquote><p>It&#039;s worthwhile remembering, (if you have any more problems), to check your own security, setup and coding before laying blame on someone elses. <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>I did ;-) In fact, I spent almost two days checking out various things. The thing is, the other copy was on another domain which is otherwise inactive and has separate logs. Not exactly the kind of place you think of checking out. I wish I had had access to some kind of DB log.</p><p>But I know what you mean... I often waste lots of time investigating crazy theories (eg. your software only works while I&#039;m not sitting on my chair) only to find out a user messed up something basic (eg. I forgot to mention I&#039;m using linux-fedora-pre-alpha-bleeding-edge on a mac laptop). It seems that&#039;s just the way it is with software development. <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="quotebox"><cite>MattF wrote:</cite><blockquote><p>It&#039;s probably still a goood idea though IMHO to drop in some sort of PunBB anti-spam solution - even a simple one like the one here - <a href="http://www.punres.org/viewtopic.php?id=3439">http://www.punres.org/viewtopic.php?id=3439</a> - may still be useful.</p></blockquote></div><p>Given the mad stuff I implemented to work around this problem, I&#039;m pretty sure we&#039;ll be spam-free for a long time. But I&#039;ll know where to look if it ever becomes a problem again.</p>]]></description>
			<author><![CDATA[null@example.com (zap)]]></author>
			<pubDate>Mon, 18 Jun 2007 13:36:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96581/#p96581</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96549/#p96549</link>
			<description><![CDATA[<p>It&#039;s probably still a goood idea though IMHO to drop in some sort of PunBB anti-spam solution - even a simple one like the one here - <a href="http://www.punres.org/viewtopic.php?id=3439">http://www.punres.org/viewtopic.php?id=3439</a> - may still be useful.</p>]]></description>
			<author><![CDATA[null@example.com (sirena)]]></author>
			<pubDate>Sun, 17 Jun 2007 23:38:56 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96549/#p96549</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96535/#p96535</link>
			<description><![CDATA[<div class="quotebox"><cite>zap wrote:</cite><blockquote><p>Funny you should mention this just now, I found out that was indeed the case late friday night. The web site was tested on another domain before being deployed and apparently it was not correctly removed: access to the site itself was denied but a direct link to the forum still worked. That would explain why the spam seemed to just drop into the DB and there were no traces of anything in the server logs.</p></blockquote></div><p>It&#039;s worthwhile remembering, (if you have any more problems), to check your own security, setup and coding before laying blame on someone elses. <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Sun, 17 Jun 2007 19:25:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96535/#p96535</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96534/#p96534</link>
			<description><![CDATA[<p>That&#039;s OK, I&#039;m glad we figured out what was going on <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 17 Jun 2007 19:21:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96534/#p96534</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96531/#p96531</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>zap: Could <a href="http://punbb.org/forums/viewtopic.php?id=16283">this</a> (another copy of PunBB using the same database settings but with different pun_config options) be the issue for you?</p></blockquote></div><p>Funny you should mention this just now, I found out that was indeed the case late friday night. The web site was tested on another domain before being deployed and apparently it was not correctly removed: access to the site itself was denied but a direct link to the forum still worked. That would explain why the spam seemed to just drop into the DB and there were no traces of anything in the server logs.</p><p>I&#039;m pretty sure the forum will be spam-free now. I&#039;m sorry about everyone&#039;s wasted time. I&#039;ll now go and kick someone for leaving junk on a web server which wasted several hours of my time as well.</p>]]></description>
			<author><![CDATA[null@example.com (zap)]]></author>
			<pubDate>Sun, 17 Jun 2007 19:18:34 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96531/#p96531</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96406/#p96406</link>
			<description><![CDATA[<p>zap: Could <a href="http://punbb.org/forums/viewtopic.php?id=16283">this</a> (another copy of PunBB using the same database settings but with different pun_config options) be the issue for you?</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sat, 16 Jun 2007 11:56:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96406/#p96406</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96388/#p96388</link>
			<description><![CDATA[<p>zap: what database system is your forum using?</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sat, 16 Jun 2007 02:07:01 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96388/#p96388</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96386/#p96386</link>
			<description><![CDATA[<div class="quotebox"><cite>elbekko wrote:</cite><blockquote><p>Are you sure nobody just got hold of your DB info? It certainly seems more plausible.</p></blockquote></div><p>Seems unlikely. The spam is pretty obviously automated and I doubt someone could grab the information of enough forum databases to make that worthwhile. Unless there&#039;s another common hole somewhere which allows that part to be automated... but it all seems farfetched.</p><p>Besides, I&#039;m not even sure outside access to the DB is possible with only the DB login. I don&#039;t see why it would need to be. So they&#039;d have to have some kind of access to the web server as well... at which point I&#039;d expect problems greater than plain old spam <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> The rest of our website, some of which is also in the DB, is quite intact and spam-free.</p>]]></description>
			<author><![CDATA[null@example.com (zap)]]></author>
			<pubDate>Sat, 16 Jun 2007 01:43:06 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96386/#p96386</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96346/#p96346</link>
			<description><![CDATA[<div class="quotebox"><cite>zap wrote:</cite><blockquote><p>I guess my point is that SQL injections are not bugs that should be fixed but something that should be designed out of the system, relying as little as possible on the developer being fully awake when he writes the code. :-)</p></blockquote></div><p>That is incorrect. Anyone who writes any code whatsoever, in any language, should design it as securely as possible regardless of (the|any) underlying security. And with regards to semantics, php is not perl. Perl is not shell. Shell is not (C|C+|C++). They all vary in their abilities and semantics. One should never, and I do mean never, assume any level of security so that they can relax their own coding methods. As a software developer, you should have been taught that before you were ever even allowed near a keyboard.</p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Fri, 15 Jun 2007 18:02:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96346/#p96346</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96342/#p96342</link>
			<description><![CDATA[<p>Are you sure nobody just got hold of your DB info? It certainly seems more plausible.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Fri, 15 Jun 2007 15:06:21 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96342/#p96342</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96341/#p96341</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Unfortunately, that&#039;s the way it has to be done to support anyone using the mysql extension (as opposed to mysqli) and (I think) the SQLite extension. Prepared statements, stored procedures, etc aren&#039;t features that everyone with a PHP install supports, so this is the way it has to be done.<br />I would disagree with your overall assessment though. User input is properly sanitized (using $db-&gt;escape or intval, depending on the type of data) before being put into the query. We&#039;re not just accepting any input from $_GET and shoving it into the query.<br />If you have a suggestion for another way to construct queries, I&#039;d be interested to hear it. <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Aww, I didn&#039;t know SQL was in such a crappy state still in 2007.</p><p>As for another way, wouldn&#039;t it be possible to factor all db access into a single function where a query format string (say, something printf-like but less messy) would merged with the query arguments into a final SQL query? The idea is to have a single location where the arguments are escaped so none can be forgotten. It might also make the queries easier to read. Again, I don&#039;t do much php (mostly know how it works from perl) so maybe this makes no sense.</p><p>As it is now, there are three ways parameters can be handled: $db-&gt;escape when building the query, intval which seems to often be applied a little earlier and script-generated values which are never escaped at all. This makes it easy to mix things up and forget an escape.</p><p>I guess my point is that SQL injections are not bugs that should be fixed but something that should be designed out of the system, relying as little as possible on the developer being fully awake when he writes the code. :-)</p><div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Are you running the latest version (1.2.15)? Have you actually checked the IPs against entries in the access_log? What mods are you using on your forum?</p></blockquote></div><p>Yes, I upgraded when the spam started coming in but it didn&#039;t make a noticeable difference. I checked the IPs but found zero references to them. Unfortunately I&#039;ve deleted all the spam users since so I can&#039;t check again. I even tried to roughly scan the log by date/time for suspicious stuff but couldn&#039;t see anything fishy. I&#039;ll try to find some time to look again since there was a new spam episode a few days ago (it had been quiet for a week or two). There are no mods that I know of on the forum, it&#039;s a plain install with a few stylesheets changed to make it fit in our website.</p><div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Could you provide a link to your forum? I&#039;d like to investigate this a bit myself.</p></blockquote></div><p>Sure, drop me an email and I&#039;ll point you there.</p><div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Before I forget to say it, zap, thank you for clarifying your post <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>You&#039;re welcome :-) And thanks for actually caring about the issue.</p>]]></description>
			<author><![CDATA[null@example.com (zap)]]></author>
			<pubDate>Fri, 15 Jun 2007 14:09:01 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96341/#p96341</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96322/#p96322</link>
			<description><![CDATA[<p>Hmm, how about we all calm down and drop the bickering? <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Fri, 15 Jun 2007 10:35:32 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96322/#p96322</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96312/#p96312</link>
			<description><![CDATA[<div class="quotebox"><cite>zap wrote:</cite><blockquote><div class="quotebox"><cite>StevenBullen wrote:</cite><blockquote><p>Idiot!</p><p>Smartys.... fair play for even replying to him. He dont deserve it... 10/1 he is under 15.</p></blockquote></div><p>And you are obvisouly far, far older to have so much wisdom.</p><p>FWIW, I&#039;m well into my 20s and a software developer. Smartys at least knows how to deal with criticism.</p></blockquote></div><p>Enough wisdom that I understand how to ask a question instead of going on a rant mission...</p><p>20s and a software developer.... damn... shame that your age and job don?t teach you how to post a problem.<br />EDIT: criticism.... I don?t care about the criticism... it?s your attitude mate!!!</p><p>Do you honestly not see what I am getting at here?</p>]]></description>
			<author><![CDATA[null@example.com (StevenBullen)]]></author>
			<pubDate>Fri, 15 Jun 2007 07:08:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96312/#p96312</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96286/#p96286</link>
			<description><![CDATA[<div class="quotebox"><cite>zap wrote:</cite><blockquote><p>For one thing, there&#039;s SQL sprinkled all over the place in the php scripts without systematic (AFAICS) protection against injection. SQL queries built on the fly with user input screams &quot;it&#039;s the 90s and security isn&#039;t an issue yet&quot;. Maybe there&#039;s something I don&#039;t see (SQL/php isn&#039;t really my domain) but it sure doesn&#039;t look solid.</p></blockquote></div><p>Unfortunately, that&#039;s the way it has to be done to support anyone using the mysql extension (as opposed to mysqli) and (I think) the SQLite extension. Prepared statements, stored procedures, etc aren&#039;t features that everyone with a PHP install supports, so this is the way it has to be done.<br />I would disagree with your overall assessment though. User input is properly sanitized (using $db-&gt;escape or intval, depending on the type of data) before being put into the query. We&#039;re not just accepting any input from $_GET and shoving it into the query.<br />If you have a suggestion for another way to construct queries, I&#039;d be interested to hear it. <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="quotebox"><cite>zap wrote:</cite><blockquote><p>Well for one, we didn&#039;t get the registration alert emails for the spammers&#039; users. I also implemented a few checks here and there in the register and post scripts and it was clear by looking at the db afterwards that the users/posts had not gone through there. For example, I tried a &quot;minimal first post delay&quot; which was enforced when I manually registered a user but which the spam posts got around like it was a joke (the db often had delays under 10 seconds).<br />I&#039;d gladly report any SQL inject bug if I only knew how to track it down. Server logs were quite unhelpful; anyone who can inject stuff can obviously fake their IP in the db so it&#039;s like looking for a needle in a haystack...</p></blockquote></div><p>Are you running the latest version (1.2.15)? Have you actually checked the IPs against entries in the access_log? What mods are you using on your forum?<br />Could you provide a link to your forum? I&#039;d like to investigate this a bit myself.</p><p>Before I forget to say it, zap, thank you for clarifying your post <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Fri, 15 Jun 2007 00:16:39 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96286/#p96286</guid>
		</item>
		<item>
			<title><![CDATA[Re: How does PunBB do against spam attacks]]></title>
			<link>https://punbb.informer.com/forums/post/96285/#p96285</link>
			<description><![CDATA[<div class="quotebox"><cite>StevenBullen wrote:</cite><blockquote><p>Idiot!</p><p>Smartys.... fair play for even replying to him. He dont deserve it... 10/1 he is under 15.</p></blockquote></div><p>And you are obvisouly far, far older to have so much wisdom.</p><p>FWIW, I&#039;m well into my 20s and a software developer. Smartys at least knows how to deal with criticism.</p>]]></description>
			<author><![CDATA[null@example.com (zap)]]></author>
			<pubDate>Thu, 14 Jun 2007 23:51:44 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/96285/#p96285</guid>
		</item>
	</channel>
</rss>
