<?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>American Butifarra &#187; Security</title> <atom:link href="http://claude.betancourt.us/topic/security/feed/" rel="self" type="application/rss+xml" /><link>http://claude.betancourt.us</link> <description>Claude Betancourt&#039;s Personal Blog</description> <lastBuildDate>Fri, 16 Dec 2011 02:43:25 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Stop &#8216;Apache Killer&#8217; in its tracks</title><link>http://claude.betancourt.us/stop-apache-killer-in-its-tracks/</link> <comments>http://claude.betancourt.us/stop-apache-killer-in-its-tracks/#comments</comments> <pubDate>Thu, 25 Aug 2011 03:47:44 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[How-To]]></category> <category><![CDATA[Platform]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[Rewrite]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=861</guid> <description><![CDATA[Protect your Apache server from the latest vulnerability exploit with a simple rule. <a href="http://claude.betancourt.us/stop-apache-killer-in-its-tracks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>As you may have heard, a new Apache attack tool was released on Friday. The tool, named Apache Killer, is able to create a denial-of-service attack by overloading the web server with partial requests for content. As the web server attempts to fulfill the requests it begins to run out of and memory and it crashes. The problem is exacerbated when larger files are requested (PDFs, zips, etc.) as the server must fulfill the entire request while it attempts to deliver just a portion of it.</p><h3>Testing &#8216;Apache Killer&#8217;</h3><p>I ran the tool to attack this server as well as my employer&#8217;s load balanced array of servers. It is clear that only those servers running an older version of Apache (i.e. 1.3) and those not protected by a firewall are at risk.</p><p>My underpowered virtual private server crashed just a few seconds after the attack began. The tool revealed that my employer&#8217;s web sites did not appear to be vulnerable.</p><h3>Is there a solution?</h3><p>While a solution from Apache.org has not been published, some of the contributors have identified the issue and are working on a patch. In the meantime, you can add the following rule to your virtual site definitions, if you own your sever, or <code>.htaccess</code> file if you&#8217;re in a shared-hosting environment.</p><pre class="brush: plain; title: ; notranslate">
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET) [NC]
RewriteCond %{HTTP:Range} ([0-9]*-[0-9]*)(\s*,\s*[0-9]*-[0-9]*)+
RewriteRule .* - [F]
&lt;/IfModule&gt;
</pre><p>The preceding rule blocks &#8220;<a href="http://seclists.org/fulldisclosure/2011/Aug/241">get and head requests with multiple ranges in the Range HTTP header</a>.&#8221;</p><p>After applying this rule, feel free to attempt to kill your server, it will not crash. You should inspect your traffic logs to verify the incoming traffic is denied access with an HTTP status of 403, or forbidden.</p><p>Dirk-Willem van Gulik from <a href="http://mail-archives.apache.org/mod_mbox/httpd-announce/201108.mbox/%3C20110824161640.122D387DD@minotaur.apache.org%3E">Apache published this workaround</a> for versions 2.0 and 2.2:</p><pre class="brush: plain; title: ; notranslate">
&lt;IfModule mod_setenvif.c&gt;
# Drop the Range header when more than 5 ranges.
# CVE-2011-3192
SetEnvIf Range (,.*?){5,} bad-range=1
RequestHeader unset Range env=bad-range

