<?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>Sander&#039;s Weblog &#187; Security</title>
	<atom:link href="http://www.temme.net/sander/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.temme.net/sander</link>
	<description>Open Source, Apache, Apple, Cloud and maybe even some Crypto stuff</description>
	<lastBuildDate>Wed, 18 Jan 2012 06:07:49 +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>Speaking at SofTECH</title>
		<link>http://www.temme.net/sander/2010/08/20/speaking-at-softech/</link>
		<comments>http://www.temme.net/sander/2010/08/20/speaking-at-softech/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 16:00:40 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=303</guid>
		<description><![CDATA[I will be speaking next Wednesday at the monthly meeting of SofTECH. The topic will be Security and Open Source Software: Many software choices are available to professionals who need to run applications in their business. Some of these will &#8230; <a href="http://www.temme.net/sander/2010/08/20/speaking-at-softech/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I will be speaking next Wednesday at the monthly meeting of <a href="http://www.softech.org/">SofTECH</a>.  The topic will be Security and Open Source Software: </p>
<p><em> Many software choices are available to professionals who need to run applications in their business.  Some of these will be delivered by conventional vendors who have full control over the product and its development.  However, over the past decade many Open Source applications have emerged as viable alternatives, developed using an open process by volunteers from many different companies.</p>
<p>Speaking from his experience as an Open Source Software developer, Sander will compare some security aspects of Open Source and Closed Source software, likely debunking some myths along the way.  We will examine the security vulnerability mitigation process used by the Apache Software Foundation and discuss how an open development process can provide enhanced security.<br />
</em></p>
<p>See the <a href="http://www.softech.org/content.aspx?page_id=22&#038;club_id=161006&#038;module_id=79833">meeting page</a> for details.  An RSVP link is at the bottom of the page. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2010/08/20/speaking-at-softech/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File System Permissions for Apache</title>
		<link>http://www.temme.net/sander/2010/07/30/file-system-permissions-for-apache/</link>
		<comments>http://www.temme.net/sander/2010/07/30/file-system-permissions-for-apache/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 16:00:03 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=301</guid>
		<description><![CDATA[I don&#8217;t spend a lot of time on The Apache HTTP Server Users mailing list, but a discussion sprang up there this week on which I think I should share my response. The issue was why the server in question &#8230; <a href="http://www.temme.net/sander/2010/07/30/file-system-permissions-for-apache/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t spend a lot of time on <a href="http://mail-archives.apache.org/mod_mbox/httpd-users/">The Apache HTTP Server Users mailing list</a>, but a discussion sprang up there this week on which I think I should share my response.  The issue was why the server in question did not have permission to show a particular file.  The initial response was &#8220;just chown your document root to the Apache user&#8221; and, when pointed out that this introduced security issues, </p>
<pre>Oh man an experienced sys admin told me to do it that way.
Please tell me what is wrong in this and where is this documented on Apache
docs.
I want to read.</pre>
<p>Here is <a href="http://mail-archives.apache.org/mod_mbox/httpd-users/201007.mbox/%3c51DD9383-2E8A-45B0-BD64-293A06202FF0@apache.org%3e">my response</a> reproduced: read on.</p>
<p>The Apache HTTP Server needs read access to its configuration files and the files it serves.  In and of itself, the server does not need write access anywhere on the system: even its log files are opened for write when the server is still root, and the open file descriptors passed to the child processes which change their user id to the lesser privileged user.  </p>
<p>Read access <strong>only</strong>.  The web server user should not own, or be able to write to, its configuration files or content.  </p>
<p>Content, other than CGI scripts, generally does not need Execute permissions.  Even PHP files that are interpreted by the server do not need to be Executable.  </p>
<p>Certain applications, especially publishing platforms and Content Management Systems that you manage and populate through the web server itself using a browser, require that certain directories on the system be made writable by the web server user.  You can do this by changing the owner of the directory to that user (usually www but ymmv), or by making the directory group-writable and changing the group to the group as which Apache runs. </p>
<p>Making directories writable by the web server should be done only with care and consideration.  The usual threat model is that someone manages to upload (for instance) a PHP script of their own making into the document root, and simply executes that by accessing it through a browser.  Now someone is executing code on your machine.  Google for &#8216;r57&#8242; for an example of what such code can do.  </p>
<p>If a web app needs writable directories, it&#8217;s often better to have those outside the DocumentRoot: that way the uploads can&#8217;t be accessed from the outside through a direct URL.  Some applications (<a href="http://www.wordpress.org/">WordPress</a> for instance) support this, others do not.  </p>
<p>In many cases, writable directories are not strictly necessary even though the web app might like them: rather than upload plugins (which contain code that gets executed or interpreted, yech!) through the web browser, upload them through ssh and manually unpack them on the server.  The CMS <a href="http://www.joomla.org/">Joomla!</a> likes to write its configuration file to the Document Root on initial install (which promptly becomes a popular attack target) but if it can&#8217;t write to the Document Root, it will output the config to the browser to the user can manually upload it.  </p>
<p>The Apache Documentation will merely <a href="http://httpd.apache.org/docs/trunk/misc/security_tips.html#serverroot">tell you</a> to make the server installation root-owned.  The HTTP Server Documentation does not cover third party applications like <a href="http://www.wordpress.org/">WordPress</a> or <a href="http://www.joomla.org/">Joomla!</a>, so it will not discuss their need to have some directories writable.  I hope the above makes the picture a little more complete.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2010/07/30/file-system-permissions-for-apache/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Attack on EMV Payment Cards</title>
		<link>http://www.temme.net/sander/2010/02/17/attack-on-emv-payment-cards/</link>
		<comments>http://www.temme.net/sander/2010/02/17/attack-on-emv-payment-cards/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 06:26:52 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=255</guid>
		<description><![CDATA[The BBC discusses a man-in-the-middle attack on EMV payment cards, also known as Chip-and-PIN. The attack was developed by a team at Cambridge University in the UK. Using a real card wired up to a laptop, connected to a fake &#8230; <a href="http://www.temme.net/sander/2010/02/17/attack-on-emv-payment-cards/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The BBC <a href="http://www.bbc.co.uk/blogs/newsnight/susanwatts/2010/02/new_flaws_in_chip_and_pin_syst.html">discusses</a> a man-in-the-middle attack on EMV payment cards, also known as Chip-and-PIN.  <a href="http://www.lightbluetouchpaper.org/2010/02/11/chip-and-pin-is-broken/">The attack</a> was developed by a team at Cambridge University in the UK.  Using a real card wired up to a laptop, connected to a fake card that is inserted in the POS terminal, this attack can authorize payments with an arbitrary PIN. </p>
<p>I am not sufficiently familiar with the cryptography in use for the EMV protocol, but my first thought is that astute observation by POS personnel should provide substantial defense against this entire class of attack: if someone shows up at your cash register with an EMV card wired to his backpack, something fishy is probably afoot. </p>
<p>My other thought has to do with the notion that banks might attempt to shift the responsibility for fraudulent Chip-and-PIN transaction to the consumer.  &#8220;Since EMV is so secure,&#8221; the reasoning goes, &#8220;the PIN authorization is proof positive that the transaction is valid.&#8221;  Except it has now been shown that PIN authorization can be spoofed.  </p>
<p>Security is not black and white: it does not make fraud impossible, but makes it harder and more expensive to commit fraud.  The protection level provided by a security feature should be commensurate to the value of the transaction it protects.  Too high a protection level is likely to be more cumbersome, or more expensive, than the transaction in question justifies.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2010/02/17/attack-on-emv-payment-cards/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Web Hacking Incident Database Report</title>
		<link>http://www.temme.net/sander/2009/08/18/web-hacking-incident-database-report-2009/</link>
		<comments>http://www.temme.net/sander/2009/08/18/web-hacking-incident-database-report-2009/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 04:12:32 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[ApacheCon]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=208</guid>
		<description><![CDATA[The The Web Hacking Incidents Database 2009: Bi-Annual Report is out. If I recall correctly, the first report Breach did, in 2007, did not mention any bi-annualness. Also, the eventual landing page has as HTML title &#8220;&#60;title&#62;The Web Hacking Incidents &#8230; <a href="http://www.temme.net/sander/2009/08/18/web-hacking-incident-database-report-2009/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://click.icptrack.com/icp/relay.php?r=72834604&#038;msgid=910266&#038;act=PKA8&#038;c=373714&#038;admin=0&#038;destination=http%3A%2F%2Fbreach.com%2Femail%2F0809_2009WHID.html">The Web Hacking Incidents Database 2009: Bi-Annual Report</a> is out.  If I recall correctly, the first report Breach did, in 2007, did not mention any bi-annualness.  Also, the eventual landing page has as HTML title <em>&#8220;&lt;title&gt;The Web Hacking Incidents Database 2008: Annual Report&lt;/title&gt;&#8221;</em>.  Is it possible that they simply didn&#8217;t get their act together last year and retroactively declared the report bi-annual? </p>
<p>I went in through the link above, gave up my e-mail, phone number and name of my first born, and downloaded the report.  This will probably land me another copy of every marketing e-mail Breach sends out (guess how I learned of this report?), and a phone call from some poor guy in a cube who has to make 75 phone calls a day for a living.  Oops, guess I put down a fax number.  Sorry dude, hope your headset isn&#8217;t too loud.  </p>
<p>Anyway, after you go though the lead generation form you land <a href="http://www.breach.com/confirmation/2009WHID.html">here</a> and can follow a direct link to the PDF.  This is fairly standard practice, but from a security company I would expect that they would make some more effort to not inadvertedly expose the goods.    </p>
<p><a href="http://www.us.apachecon.com/"><img src="http://www.us.apachecon.com/page_attachments/0000/0209/125x125_bold.gif" alt="ApacheCon US 2009" align="right"/></a>I will give this report a read, and probably discuss it in my upcoming <a href="http://www.us.apachecon.com/c/acus2009/sessions/302">talk</a> at <a href="http://www.us.apachecon.com/c/acus2009/">ApacheCon US 2009</a>.  Oh, they just <a href="http://mail-archives.apache.org/mod_mbox/www-announce/200908.mbox/%3c400347.16987.qm@web30801.mail.mud.yahoo.com%3e">extended the early bird registration deadline</a>&#8230; without changing their own website to tell you about it.  Register now and experience the mayhem. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2009/08/18/web-hacking-incident-database-report-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hardening Apache Presentation Book List</title>
		<link>http://www.temme.net/sander/2008/11/18/hardening-apache-presentation-book-list/</link>
		<comments>http://www.temme.net/sander/2008/11/18/hardening-apache-presentation-book-list/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 03:04:34 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[ApacheCon]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=154</guid>
		<description><![CDATA[At the end of my Hardening Enterprise Apache Installations Against Attacks presentation at ApacheCon US 2008 I had a slide of interesting reading material. Here are the books on the list, and links to some of the articles: Amazon.com Widgets &#8230; <a href="http://www.temme.net/sander/2008/11/18/hardening-apache-presentation-book-list/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At the end of my <a href="http://us.apachecon.com/c/acus2008/sessions/44">Hardening Enterprise Apache Installations Against Attacks</a> presentation at <a href="http://www.us.apachecon.com/">ApacheCon US 2008</a> I had a slide of interesting reading material.  Here are the books on the list, and links to some of the articles: <span id="more-154"></span><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_70a69bfb-92a8-48f6-95b4-0e65d935fe00"  WIDTH="500px" HEIGHT="175px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fsandersweblog-20%2F8010%2F70a69bfb-92a8-48f6-95b4-0e65d935fe00&#038;Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fsandersweblog-20%2F8010%2F70a69bfb-92a8-48f6-95b4-0e65d935fe00&#038;Operation=GetDisplayTemplate" id="Player_70a69bfb-92a8-48f6-95b4-0e65d935fe00" quality="high" bgcolor="#ffffff" name="Player_70a69bfb-92a8-48f6-95b4-0e65d935fe00" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" align="center" height="175px" width="500px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fsandersweblog-20%2F8010%2F70a69bfb-92a8-48f6-95b4-0e65d935fe00&#038;Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></p>
<p>I also included links to some interesting articles and organizations.  Most of these were visited early November 2008: </p>
<ul>
<li><a href="http://httpd.apache.org/security_report.html">The Apache HTTP Server Security Report</a></li>
<li>The <a href="http://www.cisecurity.org/">Center for Internet Security</a> who publish benchmarks for web server and operating system security</li>
<li>The <a href="http://www.owasp.org/">Open Web Application Security Foundation</a> concentrates on developing secure web application code</li>
<li>The <a href="http://www.webappsec.org/">Web Application Security Consortium</a>
<li>The National Institute for Standards and Technology (<a href="http://www.nist.gov/">NIST</a>) published a <a href="http://csrc.nist.gov/publications/nistpubs/800-44-ver2/SP800-44v2.pdf">checklist</a> for securing internet-facing web servers
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2008/11/18/hardening-apache-presentation-book-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Overzealous&#8230; Or Is It?</title>
		<link>http://www.temme.net/sander/2008/11/10/firefox-overzealous-or-is-it/</link>
		<comments>http://www.temme.net/sander/2008/11/10/firefox-overzealous-or-is-it/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:02:50 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=150</guid>
		<description><![CDATA[Man In The Middle is defeated by context. &#8211; Bruce Schneier As has been widely discussed, Firefox 3.0 is a little over-zealous when it encounters an unknown certificate on an SSL website. Where previous versions would just warn the user &#8230; <a href="http://www.temme.net/sander/2008/11/10/firefox-overzealous-or-is-it/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>Man In The Middle is defeated by context. <cite>&#8211; Bruce Schneier</cite></p></blockquote>
<p>As has been widely discussed, Firefox 3.0 is a little over-zealous when it encounters an unknown certificate on an SSL website.  Where previous versions would just warn the user about the observed irregularities, the new version requires that the user add an exception for every certificate that has an unknown certification chain, is expired or for which the hostname does not match the information in the certificate.  </p>
<p>Adding an exception takes four clicks, most met with a stern warning that will deter anyone but the most determined user.  Folks who use self-signed certificates as a matter of habit are howling, because they have to tediously make exceptions for all of them.  This Firefox features seems over the top, but is it? <span id="more-150"></span>It is not.  The validity of the certificate at the other end of the connection plays a critical role in establishing the trust relationship between endpoints.  An invalid or unverified certificate gives no assurance whatsoever about the identity with whom we&#8217;re handshaking: it could be the true endpoint or a Man-in-the-Middle entity that is passing themselves off as the endpoint.  </p>
<p>The difference between running the Exception gauntlet and a trusted identity should not be taken lightly, and while public-key cryptography in the context of identifying endpoints is still too hard to use for the general public, Firefox&#8217; reluctance to accept untrusted certificates is the right thing to do. </p>
<p>Folks who want to use self-signed certificates have a very attractive alternative: with a couple of clicks, they can add the certificate to the Firefox Certificate Store by either importing the server certificate, or pulling it right from the server by pro-actively adding an Exception.  Just use Preferences -> Advanced -> Certificates.  Beyond a certain number of certificates, though, it may be easier to set up your own CA, and import its certificate.  That allows you to set up servers with certificates that are automatically trusted by your client(s). </p>
<p>Laments that certificates are expensive are out of place: $30 a year buys you a certificate that is trusted by a lot of browsers.  Additionally, PKI is the ultimate do-it-yourself environment: you are perfectly welcome to set up your own and determine the level of trust you allot it. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2008/11/10/firefox-overzealous-or-is-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security Roadmap for ApacheCon US 2008</title>
		<link>http://www.temme.net/sander/2008/11/05/security-roadmap-for-apachecon-us-2008/</link>
		<comments>http://www.temme.net/sander/2008/11/05/security-roadmap-for-apachecon-us-2008/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 16:13:20 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[ApacheCon]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=148</guid>
		<description><![CDATA[At the end of my conference presentations, I usually put a Conference Roadmap slide. This slide shows sessions at the conference that are related to mine, and that attendees may find worth while to check out. For my Hardening Enterprise &#8230; <a href="http://www.temme.net/sander/2008/11/05/security-roadmap-for-apachecon-us-2008/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="ApacheCon US 2008" href="http://us.apachecon.com" border="0"><br />
 <img alt="ApacheCon US 2008" src="http://us.apachecon.com/page_attachments/0000/0001/Basic_120x240.jpg" align="right" /><br />
</a>At the end of my conference presentations, I usually put a <em>Conference Roadmap</em> slide.  This slide shows sessions at the conference that are related to mine, and that attendees may find worth while to check out.  For my Hardening Enterprise Apache Installations session this coming Thursday, I would suggest the following related conference content:</p>
<ul>
<li>Training: <a href="http://www.us.apachecon.com/c/acus2008/sessions/80">Web Application Security Bootcamp</a> by Christian Wenz</li>
<li>Thursday, 9AM: <a href="http://us.apachecon.com/c/acus2008/sessions/44">Hardening Enterprise Apache Installations Against Attacks</a> by yours truly</li>
<li>Thursday, 10AM: <a href="http://us.apachecon.com/c/acus2008/sessions/45"> Web Intrusion Detection with ModSecurity</a> by Ivan Ristic</li>
<li>Thursday, 2PM: <a href="http://us.apachecon.com/c/acus2008/sessions/46">(In)secure Ajax and Web 2.0 Web Sites</a> by Christian Wenz</li>
<li>Thursday, 3PM: <a href="http://us.apachecon.com/c/acus2008/sessions/129">Geronimo Security, now and in the future</a> by David Jencks</li>
<li>Thursday, 4:30PM: <a href="http://us.apachecon.com/c/acus2008/sessions/48">Securing Apache Tomcat for your Environment</a> by Mark Thomas</li>
<li>Thursday, 5:30PM: <a href="http://us.apachecon.com/c/acus2008/sessions/49">Securing Communications with your Apache HTTP Server</a> by Lars Eilebrecht</li>
</ul>
<p>Besides the training (which happened on Monday), this means that you can pretty much stay in the same room all Thursday and catch all the Security-related talks.  In addition, of course, this track will be <a href="http://streaming.linux-magazin.de/en/program_apacheconus08.htm">streamed live</a> for a modest fee, so you can watch from the comfort of your own office if you find yourself unable to make it to ApacheCon this year. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2008/11/05/security-roadmap-for-apachecon-us-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Considered Harmful</title>
		<link>http://www.temme.net/sander/2008/11/04/sql-considered-harmful/</link>
		<comments>http://www.temme.net/sander/2008/11/04/sql-considered-harmful/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 18:13:45 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[ApacheCon]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=142</guid>
		<description><![CDATA[According to the Web Hacking Incidents Database 2007 Annual Report, SQL Injection is still the most common attack vector for security breaches on websites. Consider the following cartoon: Why is it that our websites almost universally use a data access &#8230; <a href="http://www.temme.net/sander/2008/11/04/sql-considered-harmful/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>According to the Web Hacking Incidents Database <a href="http://www.webappsec.org/projects/whid/statistics.shtml">2007 Annual Report</a>, SQL Injection is still the most common attack vector for security breaches on websites.  Consider the following cartoon: </p>
<p><a href="http://xkcd.com/327/"><img src="http://imgs.xkcd.com/comics/exploits_of_a_mom.png"/></a></p>
<p>Why is it that our websites almost universally use a data access language whose statements can be completely subverted by the parameters fed into the queries?  The problem is that<span id="more-142"></span> web applications compose queries out of text strings concatenated with the input fed in by the client.  The result is a SQL query that is sent, as a text string, to the SQL server and executed.  Any input from the client that constitutes valid SQL fragment will be incorporated into the query, and can be used to wreak havoc with the database just like little Bobby Tables just did.</p>
<p>The main line of defense against this attack is to validate anything the client sends to a web application, and to strip out any SQL fragments that may be in there.  This is of course an arms race: any validation attempt is met with new attempt to defeat the validation, ad infinitum.  What we need is a new paradigm for querying databases from web applications: query parameters should never be treated as part of the query definition, but become opaque entities that are passed to the database engine as-is.  The result of the above should be noting else than Bobby bringing home a report card that says &ldquo;<tt>Robert'); DROP TABLE Students;--</tt>&rdquo; across the top.  </p>
<p>Oh, and what business has the web application dropping tables anyway?  Why does its user have that privilege? </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2008/11/04/sql-considered-harmful/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSL Now Enabled</title>
		<link>http://www.temme.net/sander/2008/10/02/ssl-now-enabled/</link>
		<comments>http://www.temme.net/sander/2008/10/02/ssl-now-enabled/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 16:34:15 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=130</guid>
		<description><![CDATA[I have turned on SSL on my site, primarily to be able to log into the management interface of the blog engine over a secure connection. You are welcome to read the blog over SSL. The certificate was signed by &#8230; <a href="http://www.temme.net/sander/2008/10/02/ssl-now-enabled/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have turned on SSL on my site, primarily to be able to log into the management interface of the blog engine over a secure connection.  You are welcome to <a href="https://www.temme.net/sander/">read the blog over SSL</a>.  The certificate was signed by <a href="http://www.cacert.org/">Cacert.org</a>, so you will want to <a href="http://www.cacert.org/index.php?id=3">download their root certificates</a> and install them into your browser. </p>
<p>No guarantees that using SSL will make me post more often.  Life has been busy. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2008/10/02/ssl-now-enabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ApacheCon US 2008</title>
		<link>http://www.temme.net/sander/2008/08/01/apachecon-us-2008/</link>
		<comments>http://www.temme.net/sander/2008/08/01/apachecon-us-2008/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 00:53:13 +0000</pubDate>
		<dc:creator>Sander</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.temme.net/sander/?p=125</guid>
		<description><![CDATA[Registration is now open for ApacheCon US 2008. There will be an Early Bird discount, so register early and Save! The schedule is up and I&#8217;m very happy to see the return of the schedule grid that shows the entire &#8230; <a href="http://www.temme.net/sander/2008/08/01/apachecon-us-2008/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Registration is now open for <a href="http://us.apachecon.com/">ApacheCon US 2008</a>.  There will be an Early Bird discount, so register early and <a href="http://us.apachecon.com/c/acus2008/about">Save</a>!  The <a href="http://us.apachecon.com/c/acus2008/schedule/grid">schedule</a> is up and I&#8217;m very happy to see the return of the schedule grid that shows the entire conference on one page.  <a href="http://www.cubiclemuses.com/cm">J. Aaron</a> has done a great job on the site. </p>
<p>I will be presenting one session at the conference: <a href="http://us.apachecon.com/c/acus2008/sessions/44">Hardening Enterprise Apache Installations Against Attacks</a> will discuss security issues with the Apache Web Server and how the developer team reacts to issues as they are found.  We&#8217;ll also talk about protecting applications that are served by the Apache server and may be the target of attacks that do not subvert the web server itself, but the code behind it. </p>
<p>The first time I did this talk, at AacheCon EU 2008, I ran out of time.  There&#8217;s so much to talk about!  The feedback forms submitted by the attendees did, however, identify some spots I can tighten up, so I&#8217;m looking forward to present a new, updated version of the talk this fall.  </p>
<p>Hope to see you, first week of November, in New Orleans! </p>
<p><a title="ApacheCon US 2008" href="http://us.apachecon.com" border="0"><br />
 <img alt="ApacheCon US 2008" src="http://us.apachecon.com/page_attachments/0000/0005/Basic_468x60.jpg" align="center" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.temme.net/sander/2008/08/01/apachecon-us-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

