<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">

<channel>
<title>Hackszine: Network Security</title>
<link>http://www.hackszine.com/blog/archive/network_security/</link>
<description>O&apos;Reilly&apos;s Hacks Series reclaims the term &apos;hacking&apos; for the good guys--innovators who explore and experiment, unearth shortcuts, create useful tools, and come up with fun things to try on their own</description>
<language>en-us</language>
<copyright>Copyright 2008, O'Reilly Media, Inc.</copyright>
<lastBuildDate>Tue, 29 Jul 2008 20:52:33 -0800</lastBuildDate>
<pubDate>Sun, 09 Nov 2008 18:02:40 -0800</pubDate>
<generator>http://www.movabletype.org/?v=4.1</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<itunes:author>O'Reilly Media, Inc.</itunes:author>
<itunes:subtitle>Clever solutions to interesting problems.</itunes:subtitle>
<itunes:summary>Hackszine Podcast</itunes:summary>
<itunes:owner>
<itunes:email>webmaster@makezine.com</itunes:email>
</itunes:owner>
<category>Technology</category>
<itunes:category text="Technology">
</itunes:category>
<itunes:category text="Technology">
  <itunes:category text="Gadgets" />
</itunes:category>
<itunes:category text="Games &amp; Hobbies" >
</itunes:category>
<itunes:category text="Science">
</itunes:category>
<itunes:image href="http://makezine.com/images/hackszine/rss_icon.jpg" />
<itunes:explicit>no</itunes:explicit>


