<?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>trivia &#187; security</title>
	<atom:link href="http://baldric.net/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://baldric.net</link>
	<description>another voice in the babble on the net</description>
	<lastBuildDate>Mon, 30 Jan 2012 16:59:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>t-mobile resets its policy?</title>
		<link>http://baldric.net/2012/01/12/t-mobile-resets-its-policy/</link>
		<comments>http://baldric.net/2012/01/12/t-mobile-resets-its-policy/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 22:07:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[network (in)security]]></category>
		<category><![CDATA[networks and networking]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[ISP]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[securit]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=1256</guid>
		<description><![CDATA[As I have mentioned in other posts here, I run my own mail server on one of my VMs. I do this for a variety of reasons, but the main one is that I like to control my own network destiny. Back in October last year I noticed an interesting change in my mail experience [...]]]></description>
			<content:encoded><![CDATA[<p>As I have mentioned in other posts here, I run my own mail server on one of my VMs. I do this for a variety of reasons, but the main one is that I like to control my own network destiny. Back in October last year I noticed an interesting change in my mail experience with my HTC mobile (actually my wife first noticed it and blamed me, assuming that I had &#8220;twiddled with something&#8221; as she put it). Heaven forfend.</p>
<p>My mail setup is postfix/dovecot with SASL authentication and TLS protecting the mail authentication exchange. My X509 certs are self generated (and so not signed by any CA). I pick up mail over IMAPS (when mobile) and POP3S (at home &#8211; for perverse reasons of history I like to actually download mail to my main desktop over POP3 and archive it to two separate NAS backups). I send via the standard SMTP port 25 but require authentication and protect the exchange with TLS.  </p>
<p>My mail had been working fine ever since I set it up some years ago, but as I said, back in October my wife complained that she could no longer send email from her HTC mobile (we both use t-mobile as the network provider). She was at work at the time so away from my home network. Both our phones are setup to use use wifi for connectivity where it is available (as it is at home of course). When my wife complained I checked my phone and it could send and receive without problem. But when I switched wifi off, thus forcing the data connection though the mobile network, I got the same problem as my wife reported. On checking my mail server logs I read this:</p>
<blockquote><p>postfix/smtpd[28089]: connect from unknown[149.254.186.120]<br />
postfix/smtpd[28089]: warning: network_biopair_interop: error reading 11 bytes from the network: Connection reset by peer<br />
postfix/smtpd[28089]: SSL_accept error from unknown[149.254.186.120]:-1<br />
postfix/smtpd[28089]: lost connection after STARTTLS from unknown[149.254.186.120]<br />
postfix/smtpd[28089]: disconnect from unknown[149.254.186.120]</p></blockquote>
<p>(the ip address is one of t-mobile&#8217;s servers on their &#8220;TMUK-WBR-N2&#8243; network)</p>
<p>Everything I could find about that sort of message suggested that the client was tearing down the connection because there was something wrong with the TLS handshake and it was not trusted. Checking earlier logs, I found that t-mobile&#8217;s address had apparently changed (to the address above) recently. So I assumed that some recent network change following the Orange/T-mobile merger had been badly managed and all would be well again as soon as the problem was spotted. Wrong. It persisted. So I had to investigate further. As part of my investigation of the error, I tried moving mail from port 25 to 587 (submission) because that sometimes gets around the problem of ISPs blocking, or otherwise interfering, with outbound connections from their networks to port 25, No deal. In fact it looked as if t-mobile were blocking all connections to port 587 (I assumed a whitelisting policy block, or again, a cockup).</p>
<p>So, the scenario was: mail works when connecting over wifi and using my domestic ISP&#8217;s network, but doesn&#8217;t when using t-mobile&#8217;s 3G network. Symptoms point to a lack of trust in the TLS handshake. Tentative conclusion? There is an SSL/TLS proxy somewhere in the mobile operator&#8217;s chain. That proxy sucessfully negotiates with our phones, but when it gets my self certified X509 cert from the server. it can&#8217;t authenticate it and decides that the connection is untrusted so tears it down. My server sees this as the client (my phone) tearing down the connection. [As it turns out, this conclusion was completely wrong, but hey].</p>
<p>I said in an email at the time to a friend whose advice I was seeking, &#8220;I suspect cockup rather than outright conspiracy, but if my telco is dumb enough to stick a MITM ssl proxy in my mail chain, they really ought to have thought about handling self signed certs a little better. Otherwise it sort of gives the game away.&#8221;</p>
<p>In response, he very sensibly suggested that I should run a sniffer on the server and check what was going on. At that time, I was busy doing something else so I didn&#8217;t. And because the problem was intermittent (and my wife stopped complaining) I never got around to properly investigating further. (I should explain that I rarely send mail from my mobile nowadays. I just read mail there and wait until I get home to a decent keyboard and can reply to whatever needs handling from there. My wife just gave up bothering to try).     </p>
<p>I should have persisted because of course I wasn&#8217;t the only one to experience this problem.  </p>
<p>Back in November, a member of the t-mobile discussion forum called &#8220;dpg&#8221; <a href="http://support.t-mobile.co.uk/discussions/index?page=forums&#038;topic=80101915a8144e01337e648aca002435&#038;messageit.offset=0">posted</a> a message complaining that he could not connect to port 587 over t-mobile&#8217;s 3G network. In response, a member of the t-mobile forum team suggested that dpg might reconfigure his email so that it was relayed via t-mobile&#8217;s own SMTP server. Not unreasonably, dpg didn&#8217;t think this was an acceptable response &#8211; not least because he would then have to send his email in clear. He then posted again saying that &#8220;the TLS handshake fails when the mail client receives a TCP packet with the reset (RST) flag set.&#8221; (This is a <strong>bad thing (TM).</strong> Further, he posted again saying that he had set up his own mail server and repeated earlier tests so that he could see both ends of the connection. At the client side he posted mail from his laptop tethered to his phone which was connected to the t-mobile 3G network. By running sniffers at both ends of the connection he was able to prove to his own satisfaction that something in the t-mobile network was sending a RST and tearing down any connection when a STARTTLS was seen. Again, in a later post in response to one from another poster who apparently manages several mail servers and had been looking at the same issue for a client, dpg says:</p>
<blockquote><p>&#8220;I must say I&#8217;m not too pleased to discover that T-Mobile may be snooping all traffic to check for SMTP messages. I have demonstrated that they may be doing this by running a SMTP server on a non-standard port and finding that they still sent TCP reset packets during TLS negotiation &#8211; so they must be examining all packets and not just those destined for TCP ports 25 and 587.</p>
<p>I&#8217;m also not that keen on T-Mobile spoofing/forging TCP resets. This is the sort of tactic resorted to by the Great Firewall of China (http://www.lightbluetouchpaper.org/2006/06/27/ignoring-the-great-firewall-of-china/) and also by Comcast back in 2007 (https://www.eff.org/wp/packet-forgery-isps-report-comcast-affair) until the US FCC told them to stop (http://hraunfoss.fcc.gov/edocs_public/attachmatch/FCC-08-183A1.pdf).&#8221;
</p></blockquote>
<p>Then 9 days ago, dpg posted this message:</p>
<blockquote><p>&#8220;I finally got to the bottom of this. I was contacted by T-Mobile technical support today and was told that they are now actively looking for and blocking any TLS-secured SMTP sessions. So, it is a deliberate policy after all, despite what the support staff have been saying on here, twitter and on 150. They told me it is something they have been rolling out over the last three months &#8211; which explains why it was intermittent and dependent on IP address and APN to begin with.</p>
<p>So, the only options for sending email over T-Mobile&#8217;s network are:<br />
- unencrypted but authenticated SMTP (usually on port 25)<br />
- SSL-encrypted SMTP (usually on port 465)<br />
- unauthenticated and unencrypted email to smtp.t-email.co.uk</p>
<p>TLS-encrypted SMTP sessions are always blocked whether or not they are on the default port of 587.&#8221;
</p></blockquote>
<p>(As an aside, there is, of course, another alternative. You can ditch t-mobile as your provider and pick one which doesn&#8217;t use DPI to screw your connections. You pays your money&#8230;.)</p>
<p>Following this, a new poster called &#8220;mickeyc&#8221; said this:</p>
<blockquote><p>&#8220;I&#8217;ve been experiencing this exact same problem. I run my own mail server which has SSL on port 465 and also uses TLS on port 587. I used wireshark to confirm that the RST packets are being spoofed. This is the exact same technology used by &#8220;The Great Firewall of China&#8221;. I have two t-mobile sims. One is about a year old and doesn&#8217;t experience this problem (yet), one is a few weeks old and does.&#8221;
</p></blockquote>
<p>He went to say that he had also experienced problems with his OpenVPN connections and would be blogging about the problem (damned bloggers get everywhere) and sure enough, Mike Cardwell did so at <a href="https://grepular.com/Punching_through_The_Great_Firewall_of_TMobile">grepular.com</a>. That blog post is worth reading because it has an interesting set of comments and responses from Mike appended.</p>
<p>Mike&#8217;s post seems to have been picked up by a few others (El Reg <a href="http://www.theregister.co.uk/2012/01/11/t_mobile_security/">has one</a>, and as Mike himself has pointed out, boingboing.net has a particularly <a href="http://boingboing.net/2012/01/10/t-mobile-uk-is-secretly-disrup.html">OTT post</a> which seems to say that he is accusing t-mobile of something he clearly isn&#8217;t. </p>
<p>Finally, two days ago, dpg posted this:</p>
<blockquote><p>
&#8220;I&#8217;m pleased to report that T-Mobile is no longer blocking TLS-secured email on port 587. As a follow-up to an email exchange over the Christmas period I was contacted today to say that, contrary to what I had been told previously, it was never a deliberate policy to block TLS-secured outgoing email. There was a problem with some equipment after all, which was resolved yesterday.&#8221;
</p></blockquote>
<p>I tried again myself today. Initially, I got the same old symptoms (&#8220;lost connection after STARTTLS&#8221;) then I rebooted my &#8216;phone and lo and behold I could send email.</p>
<p>Like Mike, I tend to the cockup over conspiracy theory, it&#8217;s more likely for one thing. IANAL, but it seems to me that it would be in breach of RIPA part I, Unlawful Interception, for the telco to intercept my SMTP traffic in the way it seems to have been doing. That is not likely to be a deliberate act by a major UK mobile network provider.</p>
<p>But I&#8217;ll still keep an eye on things. </p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2012/01/12/t-mobile-resets-its-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tunnelling X over ssh</title>
		<link>http://baldric.net/2011/12/19/tunnelling-x-over-ssh/</link>
		<comments>http://baldric.net/2011/12/19/tunnelling-x-over-ssh/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 20:18:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[coding and admin]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[linux and unix]]></category>
		<category><![CDATA[network (in)security]]></category>
		<category><![CDATA[networks and networking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips, tricks and howtos]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks and howtos]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=1233</guid>
		<description><![CDATA[OK, yes, I know there are probably already a gazillion web pages on the &#8216;net explaining exactly how to do this, but I got caught out by a silly gotcha when I tried to do this a couple of days ago, so I thought I&#8217;d post a note. Firstly, X is not exactly a secure [...]]]></description>
			<content:encoded><![CDATA[<p>OK, yes, I know there are probably already a gazillion web pages on the &#8216;net explaining exactly how to do this, but I got caught out by a silly gotcha when I tried to do this a couple of days ago, so I thought I&#8217;d post a note.</p>
<p>Firstly, X is not exactly a secure protocol, nor is it easy to filter at NAT firewalls, so the ability to tunnel it over ssh is hugely welcome. In fact, ssh can be used to tunnel practically any other protocol you care to name, so it should be your first port of call should you wish to connect to a remote system using an insecure protocol. (I use it to wrap rsync for example). </p>
<p>I don&#8217;t run X on my VMs (there is no need, they don&#8217;t run desktop software) and I had not previously seen the need to run X based graphical programs on those servers. However, a couple of days ago I thought it would be really useful to run etherape on one particular remote server so that I could watch the traffic patterns. Normally I use iptraf (which is ncurses based) when I want to monitor network traffic in real time, but etherape is pretty cool and gives a nice graphical view of your network connections. But it runs on an X based gui.</p>
<p>So. I changed the remote server&#8217;s sshd_config to enable X forwarding (<strong>&#8220;X11Forwarding no&#8221;</strong> becomes <strong>&#8220;X11Forwarding yes&#8221;</strong>) and restarted sshd. On my desktop I similarly changed my local ssh_config file to allow X forwarding (<strong>&#8220;ForwardX11 no&#8221;</strong> becomes <strong>&#8220;ForwardX11 yes&#8221;</strong>) to obviate the need to use the -X switch on the command line. I then installed etherape on the remote server and fired it up only to get the message <strong>&#8220;Error: no display specified&#8221;</strong>. Sure enough <strong>&#8220;echo $DISPLAY&#8221;</strong> showed nothing. But I had thought (and everything I had read confirmed) that ssh should take care of setting the appropriate display when X11 forwarding was set. </p>
<p>So I then tried setting a display manually (<strong>export DISPLAY=localhost:10.0</strong> on the remote server) and then got the response <strong>&#8220;Error: cannot open display: localhost:10.0&#8243;</strong>. So, still no deal.  I spent some time scratching my head (and reading man pages) and sent off a query to my local Linux User group in parallel asking for advice. They were gentle with me.</p>
<p>The first, and rapid, response, said: </p>
<blockquote><p>On the server:</p>
<p>    sudo apt-get install xauth</p>
<p>Then disconnect and reconnect the client.</p>
<p>Jobs a good un.</p></blockquote>
<p>Thank you Brett.</p>
<p>So the moral is, make sure that you have X authorisation working properly on the remote system (check for the existence of $HOME/.Xauthority) if you experience the same symptoms I did. </p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2011/12/19/tunnelling-x-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>click here</title>
		<link>http://baldric.net/2011/01/23/click-here/</link>
		<comments>http://baldric.net/2011/01/23/click-here/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 18:04:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[trivial musing]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=713</guid>
		<description><![CDATA[The Cory Doctorow article referenced at the end of the post below mentions URL shorteners as potentially dangerous because they completely obscure the actual URL you will be taken to if you click them. By way of experiment I thought I&#8217;d post one here just to see how often it is used.]]></description>
			<content:encoded><![CDATA[<p>The Cory Doctorow article referenced at the end of the post below mentions URL shorteners as potentially dangerous because they completely obscure the actual URL you will be taken to if you click them. By way of experiment I thought I&#8217;d post one <a href="http://bit.ly/giGLo2">here</a> just to see how often it is used.</p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2011/01/23/click-here/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>damn, I think I got hit by a 419er</title>
		<link>http://baldric.net/2011/01/23/damn-i-think-i-got-hit-by-a-419er/</link>
		<comments>http://baldric.net/2011/01/23/damn-i-think-i-got-hit-by-a-419er/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 17:50:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[anonymity]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=709</guid>
		<description><![CDATA[I am normally pretty careful about my on-line security and privacy. I take a lot of care to ensure that my home network is nailed down tightly and all the clients and servers on it are also nailed down as well as I know how. I don&#8217;t use software which is susceptible to the majority [...]]]></description>
			<content:encoded><![CDATA[<p>I am normally pretty careful about my on-line security and privacy. I take a lot of care to ensure that my home network is nailed down tightly and all the clients and servers on it are also nailed down as well as I know how. I don&#8217;t use software which is susceptible to the majority of the malware out there; my browser is nailed down as tightly as I can get it whilst still allowing it to be useful (roll on HTML5, I hate flash, but it is so damned useful); I do some, very specific, browsing (such as on-line banking) from within a VM and do not use that browser or machine for anything except that specific activity;  I routinely bin cookies and flash LSOs (in fact I find it better to disallow all LSOs in the first place); this blog does not include any email addresses harvestable by &#8216;bots; my email client is a niche (i.e. minority) product and is configured only to allow text (no HTML or embedded images or webbugs); I use tor when I want to be as anonymous as possible; my<a href="http://baldric.net/2008/09/12/webanalytics-just-say-no/"> local DNS server blocks</a> access to a whole range of addresses I don&#8217;t like; and I never respond to unsolicited email.</p>
<p>But I got phished. Damn. </p>
<p>Here&#8217;s what happened.</p>
<p>I advertised an unwanted mobile phone on <a href="http://www.gumtree.com/">gumtree</a>. I chose gumtree in preference to ebay because a) adverts are free, and b) gumtree allows you to target the advertising to a specific location. I like this idea because it means you can say &#8220;I&#8217;ve got a doohickey for sale in South London. Come and see it and pay cash if you want it&#8221;.  My ad gave details of the item for sale and, as is recommended, I chose to have responses emailed to me. Here I made mistake number one &#8211; I used my normal email address rather than a disposable one. To be fair, gumtree don&#8217;t expose any of your private details, they just forward any responses to the address you give. Here&#8217;s where I made mistake number two, I responded to queries about the ad from the address given to gumtree. Damn. Idiot. So stupid.</p>
<p>So why do I think the responses weren&#8217;t kosher? Well there were a number of giveaways. Firstly the requests were for information already in the ad (&#8220;how much do you want?&#8221;); secondly, there were a suspiciously high number of &#8220;spilling misteaks&#8221; in the emails; thirdly, the correspondent wanted me to mail the &#8216;phone to a location outside the UK (&#8220;Thanks for your quick respond actually i will love to buy the Ad for my Daughter who is currently studying at British international college (BIC) in West Africa so am willing to pay you additional £48.76 for the shipping via Express Air Mail.&#8221; (sic)); fourthly, the respondents all seemed desperately keen for me to accept paypal as the preferred payment option. I&#8217;m normally quicker on the uptake than this, but sadly it took me four or five emails to realise that there was a pattern here and that the people after the phone seemed to be following a script and were completely ignoring my responses. Here&#8217;s a sample: </p>
<blockquote><p>Someone calling him or her self  &#8220;Janet Mason&#8221;:</p>
<p>&#8220;Hello Seller,<br />
Can I know the condition of the item? I think you will accept PayPal. And I will pay the postage and packing cost for the item. If you can send me paypal payment request now and I will make the payment straight away without any delay. Hope to hear from you very soon.&#8221;</p>
<p>My response:</p>
<p>&#8220;Janet</p>
<p>As the ad say, the phone is in &#8220;as new condition&#8221;. This means what it says. The phone is completely clean and has no visible markings or scratches.&#8221;</p>
<p>&#8220;Janet&#8217;s&#8221; reply:</p>
<p>&#8220;Ok send me your paypal Payment request now so that I can make the payment now.&#8221;</p>
<p>My response:</p>
<p>&#8220;I&#8217;d like a bit more detail first please.</p>
<p>Where are you? (Full address and telephone mumber so that I can confirm that I am sending to &#8220;Janet Mason&#8221;.</p>
<p>Details of your confirmed paypal account (so that I know that Paypal have verifed you).</p>
<p>If you want to know why I am concerned please read the paypal guidance for sellers &#8211; particularly the bit about sending only to UK or US based addresses and getting signatures on receipt of goods.</p>
<p>I have received several requests to send the phone to &#8220;my daughter/son/nephew&#8221; or whatever in various Countries outside the EU. I am naturally suspicious.&#8221;</p>
<p>&#8220;Janet&#8221; then says:</p>
<p>&#8220;Hello, <br />
Am in London right now but due to the nature of my work here in London I will not be able to post the item to my Business Partner Daughter in Nigeria as a New Year Gift. But I will pay for the postage and packing cost via FedEX. Get back to me with your paypal payment request now so that I can make the payment now and get the item posted out tomorrow Morning.&#8221;
</p></blockquote>
<p>Correspondence ends&#8230;..</p>
<p>Now whilst I have not lost the &#8216;phone, I have verified a usable email address to a bunch of scammers. I expect my spam volume to that address to increase dramatically.  Never mind though, I&#8217;m not alone in losing out to the bad guys, and at least I haven&#8217;t <a href="http://www.locusmag.com/Perspectives/2010/05/cory-doctorow-persistence-pays-parasites/">lost any passwords</a> in the process.</p>
<p>Still, I&#8217;m pretty pissed off.</p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2011/01/23/damn-i-think-i-got-hit-by-a-419er/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>critical security update to wordpress</title>
		<link>http://baldric.net/2011/01/04/critical-security-update-to-wordpress/</link>
		<comments>http://baldric.net/2011/01/04/critical-security-update-to-wordpress/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 20:29:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[network (in)security]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blogs]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=695</guid>
		<description><![CDATA[This blog comes to you courtesy of those excellent free open source authors who have contributed to wordpress. Unfortunately, in common with all software, wordpress inevitably has some bugs. Worse, some of the those bugs can occasionally be sufficiently bad as to make the software vulnerable to remote exploitation by ne&#8217;er do wells and other [...]]]></description>
			<content:encoded><![CDATA[<p>This blog comes to you courtesy of those excellent free open source authors who have contributed to <a href="http://wordpress.org/">wordpress</a>. Unfortunately, in common with all software, wordpress inevitably has some bugs. Worse, some of the those bugs can occasionally be sufficiently bad as to make the software vulnerable to remote exploitation by ne&#8217;er do wells and other assorted bad guys. </p>
<p>On 29 December last, Matt Mullenweg posted a notice to the <a href="http://wordpress.org/news/2010/12/3-0-4-update/">wordpress security blog</a> announcing a very important update which he recommnded be applied as soon as possible because it fixes a &#8220;core security bug in [wordpress'] HTML sanitation library, KSES&#8221;. Mullenweg rated this [3.04] release as “critical.”</p>
<p>I have just updated my installation. I recommend you do the same.    </p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2011/01/04/critical-security-update-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>professional ability</title>
		<link>http://baldric.net/2010/09/25/professional-ability/</link>
		<comments>http://baldric.net/2010/09/25/professional-ability/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 20:21:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[network security]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=673</guid>
		<description><![CDATA[I was skimming through a series of security related sites last week when I came across an article referring to someone described as something like &#8220;A Person, M.Inst.ISP, CISM, CISSP, MBCS, CITP, BSc, Director of etc&#8230;..&#8221; and I found myself wondering what that all actually meant. Yes, I know what the letters stand for, hell [...]]]></description>
			<content:encoded><![CDATA[<p>I was skimming through a series of security related sites last week when I came across an article referring to someone described as something like &#8220;A Person, M.Inst.ISP, CISM, CISSP, MBCS, CITP, BSc, Director of etc&#8230;..&#8221; and I found myself wondering what that all actually meant. Yes, I know what the letters stand for, hell I&#8217;ve even got a few of them myself, but what do they <em>actually</em> mean in the real world? And because of those letters, would you believe that person knew anywhere near as much about software security as say David Litchfield (Jr), or Charlie Miller, or Thomas Dullien?</p>
<p>Just wondering.    </p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2010/09/25/professional-ability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>update to autossh &#8211; or how ServerAliveInterval makes this unnecessary</title>
		<link>http://baldric.net/2010/08/27/update-to-autossh-or-how-serveraliveinterval-makes-this-unnecessary/</link>
		<comments>http://baldric.net/2010/08/27/update-to-autossh-or-how-serveraliveinterval-makes-this-unnecessary/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 20:16:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[networks and networking]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips, tricks and howtos]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=633</guid>
		<description><![CDATA[I had a couple of comments on my earlier post about autossh which suggested that I should look at alternative mechanisms for keeping my ssh tunnel up. Rob in particular suggested that setting &#8220;ServerAliveInterval&#8221; should work. Oddly I had tried this in the past whilst trying out various configuration options and I swear it didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I had a couple of comments on my earlier post about autossh which suggested that I should look at alternative mechanisms for keeping my ssh tunnel up. Rob in particular suggested that setting &#8220;ServerAliveInterval&#8221; should work. Oddly I had tried this in the past whilst trying out various configuration options and I swear it didn&#8217;t work for me. But since the autossh mechanism felt inelegant I thought I&#8217;d revisit my ssh_config file as Rob suggested. And indeed setting ServerAliveInterval to 300 (i.e. 5 minutes) solved my tunnel drop problem. I&#8217;d guess that other intervals of less than 1 hour would equally work but I haven&#8217;t checked.</p>
<p>I have no idea why my earlier experiments failed.</p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2010/08/27/update-to-autossh-or-how-serveraliveinterval-makes-this-unnecessary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>autossh &#8211; or how to use tor through a central ssh proxy</title>
		<link>http://baldric.net/2010/08/01/autossh-or-how-to-use-tor-through-a-central-ssh-proxy/</link>
		<comments>http://baldric.net/2010/08/01/autossh-or-how-to-use-tor-through-a-central-ssh-proxy/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 20:56:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[networks and networking]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips, tricks and howtos]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[anonymity]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[TOR]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=602</guid>
		<description><![CDATA[Since I first set up a remote tor node on a VPS about this time last year, I have played about with various configurations (and used different providers) but I have now settled on using two high bandwidth servers on different networks. One (at daily.co.uk) allows 750 Gig of traffic per month, the other (a [...]]]></description>
			<content:encoded><![CDATA[<p>Since I first set up a <a href="http://baldric.net/2009/07/05/tor-on-a-vps/">remote tor node</a> on a VPS about this time last year, I have played about with various configurations (and used different providers) but I have now settled on using two high bandwidth servers on different networks. One (at <a href="https://www.daily.co.uk/products/virtual-private-servers/index.html">daily.co.uk</a>) allows 750 Gig of traffic per month, the other (a new player on the block called <a href="http://www.thrustvps.com/vps/advancedvps/">ThrustVPS</a>) allows 1000 Gig of traffic. These limits are remarkably generous given the low prices I pay (the 1000 Gig server cost me £59.42, inc VAT, for a <strong>year.</strong> OK, that was a special offer, but they are still good value at full price) and they allow me to provide two reasonably fast exit servers to the tor network.  Both suppliers know that I am running tor nodes and are relaxed about that. Some suppliers are less so.</p>
<p>I fund fast exit nodes as a way of paying something back to the community &#8211; but as I have pointed out before, they also allow me to have a permanent entry point to the tor network which I can tunnel to over ssh, thus protecting my own tor usage from snoopers.  For some time I used a configuration based on <a href="https://trac.torproject.org/projects/tor/wiki/TheOnionRouter/SshPortForwardedTor">tyranix&#8217;s</a> notes documented on the tor project wiki. But eventually I found that to be rather limiting because it meant that I had to remember to run an ssh listener on each machine I used around the house (my laptop, netbook, two desktops, my wife&#8217;s machine etc) and to configure the browser settings as necessary. Then I hit upon the notion of centralising the ssh listener on one machine (I used the plug) in a sort of ssh proxy configuration. This meant that I only had to configure the local browsers to use the central ssh listener as a proxy and everything else could be left untouched. It also has the distinct advantage that my wife no longer has to worry about anything more complex than switching browser when she wants to use tor.</p>
<p>But I hit a snag when initially setting up ssh on the plug. For some reason (which I have never successfully bottomed out) the ssh process dies after an hour of inactivity. This is not helpful. Enter <a href="http://www.debianadmin.com/autossh-automatically-restart-ssh-sessions-and-tunnels.html">autossh.</a>  Using autossh means that the listener is restarted automagically whenever it dies so I can be confident that my proxy will always be there when I need it.</p>
<p>Here&#8217;s the command used on the plug to fire up the proxy:</p>
<p><code>autossh -M 0 -N -C -g -l user -f -L 192.168.57.200:8000:127.0.0.1:8118 tornode</code></p>
<p>That says: </p>
<p>- M 0 &#8211; turn off monitoring so that autossh will only restart ssh when it dies.<br />
- N &#8211; do not execute a command at the remote end (i.e. we are simply tunneling)<br />
- C &#8211; compress traffic<br />
- g &#8211; allow remote hosts to connect to this listener (I limit this to the local network through iptables on the plug)<br />
- l user &#8211; login as this user at the remote end<br />
- f &#8211; background the process<br />
- L 192.168.57.200:8000 &#8211; listen on port 8000 on the given IP address (rather than the more usual localhost address)<br />
- 127.0.0.1:8118 tornode &#8211; and forward the traffic to localhost port 8118 on the remote machine called tornode</p>
<p>Of course &#8220;tornode&#8221; must be running ssh on a port reachable by the proxy. Again, I use iptables on tornode to limit ssh connections to my fixed IP address &#8211; don&#8217;t want random bad guys knocking on the door.   </p>
<p>Now on tornode I have <a href="http://www.pps.jussieu.fr/~jch/software/polipo/">polipo</a> listening on port 8118 on localhost. I used to use privoxy for this, but I have found polipo to be much faster, and speed matters when you are using tor. My polipo configuration forwards its traffic to the tor socks listener on localhost 9050. I also disabled the local polipo cache (diskCacheRoot = &#8220;&#8221;) because leaving it enabled means that the cache (by default /var/cache/polipo) directory will contain a copy of your browsed destinations in an easily identifable form &#8211; not smart if you really want your browsing to be anonymous (besides, my wife deserves as much privacy as do I).</p>
<p>The final bit of configuration needed is simple. Set your chosen browser to use the proxy on port 8000 on address 192.168.57.200. Since I use firefox for most of my browsing, I simply use opera for tor and I have that browser stripped to its basics and locked down as much as possible. Using tor is then simply a matter of firing up opera in place of firefox. This means that I always know when I am using tor or not (and just to reassure myself, the opera homepage is the <a href="http://check.torproject.org/">torcheck</a> page). </p>
<p>You can&#8217;t be too careful. </p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2010/08/01/autossh-or-how-to-use-tor-through-a-central-ssh-proxy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>scroogle is having a problem</title>
		<link>http://baldric.net/2010/07/04/scroogle-is-having-a-problem/</link>
		<comments>http://baldric.net/2010/07/04/scroogle-is-having-a-problem/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 20:26:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[networks and networking]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[trivial musing]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=582</guid>
		<description><![CDATA[I posted a note about scroogle back in January. Scroogle offered an SSL interface to the google engine, and, moreover, didn&#8217;t lumber its users with google cookies and sundry other irritations. Since then, however, google themselves have started to offer an SSL interface and, coincidentally, scroogle seem to have started to have some problems. If [...]]]></description>
			<content:encoded><![CDATA[<p>I posted a note about scroogle back in <a href="http://baldric.net/2010/01/02/using-scroogle/">January</a>. Scroogle offered an SSL interface to the google engine, and, moreover, didn&#8217;t lumber its users with google cookies and sundry other irritations. Since then, however, google themselves have started to offer an SSL interface and, coincidentally, scroogle seem to have started to have some <a href="http://www.theregister.co.uk/2010/07/02/scroogle_no/">problems.</a></p>
<p>If you visit the scroogle SSL interface, you get a <a href="https://ssl.scroogle.org/cgi-bin/nbbwssl.cgi">redirect</a> to a notice which explains why some changes made at google mean that scroogle can no longer work properly. Scroogle managed to get a workaround  in place for a few days, but it seems that another google change has finally killed that too unless google can be convinced to help out &#8211; unlikely in my view. The scroogle redirect page (dated 1 July 2010) has the following line from Daniel Brandt:</p>
<blockquote><p>&#8220;Thank you for your support during these past five years. Check back in a week or so; if we don&#8217;t hear from Google by next week, I think we can all assume that Google would rather have no Scroogle, and no privacy for searchers.&#8221;</p></blockquote>
<p>That in itself is bad enough, but as a separate new <a href="http://www.scroogle.org/botnote.html">posting</a> explains, scroogle now seems to be the target of a botnet aimed at swamping its servers. As Brandt goes on to say:</p>
<blockquote><p>&#8220;Google has a few hundred thousand servers, while Scroogle has six. They can put up with sites that spread malware, but our bandwidth is limited. Even if Google relents and the output=ie interface returns, this Scroogle malware problem could still be increasing at that point. Eventually it alone might shut down Scroogle.&#8221;</p></blockquote>
<p>Sad. I hate to see the little guy lose out.</p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2010/07/04/scroogle-is-having-a-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tor server compromise</title>
		<link>http://baldric.net/2010/01/22/tor-server-compromise/</link>
		<comments>http://baldric.net/2010/01/22/tor-server-compromise/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 21:09:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[free software]]></category>
		<category><![CDATA[network (in)security]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[TOR]]></category>

		<guid isPermaLink="false">http://baldric.net/?p=441</guid>
		<description><![CDATA[According to this post by Roger Dingledine, two tor directory servers were compromised recently. In that post Dingledine said: In early January we discovered that two of the seven directory authorities were compromised (moria1 and gabelmoo), along with metrics.torproject.org, a new server we&#8217;d recently set up to serve metrics data and graphs. The three servers [...]]]></description>
			<content:encoded><![CDATA[<p>According to <a href="http://archives.seul.org/or/talk/Jan-2010/msg00161.html">this</a> post by Roger Dingledine, two tor directory servers were compromised recently. In that post Dingledine said:</p>
<blockquote><p>In early January we discovered that two of the seven directory authorities were compromised (moria1 and gabelmoo), along with metrics.torproject.org, a new server we&#8217;d recently set up to serve metrics data and graphs. The three servers have since been reinstalled with service migrated to other servers.
</p></blockquote>
<p>Whilst the direrctory servers apparently also hosted the tor project&#8217;s svn and git source code repositories, Dingledine is confident that the source code has not been tampered with &#8211; and nor has there been any possible compromise of user anonymity. Neverthless, the project recommends that tor users and operators upgrade to the latest version. Good advice I&#8217;d say &#8211; I&#8217;ve just upgraded mine. </p>
]]></content:encoded>
			<wfw:commentRss>http://baldric.net/2010/01/22/tor-server-compromise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