# optional logging.
CustomLog logs/range-CVE-2011-3192.log common env=bad-range
&lt;/IfModule&gt;
</pre>]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/stop-apache-killer-in-its-tracks/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Your iPhone Is Tracking Your Every Move, Sort of&#8230;</title><link>http://claude.betancourt.us/your-iphone-is-tracking-your-every-move-sort-of/</link> <comments>http://claude.betancourt.us/your-iphone-is-tracking-your-every-move-sort-of/#comments</comments> <pubDate>Wed, 20 Apr 2011 19:26:30 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Apple]]></category> <category><![CDATA[Fun]]></category> <category><![CDATA[Map]]></category> <category><![CDATA[Privacy]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=787</guid> <description><![CDATA[A friend shared a post about how the iPhone can track your every move so I decided to take a look at my data and see what it reveals. <a href="http://claude.betancourt.us/your-iphone-is-tracking-your-every-move-sort-of/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>My friend <a href="http://twitter.com/denisgobo">@DenisGobo</a> shared a post about how your evil iPhone was tracking your every move in order for Apple to do {fill in nefarious act here} with your precious private information.</p><p>This disclosure was <a href="http://petewarden.github.com/iPhoneTracker/">found by a couple of researchers</a>:</p><blockquote><p>We&#8217;d been discussing doing a visualization of mobile data, and while he was researching into what was available, Alasdair discovered this file. At first we weren&#8217;t sure how much data was there, but after we dug further and visualized the extracted data, it became clear that there was a scary amount of detail on our movements. It also became obvious that at least some other people knew about it, but it wasn&#8217;t being publicized.</p></blockquote><p>So I decided to <a href="http://petewarden.github.com/iPhoneTracker/#faq">follow the instructions</a> and extract this data from my phone backups, using the Python script and SQLLite plugin for Firefox referenced in the researchers&#8217; post, which turned out to be more fun than scary. AT&#038;T customers data is stored in the CellLocation table while Verizon users data is saved in the CDMACellLocation table.</p><h3>My private data revealed</h3><p>I was not impressed by the amount and quality of the data. I&#8217;ve only had my iPhone since Verizon began to offer it, but I expected more than 980 rows of data. So I proceeded to download the timestamp and location information to a comma separated value file that I promptly uploaded to <a href="http://www.openheatmap.com/">Open Heat Map</a> and the following map was revealed.</p><p><iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="0" width="600" height="450" src="http://www.openheatmap.com/embed.html?map=DelightfullyEminencesCaviare" ></iframe></p><p>Here is where I think the premise of evilness by Apple falls apart. This data is useless. As far as I can tell, since I&#8217;ve had the phone in my possession from day one, some of the locations are completely off. I have not frequented a place near the Jersey shore or Long Island, NY.</p><p>It&#8217;s obvious this data represents cell tower locations more than it does my normal travel if you were to map it with a GPS.</p><p>Don&#8217;t fear the big bad Apple. At least not yet.</p><p class="video"><a href="http://www.youtube.com/watch?v=mHQxIGohavo">Sky News Video: Apple iPhone tracking device raises privacy issues</a></p><p class="alert">UPDATE: <a href="https://alexlevinson.wordpress.com/2011/04/21/3-major-issues-with-the-latest-iphone-tracking-discovery/">Alex Levinson destroys the premise</a> that Apple is using this data for malicious purposes here.</p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/your-iphone-is-tracking-your-every-move-sort-of/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Upgrade and Secure WordPress</title><link>http://claude.betancourt.us/upgrade-and-secure-wordpress-dont-wait-for-heart-surgery/</link> <comments>http://claude.betancourt.us/upgrade-and-secure-wordpress-dont-wait-for-heart-surgery/#comments</comments> <pubDate>Sun, 06 Sep 2009 20:01:49 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[Security]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[IIS]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Worm]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=671</guid> <description><![CDATA[There is a worm making its way around old, unpatched versions of WordPress. Here's how to avoid getting infected. <a href="http://claude.betancourt.us/upgrade-and-secure-wordpress-dont-wait-for-heart-surgery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="drop_cap">M</span>att Mullenweg <a href="http://wordpress.org/development/2009/09/keep-wordpress-secure/">reported the following</a>:</p><blockquote><p>Right now there is a worm making its way around old, unpatched versions of WordPress. This particular worm, like many before it, is clever: it registers a user, uses a security bug (fixed earlier in the year) to allow evaluated code to be executed through the permalink structure, makes itself an admin, then uses JavaScript to hide itself when you look at users page, attempts to clean up after itself, then goes quiet so you never notice while it inserts hidden spam and malware into your old posts.</p></blockquote><p>Here are two quick steps to avoid unnecessary risks:</p><h3>Turn off user registration</h3><p>This one is simple. Just log in to your administrator screen and visit the &#8220;General Settings&#8221; screen (listed under Settings) and make sure the checkbox labeled &#8220;Anyone can register&#8221; is not checked.</p><h3>Block access to your blog&#8217;s admin area</h3><p>This can be accomplished with simple authentication.</p><p>If your site runs on Apache, you can create an <strong>.htaccess</strong> file in your <code>/wp-admin/</code> directory to require authentication before the page is displayed. <a href="http://spiralbound.net/2005/08/03/quick-and-easy-apache-password-protection">This post</a> provides the necessary steps.</p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/upgrade-and-secure-wordpress-dont-wait-for-heart-surgery/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Force a URL to Use HTTPS</title><link>http://claude.betancourt.us/how-to-force-a-url-to-use-https/</link> <comments>http://claude.betancourt.us/how-to-force-a-url-to-use-https/#comments</comments> <pubDate>Sat, 28 Feb 2009 03:02:55 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[How-To]]></category> <category><![CDATA[Protocol]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[ColdFusion]]></category> <category><![CDATA[IIS]]></category> <category><![CDATA[MachII]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[Rewrite]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=385</guid> <description><![CDATA[Site owners sometimes need to make sure secure connections are used. They can do this quickly with this Apache rule. <a href="http://claude.betancourt.us/how-to-force-a-url-to-use-https/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="drop_cap">T</span>oday I came across some old ColdFusion <span class="amp">&#038;</span> Mach-II (1.0) code where a plugin was used to force HTTPS. I assume the original developer decided to go with this solution because the target environment was Windows and Internet Information Server.</p><p>The task becomes a lot easier under Apache. So I threw away the plugin code and added the following rule to the Apache configuration:</p><pre class="brush: xml; title: ; notranslate">
&lt;directory &quot;/public_html/mysite.com&quot;&gt;
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{HTTP_HOST}/$1	[R,L]
&lt;/directory&gt;
</pre><p class="alert">The directive above can be placed inside a <span class="amp">VirtualHost</span> or <span class="amp">Directory</span> directives, but this usually requires access to the Apache server configuration, which is not typically possible in a shared hosting environment &#8212; in that case, the rule can be added to the <span class="amp">.htaccess</span> file.</p><p>Alternatively we could have used the <a href="http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequiressl">SSLRequireSSL Apache (2.x) directive</a>, but this would only block access to the non HTTPS address. In our case we want to automatically redirect the users instead of displaying an error message.</p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/how-to-force-a-url-to-use-https/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>WPA Cracked, Sort Of</title><link>http://claude.betancourt.us/wpa-cracked-sort-of/</link> <comments>http://claude.betancourt.us/wpa-cracked-sort-of/#comments</comments> <pubDate>Wed, 12 Nov 2008 02:01:02 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[Research]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[WiFi]]></category> <category><![CDATA[Wireless]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=217</guid> <description><![CDATA[Arstechnica has a great explanation of the issue. Academic researchers have found an exploitable hole in a popular form of wireless networking encryption. The hole is in a part of 802.11i that forms the basis of WiFi Protected Access (WPA), &#8230; <a href="http://claude.betancourt.us/wpa-cracked-sort-of/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><img class="alignright frame" src="http://media.arstechnica.com/articles/paedia/wpa-cracked.media/eriktews.png" title="Eric Tews"/><span class="drop_cap">A</span><a href="http://arstechnica.com/articles/paedia/wpa-cracked.ars/1"><strong>rstechnica</strong></a> has a great explanation of the issue.</p><blockquote><p>Academic researchers have found an exploitable hole in a popular form of wireless networking encryption. The hole is in a part of 802.11i that forms the basis of WiFi Protected Access (WPA), so it could affect routers worldwide. German graduate student Erik Tews will present a paper at next week&#8217;s PacSec in Tokyo coauthored with fellow student and aircrack-ng team member Martin Beck that reveals how remnants of WPA&#8217;s predecessor allow them to slip a knife into a crack in the encryption scheme and send bogus data to an unsuspecting WiFi client.</p><p>In an interview from Germany, where he is a PhD candidate studying encryption at the Technical University of Darmstadt, Tews explained that an existing attack on Wired Equivalent Privacy (WEP) was modified to provide a slim vector for sending arbitrary data to networks that use the Temporal Key Integrity Protocol (TKIP). (Tews&#8217; collaborator Beck is a student at the Technical University of Dresden; Tews credits Beck with the discovery, after which they jointly developed the paper that Tews will present at PacSec.)</p><p>With the Tews/Beck method, an attacker sniffs a packet, makes minor modifications to affect the checksum, and checks the results by sending the packet back to the access point. &#8220;It&#8217;s not a key recovery attack,&#8221; Tews said, &#8220;It just allows you to do the decryption of individual packets.&#8221; This approach works only with short packets, but could allow ARP (Address Resolution Protocol) poisoning and possibly DNS (Domain Name Service) spoofing or poisoning.</p><p>The paper, <a href="http://dl.aircrack-ng.org/breakingwepandwpa.pdf"><strong>Practical Attacks against WEP and WPA</strong></a>, is now available for download.</p></blockquote><p>So even though TKIP is not broken, the best way to protect your network is by switching from TKIP to AES with a relatively random password at least 20 characters long.</p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/wpa-cracked-sort-of/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: claude.betancourt.us @ 2012-02-07 15:03:16 by W3 Total Cache -->