<item>
<title>DJBDNS, DNS exploits, Bernstein, Schneier, and security by design</title>
<itunes:summary>If you haven&apos;t been living under a rock, you&apos;ve probably heard of the DNS vulnerability that Dan Kaminsky announced about a half year ago. The plan was that Kaminsky would be working with DNS server vendors to provide a patch,...</itunes:summary>
<description>
<![CDATA[<p>If you haven't been living under a rock, you've probably heard of the DNS vulnerability that Dan Kaminsky announced about a half year ago. The plan was that Kaminsky would be working with DNS server vendors to provide a patch, giving ample time for administrators to upgrade before the details of the exploit were released later this year. Unfortunately the exploit was leaked prematurely, causing a general freak-out mode amongst people that administer DNS systems.</p>

<p>When I read the article on Slashdot, the "all name servers should be patched as soon as possible" quote dropped a bit of scare on me too. What about my sad little DNS server? I envisioned spending an evening working through a time consuming process of patching and reconfiguring things that I haven't had to touch in years. Much to my pleasant surprise, djbdns, D. J. Bernstein's DNS server, was not vulnerable. My decision to use djbdns a number of years ago was primarily due to his vocal philosophy of engineering  security by design instead of by response.</p>

<p>Bruce Schneier's analysis of things is spot on as usual. It's a solid case study for hygienic software engineering practices and the design of secure systems.</p>

<blockquote>The real lesson is that the patch treadmill doesn't work, and it hasn't for years. This cycle of finding security holes and rushing to patch them before the bad guys exploit those vulnerabilities is expensive, inefficient and incomplete. We need to design security into our systems right from the beginning. We need assurance. We need security engineers involved in system design. This process won't prevent every vulnerability, but it's much more secure -- and cheaper -- than the patch treadmill we're all on now.

<p><br />
What a security engineer brings to the problem is a particular mindset. He thinks about systems from a security perspective. It's not that he discovers all possible attacks before the bad guys do; it's more that he anticipates potential types of attacks, and defends against them even if he doesn't know their details. I see this all the time in good cryptographic designs. It's over-engineering based on intuition, but if the security engineer has good intuition, it generally works.</p>

<p>Kaminsky's vulnerability is a perfect example of this. Years ago, cryptographer Daniel J. Bernstein looked at DNS security and decided that Source Port Randomization was a smart design choice. That's exactly the work-around being rolled out now following Kaminsky's discovery. Bernstein didn't discover Kaminsky's attack; instead, he saw a general class of attacks and realized that this enhancement could protect against them. Consequently, the DNS program he wrote in 2000, djbdns, doesn't need to be patched; it's already immune to Kaminsky's attack.<br />
</blockquote></p>

<p>The djbdns server wasn't pre-installed on the Linux distro I based my poor old server on. DJB's deamontools package, which manages the startup and shutdown of the service, was annoying to deal with when every other application just uses a normal init rc script. The dns server configuration and setup was also unfamiliar to me, having previously only worked with BIND zone files.</p>

<p>There's one other thing that has really been different with djbdns than any other DNS server I've ever administered: I've never had to patch it. I've only had one other software experience like this, with the qmail mail transfer system. Qmail is also designed by Bernstein. Hmm.</p>

<p>If you're upgrading your DNS server anyway, maybe now is the time to start thinking about your alternatives.</p>

<p><a href="http://cr.yp.to/djbdns.html">Daniel J. Bernstein's djbdns server</a><br />
<a href="http://www.schneier.com/blog/archives/2008/07/the_dns_vulnera.html">Schneier - The DNS Vulnerability</a><br />
<a href="http://cr.yp.to/djbdns/forgery.html">DJB on DNS forgery</a><br />
<a href="http://it.slashdot.org/it/08/07/21/2212227.shtml">Slashdot - Kaminsky's DNS Attack Disclosed, Then Pulled</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/07/djbdns_dns_exploits_bernstein.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/07/djbdns_dns_exploits_bernstein.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/07/djbdns_dns_exploits_bernstein.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/07/djbdns_dns_exploits_bernstein.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Tue, 29 Jul 2008 20:52:33 -0800</pubDate>

</item>

<item>
<title>Cyber Security Awareness Week</title>
<itunes:summary> Dan Guido from the Information Systems and Internet Security Lab at the Polytechnic Institute of NYU wrote in about the Institute&apos;s 5th annual Cyber Security Awareness Week. If you&apos;re in high-school or a college undergraduate program, this is a...</itunes:summary>
<description>
<![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="csaw_20080727.jpg" src="http://www.hackszine.com/csaw_20080727.jpg" width="500" height="562" class="mt-image-none" style="" /></span></p>

<p>Dan Guido from the Information Systems and Internet Security Lab at the Polytechnic Institute of NYU wrote in about the Institute's 5th annual Cyber Security Awareness Week. If you're in high-school or a college undergraduate program, this is a great opportunity to test your infosec skills against your peers, and hopefully earn a little prize money in the process.</p>

<blockquote>ISIS Lab is organizing NYU-Poly's 5th annual Cyber Security Awareness Week (CSAW) where students can compete and win prizes in a variety of information security challenges. There will be door prizes, raffles for participating, and bonus prizes for undergrad and high school participants. Qualified finalists will receive a travel scholarship to attend the awards ceremony in New York City.</blockquote>

<p>There are a number of events, including an application security "capture the flag" challenge, a security quiz which covers everything from cryptography to risk management, and a 5-day forensics puzzle. There's even an embedded systems challenge where teams are tasked with trying to find hardware and software bugs in a mock control system.</p>

<p>This looks like a lot of fun. Some of the contest materials become available at the beginning of September, so sign up soon if you're interested in participating.</p>

<p><a href="http://isis.poly.edu/csaw/">Cyber Security Awareness Week 2008</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/07/cyber_security_awareness_week.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/07/cyber_security_awareness_week.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/07/cyber_security_awareness_week.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/07/cyber_security_awareness_week.html?CMP=OTC-7G2N43923558</guid>
<category>Cryptography</category>
<pubDate>Sun, 27 Jul 2008 21:28:39 -0800</pubDate>

</item>

<item>
<title>Videos from past Shmoocons</title>
<itunes:summary>You may have dug the videos of past DEFCON conferences that we posted back in May, but there&apos;s a whole other infosec conference, Shmoocon, which is held in D.C. every February. ShmooCon is an annual East coast hacker convention hell-bent...</itunes:summary>
<description>
<![CDATA[<p>You may have dug the videos of past DEFCON conferences that we posted back in May, but there's a whole other infosec conference, Shmoocon, which is held in D.C. every February.</p>

<blockquote>ShmooCon is an annual East coast hacker convention hell-bent on offering three days of an interesting atmosphere for demonstrating technology exploitation, inventive software & hardware solutions, and open discussions of critical infosec issues.</blockquote>

<p>It's a while until the next conference comes up, but there have been some great presentations at past conferences, most of which are available online. Peteris Krumins recently assembled links to all of the videos and presentation files that are available at the Shmoocon site (including the 2008 conference), posting them to his blog as a single big index.</p>

<p>A quick search on YouTube also turned up a series of videos by Scott Moulton from Shmoocon 2007 and 2008 on the topic of data recovery for both traditional hard disks and flash drives. It's pretty fascinating stuff, whether you're interested in this from a forensics or security perspective, or if you've ever just wondered what exactly goes into recovering important data from a crashed disk when you send it out to a data recovery shop.</p>

<p><a href="http://www.catonmat.net/blog/shmoocon-hacking-videos/">Hacking Videos from Shmoocon</a><br />
<a href="http://www.youtube.com/profile_videos?user=SuperFlyFlippingA">Scott Moulton's videos on data recovery for SSD flash drives and hard disks</a><br />
<a href="http://www.shmoocon.org/">Shmoocon Infosec Conference</a></p>

<p>See also: <a href="http://www.hackszine.com/blog/archive/2008/05/videos_from_past_defcons.html">Videos from past DEFCONs</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/06/videos_from_past_shmoocons.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/06/videos_from_past_shmoocons.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/06/videos_from_past_shmoocons.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/06/videos_from_past_shmoocons.html?CMP=OTC-7G2N43923558</guid>
<category>Data</category>
<pubDate>Tue, 24 Jun 2008 21:14:07 -0800</pubDate>

</item>

<item>
<title>SafeHistory: protect your privacy from visited link analysis</title>
<itunes:summary>A couple of days ago I wrote about the visited link javascript hack that lets any website operator query a user&apos;s browser history to determine if they&apos;ve visited any other particular site. One possible use for this is to detect...</itunes:summary>
<description>
<![CDATA[<p>A couple of days ago I wrote about the visited link javascript hack that lets any website operator query a user's browser history to determine if they've visited any other particular site. One possible use for this is to detect which Web2.0 social applications a user visits so that you can display the appropriate link badges.</p>

<p>It's a creepy scenario, though, that a website operator can effectively bypass the browser's intended security model to invade your privacy by seeing if you've been visiting other sites. Hackszine reader Logical Extremes commented with a solution to this problem:</p>

<blockquote>This is a common phishing vector. Rather than encouraging broader use, we should be educating and protecting against it. There is a Firefox add-on that explicitly blocks this.</blockquote>

<p>Some hackers over at the Stanford Computer Science Department created SafeHistory, a Firefox plugin that protects against visited link tracking techniques. It works by only allowing the a:visited property to apply to off-site links that were previously visited from the current URL.</p>

<p>This seems to be a reasonable way to keep the functionality of visited links without leaking any additional information. I wonder how long it will be before this is adopted as a browser behavior standard.</p>

<p><a href="http://www.safehistory.com/">Stanford SafeHistory</a><br />
<a href="http://crypto.stanford.edu/sameorigin/sameorigin.pdf">Protecting Browser State Using Same Origin Policy (PDF)</a></p>

<p>Previously:<br />
<a href="http://www.hackszine.com/blog/archive/2008/05/detect_which_sites_a_web_user.html">Detect which sites a web user visits</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/safehistory_protect_your_priva.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/safehistory_protect_your_priva.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/05/safehistory_protect_your_priva.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/05/safehistory_protect_your_priva.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Fri, 30 May 2008 20:17:02 -0800</pubDate>
<enclosure url="http://crypto.stanford.edu/sameorigin/sameorigin.pdf" length="111602" type="application/pdf" />
</item>

<item>
<title>Detect which sites a web user visits</title>
<itunes:summary> Aza Raskin&apos;s SocialHistory Javascript library allows you to do something incredibly cool: detect which sites your web users have visited on a per-user basis. The javascript runtime isn&apos;t supposed to be privy to the information in a user&apos;s browser...</itunes:summary>
<description>
<![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="socialdetect_20080528.jpg" src="http://www.hackszine.com/socialdetect_20080528.jpg" width="500" height="147" class="mt-image-none" style="" /></span></p>

<p>Aza Raskin's SocialHistory Javascript library allows you to do something incredibly cool: detect which sites your web users have visited on a per-user basis. The javascript runtime isn't supposed to be privy to the information in a user's browser history, but there's an information backchannel common to all major browsers which allows you to effectively interrogate the browsing history and determine if a particular URL has been visited before. </p>

<p>It works by creating an anchor link to the site in question and applying a CSS style to the link, specifying a different display property for "a:visited". By reading the computed style back from the anchor element, you can then determine the property's value, and consequently if the user had visited the URL or not.</p>

<p>This could probably be used for a number of devious purposes, but Aza's concept for the SocialHistory library is actually really useful. By querying the default URLs that belong to all the major social network sites, you can figure out which sites a particular user visits and custom tailor any social badges that you display. If they use del.icio.us, you show a del.icio.us link.  If they visit Digg, you show the Digg button. It's an awesome feature made possible by a pretty freaky security leak.</p>

<p>Now, it's not perfect. It requires that you query the exact URLs that a user may have visited. You can't figure out everywhere they've been, how frequently, or in what order, only whether a particular URL that you know about has been visited before. On the other hand, it's a pretty useful tool considering you aren't even supposed to be able to do this.</p>

<p><a href="http://azarask.in/blog/post/socialhistoryjs/">How to Detect the Social Sites Your Visitors Use</a><br />
<a href="http://code.google.com/p/aza/source/browse/trunk/SocialHistory/SocialHistory.js">SocialHistory.js</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/detect_which_sites_a_web_user.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/detect_which_sites_a_web_user.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/05/detect_which_sites_a_web_user.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/05/detect_which_sites_a_web_user.html?CMP=OTC-7G2N43923558</guid>
<category>Ajax</category>
<pubDate>Wed, 28 May 2008 19:44:20 -0800</pubDate>

</item>

<item>
<title>A VAX in your Linux box</title>
<itunes:summary>Like many, my first introduction to the Internet came by way of a VAX/VMS server operated by the local University where I lived. A friend of a friend scenario landed me an account on the system, and after about a...</itunes:summary>
<description>
<![CDATA[<p>Like many, my first introduction to the Internet came by way of a VAX/VMS server operated by the local University where I lived. A friend of a friend scenario landed me an account on the system, and after about a week I was hooked. It wasn't long before I signed up for a night class so that I could parlay an official student record into an account of my own (I was in high school at the time).</p>

<p>I was recently wondering about what's happened with OpenVMS. Is it still around? Will it run on normal PC hardware?</p>

<p>It turns out there are still a number of VMS devotees and hobbyists out there, and OpenVMS can still be found running not only on hobbyist legacy systems, but also in modern server environments where security, fault-tolerance, and uptime command a high premium over hardware cost and operating system popularity. There's even a freely available hobbyist license for OpenVMS, and you can get the installer media shipped your way for $30. </p>

<p>But what do you run it on if you don't have a VAX or Alpha in your basement? An emulator, of course! The SIMH emulator, created by the Computer History Simulation Project, is capable of emulating a DEC VAX and will run on a Linux, Windows or OS X host machine. </p>

<p>The most difficult thing, from what I've read, is that you need to jump through a number of hoops to get the OpenVMS license and media and the license needs to be renewed yearly. Phillip Wherry wrote a very extensive howto in 2004 that walks you through obtaining the media, building and configuring the SIMH emulator in Linux, and installing OpenVMS on your virtual VAX. If you want to run OpenVMS on Windows or OS X, there are pre-compiled SIMH binaries available for both platforms. The installation process should be the same for whichever host system you use.</p>

<p>Keep in mind that Phillip's howto was written in 2004, and I haven't gotten my OpenVMS hobbyist license yet, so I don't know for sure if there are any gotchas in there. The DECUS user group still seems to be alive and the company that ships the OpenVMS media is still taking orders, which is a pretty good sign. If any readers out there are currently running this setup, please give us an update in the comments. I'm excited to see some of my old DCL scripts running again, so I'm keeping my fingers crossed for good news here.</p>

<p><a href="http://www.wherry.com/gadgets/retrocomputing/vax-simh.html">Running VAX/VMS Under Linux Using SIMH</a><br />
<a href="http://simh.trailing-edge.com/">SIMH VAX Emulator (Linux and Windows)</a><br />
<a href="http://homepage.mac.com/mba/simh/index.html">SIMH binaries for OS X</a><br />
<a href="https://www.encompassus.org/resources/openvms/">Encompass - DECUS User Group (Sign up for membership which is required for the license and media</a><br />
<a href="http://www.montagar.com/hobbyist/mount.html">Order Form For OpenVMS Hobbyist CD Media</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/a_vax_in_your_linux_box.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/a_vax_in_your_linux_box.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/05/a_vax_in_your_linux_box.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/05/a_vax_in_your_linux_box.html?CMP=OTC-7G2N43923558</guid>
<category>Retro Computing</category>
<pubDate>Sun, 11 May 2008 21:45:05 -0800</pubDate>

</item>

<item>
<title>Videos from past DEFCONs</title>
<itunes:summary>I wasn&apos;t able to make it to last years DEFCON hacker/security conference, and DEFCON 16 isn&apos;t until later this summer. As you can imagine, I&apos;ve been a little impatient for a good ol&apos; info-security paranoia fix. Thankfully, it looks like...</itunes:summary>
<description>
<![CDATA[<p>I wasn't able to make it to last years DEFCON hacker/security conference, and DEFCON 16 isn't until later this summer. As you can imagine, I've been a little impatient for a good ol' info-security paranoia fix. Thankfully, it looks like a ton of videos from past conferences have been posted to the DEFCON site. This might be pretty interesting to even the die-hards in the crowd who religiously attend. Having been to a couple of these, it's pretty hard (read: impossible) to get into all the sessions you would like to hit.</p>

<p>The more recent content is encoded as mp4's.  Unfortunately, you'll need Real Player to view much of the older content.  It's better than nothing, though.</p>

<p>It also looks like there have been a number of sessions from DEFCON 15 encoded and uploaded to Google Video.  I've included a link to a list of these below as well.</p>

<p><a href="https://www.defcon.org/html/links/defcon-media-archives.html">Defcon Media Archives: 1993 - Present</a><br />
<a href="http://www.roysac.com/blog/2007/09/all-defcon-15-sessions-and-panels.html">Links to DefCon 15 Session and Panel Videos on Google Video</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/videos_from_past_defcons.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/05/videos_from_past_defcons.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/05/videos_from_past_defcons.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/05/videos_from_past_defcons.html?CMP=OTC-7G2N43923558</guid>
<category>Cryptography</category>
<pubDate>Sun, 04 May 2008 20:36:12 -0800</pubDate>

</item>

<item>
<title>Stop XSS attacks with SafeHTML</title>
<itunes:summary>If you allow user-contributed content in your site, you run into the problem of dealing with user supplied HTML in a safe manner. The most secure way of dealing with things, of course, is to strip or escape all HTML...</itunes:summary>
<description>
<![CDATA[<p>If you allow user-contributed content in your site, you run into the problem of dealing with user supplied HTML in a safe manner.  The most secure way of dealing with things, of course, is to strip or escape all HTML from user input fields. Unfortunately, there are many situations where it would be nice to allow a large subset of HTML input, but block out anything potentially dangerous.</p>

<p>SafeHTML is a lightweight PHP user input sanitizer that does just that. Just run any input field through the SafeHTML filter and any javascript, object tags, or layout breaking tags will be stripped from the supplied text. It also does a reasonable job of correcting any gnarly, malformed code, which is also a common problem with user-contributed data.</p>

<p>Using it is easy. Just instantiate the SafeHTML object and call its parse method:</p>

<blockquote><code>
require_once('classes/safehtml.php');

<p>$safehtml =& new SafeHTML();</p>

<p>if ( isset( $_POST["inputfield"] ) ) <br />
{<br />
&nbsp;&nbsp;$inputfield=$_POST["inputfield"];<br />
&nbsp;&nbsp;$cleaninput = $safehtml-&gt;parse($inputfield);<br />
}<br />
</code></blockquote></p>

<p>This will take the posted "inputfield" parameter, strip any baddies, XHTMLify what's left, and the result will be stored in the $cleaninput variable. It's a simple addition to your code, and a lot more straightforward than trying to roll your own.</p>

<p>My only beef with the package is that it's written with a default allow policy, stripping out tags that are in its deleteTags array, but essentially allowing anything else through.  If you'd rather only let through tags that you specifically want to allow, I'd recommend adding an allowTags array and adjusting the _openHandler method, adding the following after the deleteTags check:</p>

<blockquote><code>

<p>if ( ! in_array($name, $this-&gt;allowTags)) {<br />
&nbsp;&nbsp;return true;<br />
}</p>

<p></code></blockquote></p>

<p>You'll need to fill allowTags with everything you know to be safe and welcome, and you may miss a few that people will end up wanting to legitimately use, but this is easily corrected and the default deny policy is much safer in the long run.</p>

<p><a href="http://pixel-apes.com/safehtml/">SafeHTML - an anti-XSS HTML parser, written in PHP</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/04/stop_xss_attacks_with_safehtml.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/04/stop_xss_attacks_with_safehtml.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/04/stop_xss_attacks_with_safehtml.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/04/stop_xss_attacks_with_safehtml.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Tue, 29 Apr 2008 20:49:15 -0800</pubDate>

</item>

<item>
<title>Add keystroke user verification to Gnome</title>
<itunes:summary> Nathan Harrington amended the GNOME Desktop Manager to include keystroke dynamics in the user verification process. When the user enters their username, the timings between key press events are measured and compared against a stored pattern. The theory is...</itunes:summary>
<description>
<![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="keytiming_20080404.jpg" src="http://www.hackszine.com/keytiming_20080404.jpg" width="500" height="381" class="mt-image-none" style="" /></span></p>

<p>Nathan Harrington amended the GNOME Desktop Manager to include keystroke dynamics in the user verification process. When the user enters their username, the timings between key press events are measured and compared against a stored pattern.  The theory is that there is a significant difference in timings for words typed by different individuals, so the way a username is entered provides a bit of extra "fingerprint" information that can be used to help authenticate a user.<br />
 <br />
I'm not sure how immediately useful this will be, since this particular example won't affect other login methods, such as an ssh session. Nevertheless, the idea is pretty cool and the code is all there for you to monkey around with.</p>

<p><a href="http://www.ibm.com/developerworks/opensource/library/os-identify/">Identify and verify users based on how they type</a> [via <a href="http://developers.slashdot.org/developers/08/04/04/169229.shtml">slashdot</a>]</p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/04/adding_keystroke_signatures_to.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/04/adding_keystroke_signatures_to.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/04/adding_keystroke_signatures_to.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/04/adding_keystroke_signatures_to.html?CMP=OTC-7G2N43923558</guid>
<category>Cryptography</category>
<pubDate>Fri, 04 Apr 2008 20:28:02 -0800</pubDate>

</item>

<item>
<title>Ram dump over Firewire</title>
<itunes:summary> Unlike USB2, the Firewire spec allows devices to have full DMA access. By impersonating the appropriate device, a PC can essentially obtain full read/write access to another machine&apos;s RAM, just by connecting the two machines with a Firewire cable....</itunes:summary>
<description>
<![CDATA[<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="firewirememdump_20080304.jpg" src="http://www.hackszine.com/firewirememdump_20080304.jpg" width="500" height="334" class="mt-image-none" style="" /></span></p>

<p>Unlike USB2, the Firewire spec allows devices to have full DMA access. By impersonating the appropriate device, a PC can essentially obtain full read/write access to another machine's RAM, just by connecting the two machines with a Firewire cable. Adding to the recent discussion about the insecurities of physical access and Princeton's cold-boot RAM dump demonstration, Adam Boileau released a Linux Firewire utility that will give you immediate Administrator to an XP machine:</p>

<blockquote>It's two years later, and I think anyone who was going to get the message about Firewire has already got it, and anyone who was going to be upset about it has got over it. Besides, according to Microsoft's definition, it never was a Security Vulnerability anyway - screensavers and login prompts are - as Bruce says - about the Feeling of Security. Anyway, today's release day for Winlockpwn, the tool I demoed at Ruxcon for bypassing windows auth, or popping an admin shell at the login window.

<p>...</p>

<ul><li>Yes, you can read and write main memory over firewire on windows.</li><li>Yes, this means you can completely own any box who's firewire port you can plug into in seconds.</li><li>Yes, it requires physical access. People with physical access win in lots of ways. Sure, this is fast and easy, but it's just one of many.</li><li>Yes, it's a FEATURE, not a bug. It's the Fire in Firewire. Yes, I know this, Microsoft know this. The OHCI-1394 spec knows this. People with firewire ports generally dont.</li></ul></blockquote>

<p>Adam's tools include a few Python apps that can copy and impersonate Firewire device signatures, dump RAM on a remote machine, bypass Windows authentication, and extract BIOS passwords. It's not exactly comforting, but I've got a new appreciation for Firewire now. This is the sort of access that used to only be possible by creating hardware that physically connects to the PCI bus. Now all you need is a cable and a laptop.</p>

<p>Firewire, DMA & Windows - direct memory access over Firewire - [<a href="http://www.theage.com.au/news/security/hack-into-a-windows-pc--no-password-needed/2008/03/04/1204402423638.html">via</a>] <a href="http://storm.net.nz/projects/16">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/03/ram_dump_over_firewire.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/03/ram_dump_over_firewire.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/03/ram_dump_over_firewire.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/03/ram_dump_over_firewire.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Tue, 04 Mar 2008 19:08:30 -0800</pubDate>

</item>

<item>
<title>Remote file access through email</title>
<itunes:summary>Shantanu Goel put a proof-of-concept Outlook macro together that will send you files in response to a specially formatted email. The idea is that you can activate this and leave Outlook running on your computer at work and if you...</itunes:summary>
<description>
<![CDATA[<p>Shantanu Goel put a proof-of-concept Outlook macro together that will send you files in response to a specially formatted email. The idea is that you can activate this and leave Outlook running on your computer at work and if you are offsite and need to grab a document it's only an email away.</p>

<blockquote>
This project came into being after reading <a href="http://lifehacker.com/357710/retrieve-any-file-on-your-home-computer-by-email">this post</a> at lifehacker (original post and solution <a href="http://murphymac.com/retrieve-a-remote-file-by-email/">here</a>). It listed a method to retrieve mails on your home/office PC by sending a "magic email" to it, but it was only for mac's. Seeing that people wanted it for windows as well, I thought of making something up during lunch time at office.
</blockquote>

<p>If you think about it, this is kind of a clever way to get around a corporate firewall. It'd be funny to add some directory listing functionality to it and formalize an email file transfer protocol.</p>

<p>Remote File Access Through E-Mail -<a href="http://tech.shantanugoel.com/projects/windows/remote-file-access-through-e-mail">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/02/remote_file_access_through_ema.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/02/remote_file_access_through_ema.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/02/remote_file_access_through_ema.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/02/remote_file_access_through_ema.html?CMP=OTC-7G2N43923558</guid>
<category>Windows</category>
<pubDate>Sat, 23 Feb 2008 20:07:48 -0800</pubDate>

</item>

<item>
<title>Van Eck phreaking</title>
<itunes:summary> In 1985, Wim van Eck published a paper which described how the state of a CRT monitor could be reproduced remotely based on the device&apos;s electromagnetic radiation. Van Eck or TEMPEST devices, whatever you prefer to call them, aren&apos;t...</itunes:summary>
<description>
<![CDATA[<p><img alt="tempest_20080122.jpg" src="http://www.hackszine.com/tempest_20080122.jpg" width="500" height="510" /></p>

<p>In 1985, Wim van Eck published a paper which described how the state of a CRT monitor could be reproduced remotely based on the device's electromagnetic radiation. Van Eck or TEMPEST devices, whatever you prefer to call them, aren't just the secret sauce in your favorite science fiction, though for some reason there hasn't been a lot of amateur or open source activity here. I'm not sure why, but I suspect as software radios become more affordable, people will start experimenting more in this space.</p>

<p>There are two open source Van Eck projects that I know of. The first, pictured above, is Erik Thiele's Tempest for Eliza project. By drawing specific black and white patterns on your monitor, Tempest is able to generate audible signals in the AM range. You can use Tempest to play an mp3 file that you can tune in on your radio.</p>

<p>Tempest for Eliza is a fun demo, but what about being able to read someone's monitor remotely? </p>

<p>There's a second open source project, called EckBox, that claims to do just this. By piping the audio from a radio through an 8-bit analog to digital converter, EckBox claims to be able to read this data from a PC parallel port and reproduce the image of an 800x600 monitor. Looking at the code, it seems almost too simple to be true.  Likewise, the project hasn't been updated since June 2004 and there aren't many references or screenshots or words of success floating around the net. Anyone with a parallel port and an ADC want to give this a shot and let us know how it works?</p>

<p>Tempest for Eliza - <a href="http://www.erikyyy.de/tempest/">Link</a><br />
EckBox - <a href="http://eckbox.sourceforge.net/">Link</a></p>

<p><b>Further Reading</b><br />
Wim van Eck's Paper (PDF) - <a href="http://jya.com/emr.pdf">Link</a><br />
Compromising Emanations (Markus G. Kuhn, PDF) - <a href="http://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-577.pdf">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2008/01/van_eck_phreaking.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2008/01/van_eck_phreaking.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2008/01/van_eck_phreaking.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2008/01/van_eck_phreaking.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Tue, 22 Jan 2008 19:46:12 -0800</pubDate>
<enclosure url="http://jya.com/emr.pdf" length="719375" type="application/pdf" /><enclosure url="http://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-577.pdf" length="8371385" type="application/pdf" />
</item>

<item>
<title>Eavesdropping on Bluetooth headsets</title>
<itunes:summary> Here&apos;s a short video in which Joshua Wright demonstrates how a Bluetooth headset can be hijacked, allowing audio to be captured or sent to the device: Few users realize that Bluetooth headsets can be exploited granting a remote attacker...</itunes:summary>
<description>
<![CDATA[<p><object width="500" height="400"><param name="movie" value="http://www.youtube.com/v/1c-jzYAH2gw&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/1c-jzYAH2gw&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=0" type="application/x-shockwave-flash" wmode="transparent" width="500" height="400"></embed></object></p>

<p>Here's a short video in which Joshua Wright demonstrates how a Bluetooth headset can be hijacked, allowing audio to be captured or sent to the device:</p>

<blockquote>Few users realize that Bluetooth headsets can be exploited granting a remote attacker the ability to record and inject audio through the headset while the device is not in an active call. SANS Institute author and senior instructor Joshua Wright demonstrates.</blockquote>

<p>All that is necessary is knowing the device address, which can be easily sniffed, and the secret pin, which defaults to 0000. The headset audio is tapped while not in a call, so any room conversation the headset's mic can pick up can potentially be listened to remotely.</p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/12/eavesdropping_on_bluetooth_hea.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/12/eavesdropping_on_bluetooth_hea.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/12/eavesdropping_on_bluetooth_hea.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/12/eavesdropping_on_bluetooth_hea.html?CMP=OTC-7G2N43923558</guid>
<category>Wireless</category>
<pubDate>Sun, 30 Dec 2007 14:06:07 -0800</pubDate>

</item>

<item>
<title>How NOT to use TOR</title>
<itunes:summary>A lot of people use TOR as a sort of anonymity and encryption magic bullet, but that&apos;s really not what it&apos;s designed for. Your packets are encrypted and routed through various TOR nodes, each node only knowing about the node...</itunes:summary>
<description>
<![CDATA[<p>A lot of people use TOR as a sort of anonymity and encryption magic bullet, but that's really not what it's designed for.  Your packets are encrypted and routed through various TOR nodes, each node only knowing about the node on either side of it and unaware of the full routing path, until finally it pops out of an exit node, is decrypted and then sent along its way to the destination.  The fundamental idea is that only the exit node knows the final destination, and it doesn't know where the packet originated unless the operator of the exit node is in cahoots with all the other nodes along the packets' route.  TOR is a routing anonymization service.</p>

<p>A couple of months ago, 100 government and embassy email account passwords were published by Dan Egerstad.  What did these email accounts have in common?  Individuals from these organizations were presumably using the TOR network to protect their communications, but by sending unencrypted traffic over the TOR network, they were actually exposing this data to a lot of potentially nefarious parties. But wait, the data moving over the TOR network is encrypted, right?</p>

<p>Which brings us back to the exit node.  Your data leaves the TOR network in its raw form.  So if you are using an unencrypted protocol, your communication can be read (or modified) by the exit node or anything between the exit node and the destination server.  So while your immediate ISP can't really tell who you are sending packets to, someone at an exit node can, and chances are good that that someone is more interested in your communications than the average server on your normal routing path.</p>

<p>This someone might be a government entity, a criminal organization, or maybe just some Swedish security researcher dude who is interested in what's going over his five exit nodes and decides to publish the more interesting tidbits for the world to see.</p>

<blockquote>Just to give you something to think about we did look into a few servers out of 1000 we thought looked interesting. We aren't trying to tell you what to think, you will have to do that yourself.

<p>Example of Exit-nodes that can read your traffic:</p>

<p>•	Nodes named devilhacker, hackershaven...<br />
•	Node hosted by an illegal hacker-group<br />
•	Major nodes hosted anonymously dedicated to ToR by the same person/organization in Washington DC. Each handling 5-10TB data every month.<br />
•	Node hosted by Space Research Institute/Cosmonauts Training Center controlled by Russian Government<br />
•	Nodes hosted on several Government controlled academies in the US, Russia and around Asia.<br />
•	Nodes hosted by criminal identity stealers<br />
•	Node hosted by Ministry of Education Taiwan (China)<br />
•	Node hosted by major stock exchange company and Fortune 500 financial company<br />
•	Nodes hosted anonymously on dedicated servers for ToR costing the owner US$100-500 every month<br />
•	Node hosted by China Government official<br />
•	Nodes in over 50 countries with unknown owners<br />
•	Nodes handling over 10TB data every month</p>

<p>We can prove all this but not the intentions of each server. They might be very nice people spending a lot of money doing you a favor but it could just as well be something else. We don't however think it's weird that Universities are hosting nodes, just that you need to be aware of it. Criminals, hackers and Governments are running nodes, why?</blockquote></p>

<p>The moral of the story is that you shouldn't use TOR for the purposes of secure communications.  You should be using TOR to anonymize routing.  If you are passing indentifiable information over the wire that you don't want read, such as your email or bank information, you need to use a secure end-to-end encrypted channel, like ssh, https, or ssl-imap. What TOR provides is a mechanism for anonymizing the routing of your communications so that people in your routing path don't know who you're sending a message to.</p>

<p>Moral #2 is that information you send through the TOR network is more than likely under higher scrutiny by many interested parties.  Encryption matters here more than anywhere else.</p>

<p>How 100 sensitive accounts were compromized - <a href="http://www.derangedsecurity.com/time-to-reveal.../">Link</a><br />
Anonymity and the Tor Network (Schneier) - <a href="http://www.schneier.com/blog/archives/2007/09/anonymity_and_t_1.html">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/11/how_not_to_use_tor.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/11/how_not_to_use_tor.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/11/how_not_to_use_tor.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/11/how_not_to_use_tor.html?CMP=OTC-7G2N43923558</guid>
<category>Cryptography</category>
<pubDate>Mon, 05 Nov 2007 21:19:29 -0800</pubDate>

</item>

<item>
<title>De-anonymizing Tor and Detecting Proxies</title>
<itunes:summary>Catch this article over at ha.ckers.org regarding an easy way to bypass most anonymizing proxies (such as Tor) and figure out the true origin IP of a web surfer. Plugins such as Java or Flash can be written to make...</itunes:summary>
<description>
<![CDATA[<p>Catch this article over at ha.ckers.org regarding an easy way to bypass most anonymizing proxies (such as Tor) and figure out the true origin IP of a web surfer.  Plugins such as Java or Flash can be written to make a socket call back to the server.  Since the plugin isn't making a normal HTTP request, it ignores the proxy settings of your browser and connects directly to the server.  </p>

<blockquote><a href="http://ha.ckers.org/weird/tor.cgi">This code (it takes a several seconds to load)</a> uses a piece of JavaScript to instantiate a Java socket call back to the origin site. In doing so it bypasses the proxy settings of the browser, allowing you to de-anonymize people using proxies. It works great for Tor or just about any HTTP proxy that I can think of. Cool stuff.</blockquote>

<p>Ouch.</p>

<p>A safer anonymizing solution might be to route all traffic through a transparent proxy, while also blocking all traffic not destined for port 80.</p>

<p>De-anonymizing Tor and Detecting Proxies - <a href="http://ha.ckers.org/blog/20070926/de-anonymizing-tor-and-detecting-proxies/">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/10/deanonymizing_tor_and_detectin.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/10/deanonymizing_tor_and_detectin.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/10/deanonymizing_tor_and_detectin.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/10/deanonymizing_tor_and_detectin.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Sun, 28 Oct 2007 19:55:06 -0800</pubDate>

</item>

<item>
<title>UPnP: change a router&apos;s firewall rules from a client machine</title>
<itunes:summary> Universal Plug and Play support is available on most modern wireless and DSL routers. Among other things, it allows client machines on the local network to remotely configure the router&apos;s port forwarding, typically without authenticated access. Adrian Crenshaw has...</itunes:summary>
<description>
<![CDATA[<p><img alt="upnpportforward_20071019.jpg" src="http://hackszine.com/upnpportforward_20071019.jpg" width="500" height="340" /></p>

<p>Universal Plug and Play support is available on most modern wireless and DSL routers.  Among other things, it allows client machines on the local network to remotely configure the router's port forwarding, typically without authenticated access.</p>

<p>Adrian Crenshaw has a nice screencast which shows how to detect UPnP capable devices on your network and how to use the PortForward utility in Windows to remotely configure port forwarding for routers on your LAN.</p>

<p>After looking at this, you'll probably come to the conclusion that, while convenient, unauthenticated UPnP is pretty dangerous.  It allows someone who has momentary access to your network to easily reconfigure your router to punch holes through its NAT firewall.  This could be somone on your wireless network, or it could be as simple as a malicious program that you accidentally execute on your own machine.  </p>

<p>Fortunately, most routers allow you to disable UPnP, and you should probably take advantage of this and turn off UPnP on your devices now.</p>

<p>UPnP Port Forwarding and Security Screencast - <a href="http://www.irongeek.com/i.php?page=videos/universal-plug-and-play-upnp-1">Link</a><br />
UPNPScan - <a href="http://www.cqure.net/wp/?page_id=25">Link</a><br />
UPNP PortForward (exe, source and documentation) - <a href="http://www.codeproject.com/internet/PortForward.asp">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/10/upnp_change_a_routers_firewall.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/10/upnp_change_a_routers_firewall.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/10/upnp_change_a_routers_firewall.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/10/upnp_change_a_routers_firewall.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Fri, 19 Oct 2007 20:46:21 -0800</pubDate>

</item>

<item>
<title>Automate using your Mac on untrusted networks</title>
<itunes:summary> When you&apos;re on an untrusted or unencrypted network, everything from what you browse to the email and IM messages you send can potentially be snooped by a third party. Sure, some sites use https and you can use ssh...</itunes:summary>
<description>
<![CDATA[<p><img alt="macsocksproxy_20070929.jpg" src="http://hackszine.com/macsocksproxy_20070929.jpg" width="500" height="465" /></p>

<p>When you're on an untrusted or unencrypted network, everything from what you browse to the email and IM messages you send can potentially be snooped by a third party.  Sure, some sites use https and you can use ssh to connect to a remote server, but what if you want to jack in and enjoy the relative comfort of knowing _all_ of your applications are communicating over a secure channel?</p>

<p>For that, you need a secure proxy.  By setting up a SOCKS proxy, you can have your applications route all of their network communications through a secure connection to a network you trust.  Gina at Lifehacker put together a quick guide for setting this up, and once configured in OS X's System Preferences, most of the default apps like Safari will just start using your proxy and you're good to go.</p>

<p>A lot of your favorite applications--ie. Firefox and Adium--need to be manually configured to use the proxy, however, as they don't pull this information automatically from the system preferences.  This is straightforward to do, but it means that every time you cruise over to the local coffee shop, you need to set up your proxy configuration in multiple places.</p>

<p>Albert Lee came up with a nice solution to this problem.  An application profile manager called rooSwitch and some quick Actionscript is all you need to make a couple of command line scripts that will set up or tear down your proxy, as well as switching all of your application preferences. </p>

<blockquote>If you save this script with a .command extension, then you can run it by double-clicking on the icon in the Finder like a regular application. When it runs, it will change the location, switch your profile, and start up the SSH tunnel. Enter your password and off you go!</blockquote>

<p>I should mention that his script also introduced me to a useful mac command line utiliy called <b>scselect</b>.  By typing <b>scselect [locationname]</b>, you can switch  your Mac's location straight from the command line.</p>

<p>Safer Surfing on Untrusted Networks (Mac Edition) - <a href="http://doubleparity.net/articles/">Link</a><br />
How to configure an SSH SOCKS proxy @Lifehacker - <a href="http://lifehacker.com/software/ssh/geek-to-live--encrypt-your-web-browsing-session-with-an-ssh-socks-proxy-237227.php">Link</a><br />
rooSwitch - <a href="http://www.roobasoft.com/rooSwitch/">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/09/automate_using_your_mac_on_unt.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/09/automate_using_your_mac_on_unt.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/09/automate_using_your_mac_on_unt.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/09/automate_using_your_mac_on_unt.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Sat, 29 Sep 2007 05:19:20 -0800</pubDate>

</item>

<item>
<title>Packet Garden</title>
<itunes:summary> Packet Garden is a network visualization tool that maps your network traffic into a 3D representation, sprouting little plants on a globe whenever a connection is made. To do this, Packet Garden takes note of all the servers you...</itunes:summary>
<description>
<![CDATA[<p><img alt="packetgarden_20070927.jpg" src="http://hackszine.com/packetgarden_20070927.jpg" width="500" height="374" /></p>

<p>Packet Garden is a network visualization tool that maps your network traffic into a 3D representation, sprouting little plants on a globe whenever a connection is made.</p>

<blockquote>To do this, Packet Garden takes note of all the servers you visit, their geographical location and the kinds of data you access. Uploads make hills and downloads valleys, their location determined by numbers taken from internet address itself. The size of each hill or valley is based on how much data is sent or received. Plants are also grown for each protocol detected by the software; if you visit a website, an 'HTTP plant' is grown. If you share some files via eMule, a 'Peer to Peer plant' is grown, and so on.</blockquote>

<p>Packet Garden is GNU licenced and written in Python, so you can give it a try on supported Linux, Windows, and Mac machines.  It doesn't run on Intel macs, unfortunately.  As far as I can tell, Soya3D (the 3D library it uses) is the culprit and has not been compiled under this architecture.  Anyone want to take a stab at porting this?  I'm not familiar with the package, but it might be as simple as installing all Soya's required libraries and running a python make script.</p>

<p>Packet Garden. Grow a world from network traffic - <a href="http://packetgarden.com/">Link</a><br />
Soya3D - <a href="http://home.gna.org/oomadness/en/soya3d/index.html">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/09/packet_garden.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/09/packet_garden.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/09/packet_garden.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/09/packet_garden.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Thu, 27 Sep 2007 21:39:31 -0800</pubDate>

</item>

<item>
<title>DNS rebinding: how an attacker can use your web browser to bypass a firewall</title>
<itunes:summary>Artur Bergman wrote about an exploit vector called &quot;DNS rebinding&quot; over on O&apos;Reilly Radar that&apos;s a must-read. Using DNS rebinding, an external website can use your browser&apos;s Javascript or Flash environment to act as a bridge between the external server...</itunes:summary>
<description>
<![CDATA[<p>Artur Bergman wrote about an exploit vector called "DNS rebinding" over on O'Reilly Radar that's a must-read.  Using DNS rebinding, an external website can use your browser's Javascript or Flash environment to act as a bridge between the external server and any IP on your internal network.  This works even for unaddressable IPs such as those in the 10.0.0.0 range!</p>

<p>Normally, the security mechanisms in your browser restrict any communications to the same host that served the web page.  So, if you visit badsite.com, the javascript in that page will only be able to communicate with badsite.com.  Any  code on that site that attempts to pull data from any other address will return an error, because it violates this "same origin" policy.</p>

<p><b>How DNS Rebinding Works</b><br />
DNS rebinding allows an attacker to completely bypass the same origin policy.  It does this by dynamically switching the target IP address for a host name the attacker controls.  One scenario might work like this:</p>

<ol><li>You connect to abcde.badsite.com, which resolves to IP 1.2.3.4 with a very short TTL</li>
<li>1.2.3.4 delivers some Javascript code to your browser to execute in 15 seconds</li>
<li>The DNS server in control of *.badsite.com immediately points abcde.badsite.com to 10.0.0.1</li>
<li>15 seconds later, the Javascript on your browser connects to abcde.badsite.com, in compliance with the same origin policy, and retrieves a web page from your internal server at 10.0.0.1</li>
<li>The DNS server resets abcde.badsite.com to 1.2.3.4 and after some period of time, your browser reconnects and sends 1.2.3.4 its findings</li></ol>

<p><b>With Flash, It Gets Even Better</b><br />
So far, with Javascript, a nefarious attacker now has the ability to scan and crawl websites on your internal network and report its findings back to the attacker's server.  You could imagine this being triggered via a popup and then repositioned off the screen where it might go unnoticed for some time.  This is a pretty big deal, no doubt, but with Flash 9's Socket functionality, it's only the tip of the iceberg.</p>

<p>Flash 9 adds a Socket library to the developer's toolkit.  So instead of the limited web crawling payload, a small flash movie can be sent to the client which can do a full network scan of your internal network, send spam through your corporate SMTP server, or even serve as a general purpose VPN bridge right through your firewall.  </p>

<p>Wow.</p>

<p><b>Defending Against DNS Rebinding</b><br />
There have been a number of suggestions made as far as defending your network against this kind of attack, including disabling the Flash plugin, using a personal firewall to restrict browser access to ports 80 and 443, and making sure all your web sites have no default virtual host, but instead require a valid Host header.</p>

<p>It seems like the real moral of the story here, though, is not to be lured into using a Firewall and unaddressable IPs as your only line of defense.  This means keeping machines patched, not using IP address-based authentication, and, in general, presuming that the attacker can obtain access to your internal network.</p>

<p><b>References:</b><br />
Your Browser is a TCP/IP Relay - <a href="http://radar.oreilly.com/archives/2007/08/your_web_browse.html">Link</a><br />
Flash DNS Rebinding DEMO (scan a host on your network) - <a href="http://www.jumperz.net/index.php?i=2&a=3&b=3">Link</a><br />
Protecting Browsers from DNS Rebinding Attacks - <a href="http://crypto.stanford.edu/dns/">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/08/dns_rebinding_how_an_attacker.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/08/dns_rebinding_how_an_attacker.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/08/dns_rebinding_how_an_attacker.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/08/dns_rebinding_how_an_attacker.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Wed, 01 Aug 2007 21:07:06 -0800</pubDate>

</item>

<item>
<title>UDP Hole Punching: how Skype gets through firewalls</title>
<itunes:summary> When two machines running Skype need to communicate directly, but are both behind a NAT firewall, there&apos;s a clever trick that&apos;s employed to start a communication channel. It works like this: First, both machines open a connection to a...</itunes:summary>
<description>
<![CDATA[<p><img alt="udppunch_20070601.jpg" src="http://hackszine.com/udppunch_20070601.jpg" width="500" height="232" /><br />
When two machines running Skype need to communicate directly,  but are both behind a NAT firewall, there's a clever trick that's employed to start a communication channel.  It works like this:</p>

<p>First, both machines open a connection to a non-firewalled server.  The server takes note of the source port (which may have been altered by the firewall) and sends this information to the other party to give it an idea of what port future connections might be coming from.</p>

<p>Client A then attempts to connect to a range of ports on client B's machine.  All these requests will fail at client B's firewall, of course.  However, in the process a side effect has occurred.  Client A has told its own firewall to allow traffic from all of client B's scanned ports!  Now, when client B attempts to connect to client A, assuming its outgoing port was previously scanned (which it likely will be), the request will get through to client A's machine.</p>

<p>If all else fails, both machines can use a central server to proxy their connection, but the UDP hole punching trick will typically allow two NAT firewalled machines to communicate directly, which means less latency and a significantly lighter load on the server.</p>

<p><b>Resources:</b><br />
How Skype &amp; Co. get round firewalls - <a href="http://www.heise-security.co.uk/articles/82481/0">Link</a><br />
RFC3489  STUN - Simple Traversal of UDP through NAT - <a href="http://www.ietf.org/rfc/rfc3489.txt">Link</a></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/06/udp_hole_punching_how_skype_ge.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/06/udp_hole_punching_how_skype_ge.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/06/udp_hole_punching_how_skype_ge.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/06/udp_hole_punching_how_skype_ge.html?CMP=OTC-7G2N43923558</guid>
<category>Skype</category>
<pubDate>Fri, 01 Jun 2007 20:41:02 -0800</pubDate>

</item>

<item>
<title>Upside-Down-Ternet: Having Fun With Wireless Interlopers</title>
<itunes:summary> I&apos;m a big fan of open wireless access points. As long as my neighbors are respectful, I&apos;ve got more downstream bandwidth than I really need most of the time. That said, I can understand the frustration with having a...</itunes:summary>
<description>
<![CDATA[<p><img alt="upsidedownternet_20070329.jpg" src="http://hackszine.com/upsidedownternet_20070329.jpg" width="500" height="306" /><br />
I'm a big fan of open wireless access points.  As long as my neighbors are respectful, I've got more downstream bandwidth than I really need most of the time.  That said, I can understand the frustration with having a persistant freeloader, so I can really appreciate this hack which allows you to send a "knock it off" message, without having to close down your blessed open network.</p>

<p>The <a href="http://www.ex-parrot.com/~pete/upside-down-ternet.html">Upside-Down-Ternet</a> works like this:<br />
<ol><li>You set up a DHCP server to assign addresses from one IP netblock to known MAC addresses, and another "untrusted" netblock to unknown MACs.</li><li>The trusted netblock is routed normally, but the untrusted netblock gets all port 80 traffic forwarded to a transparent squid proxy using iptables.</li><li>The squid proxy filters all HTTP traffic, looking for URLs ending in jpg or gif. </li><li>If a jpg or gif is encountered, the image is flipped using morgrify and the untrusted user is sent the upside down image instead of the original.</li></ol></p>

<p>This could be easily modified to default to giving normal access.  You could then direct known abusers to the crippled network.  Another option would be to provide "degraded" access using a blur or desaturate filter on images.  This would allow people to make use of the free service, but would require them to ask permission to be on the trusted list before having full access.</p>

<p>How do you like to deal with wireless interlopers?  What's your ideal wireless setup - one that balances security, ease of use for legitimate visitors or passers-by, and quality of service?  Give us a shout in the comments!</p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/03/upsidedownternet_having_fun_wi.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/03/upsidedownternet_having_fun_wi.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/03/upsidedownternet_having_fun_wi.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/03/upsidedownternet_having_fun_wi.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Thu, 29 Mar 2007 20:19:59 -0800</pubDate>

</item>

<item>
<title>Surf Anonymously Without a Trace</title>
<itunes:summary> Our resident Windows hacker, Preston Gralla, has another great article up at Computerworld, this time about maintaining your online privacy in the face of increased snooping from the government, web sites, and private businesses (an expanded update to a...</itunes:summary>
<description>
<![CDATA[<p><img alt="Surf Anonomously" src="http://hackszine.com/surf_anonomously.jpg" width="500" height="215" /></p>

<p>Our <a href="http://www.hackszine.com/blog/archive/2007/03/windows_tips_for_everyone.html">resident Windows hacker</a>, Preston Gralla, has another great article up at Computerworld, this time about <a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9012778&pageNumber=1">maintaining your online privacy</a> in the face of increased snooping from the government, web sites, and private businesses (an expanded update to a hack of the same name that originally appeared in <a href="http://store.makezine.com/ProductDetails.asp?ProductCode=0596009186">Windows XP Hacks, 2E</a>).</p>

<p><strong>Related:</strong><br />
<ul><li><a href="http://store.makezine.com/ProductDetails.asp?ProductCode=0596009186">Windows XP Hacks, 2E</a><br />
<li><a href="http://www.hackszine.com/blog/archive/2007/03/windows_tips_for_everyone.html">Call for Hacks: Windows Tips for Everyone</a></a></ul></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/03/surf_anonymously_without_a_tra.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/03/surf_anonymously_without_a_tra.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/03/surf_anonymously_without_a_tra.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/03/surf_anonymously_without_a_tra.html?CMP=OTC-7G2N43923558</guid>
<category>Windows</category>
<pubDate>Tue, 13 Mar 2007 11:47:39 -0800</pubDate>

</item>

<item>
<title>Malicious Hackers attack DNS Servers</title>
<itunes:summary> Duane Wessels, one of the authors of Make Projects: Small Form Factor PCs, was quoted in a piece about the recent DNS server attacks: The motive for the attacks was unclear, said Duane Wessels, a researcher at the Cooperative...</itunes:summary>
<description>
<![CDATA[<p><img alt="dnsmon feb 2007.png" src="http://www.hackszine.com/blog/archive/dnsmon%20feb%202007.png" width="408" height="269" /><br />
Duane Wessels, one of the authors of Make Projects: Small Form Factor PCs, was quoted in <a href="http://sfgate.com/cgi-bin/article.cgi?file=/n/a/2007/02/06/national/w125503S29.DTL">a piece about the recent DNS server attacks</a>:</p>

<blockquote>The motive for the attacks was unclear, said Duane Wessels, a researcher at the Cooperative Association for Internet Data Analysis at the San Diego Supercomputing Center. "Maybe to show off or just be disruptive; it doesn't seem to be extortion or anything like that," Wessels said.</blockquote>

<p>The <a href="http://www.hackszine.com/blog/archive/2007/02/whats_a_hack.html">goal of Hackszine</a> is "to reclaim the term 'hacking' for the good guys--innovators who explore and experiment, unearth shortcuts, create useful tools, and come up with fun things to try on their own", and it confirms our faith in this when we see one of our hacker authors working on the side of the good guys.</p>

<p><strong>Related</strong><br />
<ul><li>RIPE NCC DNS Monitor (pictured) - <a href="http://dnsmon.ripe.net/dns-servmon/index.html">Link</a><li>Make Projects: Small Form Factor PCs PDF - <a href="http://www.makezine.com/sff">Link</a></ul></p>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/02/malicious_hackers_attack_dns_s.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/02/malicious_hackers_attack_dns_s.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/02/malicious_hackers_attack_dns_s.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/02/malicious_hackers_attack_dns_s.html?CMP=OTC-7G2N43923558</guid>
<category>Network Security</category>
<pubDate>Wed, 07 Feb 2007 05:50:40 -0800</pubDate>

</item>

<item>
<title>Bypass Pay WiFi With Ping Tunnel</title>
<itunes:summary> A lot of hotels, coffee shops, and airports are sporting pay-per-hour 802.11 service these days. In most cases, you&apos;ll be presented with what appears to be an open hotspot and a DHCP server will give you an IP address....</itunes:summary>
<description>
<![CDATA[<p><img alt="pingtunnel_20070205.jpg" src="http://www.hackszine.com/blog/archive/pingtunnel_20070205.jpg" width="312" height="199" /><br />
A lot of hotels, coffee shops, and airports are sporting pay-per-hour 802.11 service these days.  In most cases, you'll be presented with what appears to be an open hotspot and a DHCP server will give you an IP address.  When you open your web browser, though, a transparent proxy will deliver you a page that asks for you to enter a credit card number.  Until you've paid, outgoing TCP traffic will be blocked.</p>

<p>More often than not, though, the network is configured to allow ICMP packets through unfiltered.  If you find one of these lucky hotspots, you can ping google.com or another external server and you'll get a response back.  You can use this feature to tunnel TCP traffic through an ICMP echo request to a proxy server that you've set up on an unrestricted network!</p>

<blockquote>Ptunnel is an application that allows you to reliably tunnel TCP connections to a remote host using ICMP echo request and reply packets, commonly known as ping requests and replies.

<p>Setting: You're on the go, and stumble across an open wireless network. The network gives you an IP address, but won't let you send TCP or UDP packets out to the rest of the internet, for instance to check your mail. What to do? By chance, you discover that the network will allow you to ping any computer on the rest of the internet. With ptunnel, you can utilize this feature to check your mail, or do other things that require TCP.</blockquote></p>

<p>To use Ptunnel, you'll need a server to run the proxy on.  Your bandwidth will be a bit limited, but the software includes a simple authentication mechanism so that you can ensure you're the only one using your proxy.  The way it works, it's more useful for connecting to your server via ssh than it is browsing the web.  That said, it's pretty darn cool and awfully handy, especially if you need to check your mail and don't feel comfortable passing a credit card to a random wireless account server.</p>

<p>Download Ptunnel here and give it a shot - <a href="http://www.cs.uit.no/~daniels/PingTunnel/">Link.</a><br />
Nulldigital.net has a good writeup on configuration and usage - <a href="http://nulldigital.net/blog/view.php?id=41">Link.</a></p>

<p><br><strong>Related:</strong></p>

<ul><li><a href="http://www.hackszine.com/blog/archive/2007/02/wifi_liberator.html">WiFi Liberator</a>
<li><a href="http://www.oreilly.com/catalog/wirelesshks2">Wireless Hacks, 2E</a></ul>]]>
[&lt;a href="http://www.hackszine.com/blog/archive/2007/02/bypass_pay_wifi_with_ping_tunn.html?CMP=OTC-7G2N43923558" /&gt;Read More&lt;/a&gt;]  
[&lt;a href="http://www.hackszine.com/blog/archive/2007/02/bypass_pay_wifi_with_ping_tunn.html?CMP=OTC-7G2N43923558#comments" /&gt;Comments&lt;/a&gt;]
</description>
<link>http://www.hackszine.com/blog/archive/2007/02/bypass_pay_wifi_with_ping_tunn.html?CMP=OTC-7G2N43923558</link>
<guid>http://www.hackszine.com/blog/archive/2007/02/bypass_pay_wifi_with_ping_tunn.html?CMP=OTC-7G2N43923558</guid>
<category>Wireless</category>
<pubDate>Tue, 06 Feb 2007 07:47:06 -0800</pubDate>

</item>


</channel>
</rss>