<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: What web application security really is</title>
	<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/</link>
	<description>top secret/secure computing information</description>
	<pubDate>Tue, 14 Oct 2008 10:57:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: Arian</title>
		<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8647</link>
		<dc:creator>Arian</dc:creator>
		<pubDate>Fri, 04 Jul 2008 18:05:42 +0000</pubDate>
		<guid>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8647</guid>
		<description>@DRE. Ah, hadn't been back in a while. So you asked why did I post? Only to see if you were open minded. And you're not.

It's easy to deconstruct a solution, syllogism, etc., and you clearly delight in that. That doesn't change the fact that I'm one of the only people on the planet with real, hard numbers and measurements. Sure, those measurements are from "whitehat customers" but it's the best current sampling on the planet. (debateable, of course)

Anyway, I'm working hard to give people useful tools and solutions to solve their daily problems. I think you are completely out of touch with business realities. I've heard your kind of rants before from people who lack ecommerce business backgrounds.

So this will be the last comment I see myself posting on your blog. We mostly agree on what the problem is, however, at this point I am going to agree that we disagree, fundamentally, about how to approach the problem. I don't see that changing unless you give me something pragmatic I can measure.

You of all people should praise the fact that WhiteHat gives people real, hard numbers they can use to learn, attack, criticize us, whatever. No one else is taking that step.

I've written courseware and I've trained developers and I've implemented SDLC programs and all that bullshit for more years that most of the pundits talking about this crap today. Touting that as the end game is a bunch of academic nonsense. You could of course prove me wrong with some relevant, modern measurements. I want both knowledge-based &#38; skills-based measurements, and qualitative and quantitative analysis of defect reduction and quality improvements.

And then that turns into its own circular game. Go read The Mythical Man-month, or some of Spolky's essays on quality improvements. meh.</description>
		<content:encoded><![CDATA[<p>@DRE. Ah, hadn&#8217;t been back in a while. So you asked why did I post? Only to see if you were open minded. And you&#8217;re not.</p>
<p>It&#8217;s easy to deconstruct a solution, syllogism, etc., and you clearly delight in that. That doesn&#8217;t change the fact that I&#8217;m one of the only people on the planet with real, hard numbers and measurements. Sure, those measurements are from &#8220;whitehat customers&#8221; but it&#8217;s the best current sampling on the planet. (debateable, of course)</p>
<p>Anyway, I&#8217;m working hard to give people useful tools and solutions to solve their daily problems. I think you are completely out of touch with business realities. I&#8217;ve heard your kind of rants before from people who lack ecommerce business backgrounds.</p>
<p>So this will be the last comment I see myself posting on your blog. We mostly agree on what the problem is, however, at this point I am going to agree that we disagree, fundamentally, about how to approach the problem. I don&#8217;t see that changing unless you give me something pragmatic I can measure.</p>
<p>You of all people should praise the fact that WhiteHat gives people real, hard numbers they can use to learn, attack, criticize us, whatever. No one else is taking that step.</p>
<p>I&#8217;ve written courseware and I&#8217;ve trained developers and I&#8217;ve implemented SDLC programs and all that bullshit for more years that most of the pundits talking about this crap today. Touting that as the end game is a bunch of academic nonsense. You could of course prove me wrong with some relevant, modern measurements. I want both knowledge-based &amp; skills-based measurements, and qualitative and quantitative analysis of defect reduction and quality improvements.</p>
<p>And then that turns into its own circular game. Go read The Mythical Man-month, or some of Spolky&#8217;s essays on quality improvements. meh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dre</title>
		<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8087</link>
		<dc:creator>dre</dc:creator>
		<pubDate>Wed, 25 Jun 2008 07:10:55 +0000</pubDate>
		<guid>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8087</guid>
		<description>@ Ido Breger:

I would be talking about how great WAF's were if they worked as advertised.</description>
		<content:encoded><![CDATA[<p>@ Ido Breger:</p>
<p>I would be talking about how great WAF&#8217;s were if they worked as advertised.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ido Breger</title>
		<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8085</link>
		<dc:creator>Ido Breger</dc:creator>
		<pubDate>Wed, 25 Jun 2008 06:35:23 +0000</pubDate>
		<guid>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8085</guid>
		<description>Hey DRE,
Looking at your posts all over the internet,I have a feeling that you belong to the "Anti WAF" religion, as such, I respect your religion. I will not try to convert you, I don't believe in converting someone's religion. The "anti WAF" religion is really a harmless small religion which helps to raise the awareness of web application security, it also actually drives pragmatic, down to earth security officers in  enterprises to deploy a WAF solution which helps them solve a business problem. I will say it again, I am not against fixing code, its just that in reality, in real life, in large organizations, it has limitations which are preventing it from solving the problem.
This will be my last comment here, Your readers I believe, got the message. 
Thank you again for raising the awareness around the subject that is so close to our heart - this is really important and you are doing a good job!
Cheers,
Ido</description>
		<content:encoded><![CDATA[<p>Hey DRE,<br />
Looking at your posts all over the internet,I have a feeling that you belong to the &#8220;Anti WAF&#8221; religion, as such, I respect your religion. I will not try to convert you, I don&#8217;t believe in converting someone&#8217;s religion. The &#8220;anti WAF&#8221; religion is really a harmless small religion which helps to raise the awareness of web application security, it also actually drives pragmatic, down to earth security officers in  enterprises to deploy a WAF solution which helps them solve a business problem. I will say it again, I am not against fixing code, its just that in reality, in real life, in large organizations, it has limitations which are preventing it from solving the problem.<br />
This will be my last comment here, Your readers I believe, got the message.<br />
Thank you again for raising the awareness around the subject that is so close to our heart - this is really important and you are doing a good job!<br />
Cheers,<br />
Ido</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dre</title>
		<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8065</link>
		<dc:creator>dre</dc:creator>
		<pubDate>Tue, 24 Jun 2008 18:06:55 +0000</pubDate>
		<guid>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8065</guid>
		<description>@ Ido Breger:

&lt;i&gt;the example that you used, the massive SQL injection attack is a perfect one, this attack was easily stopped by using a WAF, a WAF can protect you from a simple SQL injection attack or a blind SQL injection attack, it doesn’t really care&lt;/i&gt;

Incorrect -- the SQL injection attack (many different types of tools and threats were used) infected hundreds of thousands of web applications, which in turn infected thousands of Windows machines, turning them into a botnet.  Although I expect that at least one or two F5 customers might have been protected against the second or third wave of these attacks, if they had a web application security expert configure their WAF properly.

However, I think those organizations would have been better saved by coding correctly in the first place, or even fixing the code when it popped up as an issue.  They may have spent less time and resources -- and they wouldn't have to spend $110K for a WAF pair to do so.

&lt;i&gt;however for an enterprise, real life poses a few challenges&lt;/i&gt;

Can you explain what those challenges are?  I see WAF installation (configuration, verification, troubleshooting), operations, maintenance, etc as much more challenging than fixing the code.

&lt;i&gt;WAF provide a way to raise dramatically the overall security of a website and provide the security officer a way to enforce it [...]&lt;/i&gt;

What about the risks to the web application that the WAF does not protect against?  What about the vulnerabilities that it cannot enforce?  Millions of web applications are vulnerable to XSS, including every single one that sits behind a blocking WAF.  Many XSS vectors go past the WAF detection modes as well, removing the need for a security officer to be woken up during the night.  I don't see this as beneficial.

&lt;i&gt;Do you know how many enterprises are not developing their web applications?&lt;/i&gt;

I think that I have a pretty good idea having worked with many enterprises for a very long period of time, specifically regarding web applications and their vulnerabilities.  When companies acquire applications (or software such as third-party libraries, components, frameworks, et al), they have to consider the risks.  Managing those risks can be done in numerous ways.

&lt;i&gt;how will they secure them?&lt;/i&gt;

"Test and verify before you buy / acquire".  For example by using third-party full-knowledge vulnerability assessment services, audits, evaluations, rating systems, assurance levels, et al.

&lt;i&gt;many times, if they contact the vendor who coded them (hopefully the vendor is still in business) with a vulnerability report they discovered they get an answer, “yeah, we will fix that in the next release”, “oh”, “BTW, the next release is within 8 months”&lt;/i&gt;

It doesn't sound like you've done this before.  Have you worked as a vulnerability assessor?  As a risk assessor?  Certainly there are problems such as you mention (people do say those things), but there are ways to overcome them.

&lt;i&gt;What about the web server itself? should they also fix the code of the web server?&lt;/i&gt;

I'm not talking about web servers.  I'm talking about web applications.  There is a very big distinction between the two.  If you work for a WAF vendor, I suggest that you read up on the differences.  You seem to mix the terminology as if they are one in the same.

&lt;i&gt;Patches, yes, patches are very important and everybody should deploy them, however, it takes time until vendor supplies patches to known vulnerabilities and it also takes time until an organization can schedule a maintenance window to apply these patches (oh and of course, test them before that…)&lt;/i&gt;

Patches are what you install on the Operating Systems for the desktops and laptops that access web applications over a network.  Patches prevent "client-side exploits", and they often do not need to be installed right away if there are other controls in place to support a proper vulnerability management program.  However, this again -- has nothing to do with web applications.  You seem to bounce around a lot, off-topic from the original conversation.  I do understand why client-side exploits are relevant to this conversation about the SQL injection attacks (the botnet malware), but I fail to see how this has anything to do with WAF's.

&lt;i&gt;Logging and forensics, the logging which a web server is doing is very limited&lt;/i&gt;

Ok, so this is where tcpdump or socket or system-call tracing/logging comes in useful (or maybe a different web server).  I've been using these types of tools for almost 15 years.  Why do I need a WAF to do this?

&lt;i&gt;in the real life of enterprises, WAFs are becoming a major building block, like firewalls 15 years ago&lt;/i&gt;

If this is true, I find it sad.  Enterprises already have enough problems with respect to security.  Adding a WAF into the operational picture must be a nightmare and a curse for these organizations.  I don't really relate the firewall and WAF technologies.  First of all, firewalls are not as important as they once were because attacks come at the client-side through crimeware or other malware threats.  Secondly, firewalls actively blocked network traffic.  If a WAF blocked traffic, then I wouldn't be able to go to the websites I like to go to.  What do WAF's block besides legitimate traffic and WAF vendor test cases?  Do they block actual attacks?  What kind of attacks do they fail to block?  My guess is that WAF's fail to block many, many, many kinds of web application vulnerabilities.  We have a blog post about this called, &lt;a href="http://www.tssci-security.com/archives/2008/06/23/web-application-firewalls-a-slight-change-of-heart/"&gt;Web application firewalls: a change of heart&lt;/a&gt; that you should definitely check out.  It talks about a variety of even stupid check list stuff that WAF's don't block.</description>
		<content:encoded><![CDATA[<p>@ Ido Breger:</p>
<p><i>the example that you used, the massive SQL injection attack is a perfect one, this attack was easily stopped by using a WAF, a WAF can protect you from a simple SQL injection attack or a blind SQL injection attack, it doesn’t really care</i></p>
<p>Incorrect &#8212; the SQL injection attack (many different types of tools and threats were used) infected hundreds of thousands of web applications, which in turn infected thousands of Windows machines, turning them into a botnet.  Although I expect that at least one or two F5 customers might have been protected against the second or third wave of these attacks, if they had a web application security expert configure their WAF properly.</p>
<p>However, I think those organizations would have been better saved by coding correctly in the first place, or even fixing the code when it popped up as an issue.  They may have spent less time and resources &#8212; and they wouldn&#8217;t have to spend $110K for a WAF pair to do so.</p>
<p><i>however for an enterprise, real life poses a few challenges</i></p>
<p>Can you explain what those challenges are?  I see WAF installation (configuration, verification, troubleshooting), operations, maintenance, etc as much more challenging than fixing the code.</p>
<p><i>WAF provide a way to raise dramatically the overall security of a website and provide the security officer a way to enforce it [&#8230;]</i></p>
<p>What about the risks to the web application that the WAF does not protect against?  What about the vulnerabilities that it cannot enforce?  Millions of web applications are vulnerable to XSS, including every single one that sits behind a blocking WAF.  Many XSS vectors go past the WAF detection modes as well, removing the need for a security officer to be woken up during the night.  I don&#8217;t see this as beneficial.</p>
<p><i>Do you know how many enterprises are not developing their web applications?</i></p>
<p>I think that I have a pretty good idea having worked with many enterprises for a very long period of time, specifically regarding web applications and their vulnerabilities.  When companies acquire applications (or software such as third-party libraries, components, frameworks, et al), they have to consider the risks.  Managing those risks can be done in numerous ways.</p>
<p><i>how will they secure them?</i></p>
<p>&#8220;Test and verify before you buy / acquire&#8221;.  For example by using third-party full-knowledge vulnerability assessment services, audits, evaluations, rating systems, assurance levels, et al.</p>
<p><i>many times, if they contact the vendor who coded them (hopefully the vendor is still in business) with a vulnerability report they discovered they get an answer, “yeah, we will fix that in the next release”, “oh”, “BTW, the next release is within 8 months”</i></p>
<p>It doesn&#8217;t sound like you&#8217;ve done this before.  Have you worked as a vulnerability assessor?  As a risk assessor?  Certainly there are problems such as you mention (people do say those things), but there are ways to overcome them.</p>
<p><i>What about the web server itself? should they also fix the code of the web server?</i></p>
<p>I&#8217;m not talking about web servers.  I&#8217;m talking about web applications.  There is a very big distinction between the two.  If you work for a WAF vendor, I suggest that you read up on the differences.  You seem to mix the terminology as if they are one in the same.</p>
<p><i>Patches, yes, patches are very important and everybody should deploy them, however, it takes time until vendor supplies patches to known vulnerabilities and it also takes time until an organization can schedule a maintenance window to apply these patches (oh and of course, test them before that…)</i></p>
<p>Patches are what you install on the Operating Systems for the desktops and laptops that access web applications over a network.  Patches prevent &#8220;client-side exploits&#8221;, and they often do not need to be installed right away if there are other controls in place to support a proper vulnerability management program.  However, this again &#8212; has nothing to do with web applications.  You seem to bounce around a lot, off-topic from the original conversation.  I do understand why client-side exploits are relevant to this conversation about the SQL injection attacks (the botnet malware), but I fail to see how this has anything to do with WAF&#8217;s.</p>
<p><i>Logging and forensics, the logging which a web server is doing is very limited</i></p>
<p>Ok, so this is where tcpdump or socket or system-call tracing/logging comes in useful (or maybe a different web server).  I&#8217;ve been using these types of tools for almost 15 years.  Why do I need a WAF to do this?</p>
<p><i>in the real life of enterprises, WAFs are becoming a major building block, like firewalls 15 years ago</i></p>
<p>If this is true, I find it sad.  Enterprises already have enough problems with respect to security.  Adding a WAF into the operational picture must be a nightmare and a curse for these organizations.  I don&#8217;t really relate the firewall and WAF technologies.  First of all, firewalls are not as important as they once were because attacks come at the client-side through crimeware or other malware threats.  Secondly, firewalls actively blocked network traffic.  If a WAF blocked traffic, then I wouldn&#8217;t be able to go to the websites I like to go to.  What do WAF&#8217;s block besides legitimate traffic and WAF vendor test cases?  Do they block actual attacks?  What kind of attacks do they fail to block?  My guess is that WAF&#8217;s fail to block many, many, many kinds of web application vulnerabilities.  We have a blog post about this called, <a href="http://www.tssci-security.com/archives/2008/06/23/web-application-firewalls-a-slight-change-of-heart/" >Web application firewalls: a change of heart</a> that you should definitely check out.  It talks about a variety of even stupid check list stuff that WAF&#8217;s don&#8217;t block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ido Breger</title>
		<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8063</link>
		<dc:creator>Ido Breger</dc:creator>
		<pubDate>Tue, 24 Jun 2008 17:04:51 +0000</pubDate>
		<guid>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-8063</guid>
		<description>DRE, I am not planning a war with you, clearly your attitude towards WAFs is representing your faith, and I never try to change someone's faith... (I have found out it is almost impossible...). 
I think it is important for your readers to also look at the Web security problem and solution from a pragmatic approach. 
There isn't a single solution for web application security, in real life noting can be 100% secure. Not even if you yourself will code all the web applications in the world, simply because you are a human, and humans make mistakes.

The real question is if WAF can significantly contribute to website security, the example that you used, the massive SQL injection attack is a perfect one, this attack was easily stopped by using a WAF, a WAF can protect you from a simple SQL injection attack or a blind SQL injection attack, it doesn't really care.
Your assumption that the only solution to web application security is code fixes doesn't stand in real life, you are missing the business problem aspect of this approach, you are also missing the challenges that enterprises have with this approach. Yes, if you have a blog and small web application that you maintain you could probably fix what you know about in the code, however for an enterprise, real life poses a few challenges.

1. The security officer is responsible for website security, however, he really doesn't have any tools  to enforce security, yes, he is going to the dev team and teaches them about security, yes, he is scanning the website and finds vulnerabilities, but how is making sure that the vulnerabilities are fixed? he doesn't manage the dev team, the dev team will not get fired if the website was hacked, right? dev will always look at  vulnerabilities like "bugs" and who doesn't have bugs? on the other hand, who will get fired if the website was hacked? Who can't sleep at night knowing that he has open 10 SQL injections vulnerabilities across his website that he needs to secure? WAF provide a way to raise dramatically the overall security of a website and provide the security officer a way to enforce it and sleep well during the night... 
2. Do you know how many enterprises are not developing their web applications? (clue - every enterprise is using at least one web application that isn't home grown... well, in real life, much more than one..) how will they secure them? many times, if they contact the vendor who coded them (hopefully the vendor is still in business) with a vulnerability report they discovered they get an answer, "yeah, we will fix that in the next release", "oh", "BTW, the next release is within 8 months"
3. What about the web server itself? should they also fix the code of the web server? 
4. Patches, yes, patches are very important and everybody should deploy them, however, it takes time until vendor supplies patches to known vulnerabilities and it also takes time until an organization can schedule a maintenance window to apply these patches (oh and of course, test them before that...)
5. Logging and forensics, the logging which a web server is doing is very limited, what about logging of headers, POST data? you realize the benefit of such logging.

So thank you for raising the awareness for web application security issues, in the real life of enterprises, WAFs are becoming a major building block, like firewalls 15 years ago. Don't get me wrong, I am not against fixing code, I just wanted to make sure your readers understand the challenges of enterprises and why they choose WAFs . By the way, I have to admit here that the company I work for, F5, is selling a WAF.</description>
		<content:encoded><![CDATA[<p>DRE, I am not planning a war with you, clearly your attitude towards WAFs is representing your faith, and I never try to change someone&#8217;s faith&#8230; (I have found out it is almost impossible&#8230;).<br />
I think it is important for your readers to also look at the Web security problem and solution from a pragmatic approach.<br />
There isn&#8217;t a single solution for web application security, in real life noting can be 100% secure. Not even if you yourself will code all the web applications in the world, simply because you are a human, and humans make mistakes.</p>
<p>The real question is if WAF can significantly contribute to website security, the example that you used, the massive SQL injection attack is a perfect one, this attack was easily stopped by using a WAF, a WAF can protect you from a simple SQL injection attack or a blind SQL injection attack, it doesn&#8217;t really care.<br />
Your assumption that the only solution to web application security is code fixes doesn&#8217;t stand in real life, you are missing the business problem aspect of this approach, you are also missing the challenges that enterprises have with this approach. Yes, if you have a blog and small web application that you maintain you could probably fix what you know about in the code, however for an enterprise, real life poses a few challenges.</p>
<p>1. The security officer is responsible for website security, however, he really doesn&#8217;t have any tools  to enforce security, yes, he is going to the dev team and teaches them about security, yes, he is scanning the website and finds vulnerabilities, but how is making sure that the vulnerabilities are fixed? he doesn&#8217;t manage the dev team, the dev team will not get fired if the website was hacked, right? dev will always look at  vulnerabilities like &#8220;bugs&#8221; and who doesn&#8217;t have bugs? on the other hand, who will get fired if the website was hacked? Who can&#8217;t sleep at night knowing that he has open 10 SQL injections vulnerabilities across his website that he needs to secure? WAF provide a way to raise dramatically the overall security of a website and provide the security officer a way to enforce it and sleep well during the night&#8230;<br />
2. Do you know how many enterprises are not developing their web applications? (clue - every enterprise is using at least one web application that isn&#8217;t home grown&#8230; well, in real life, much more than one..) how will they secure them? many times, if they contact the vendor who coded them (hopefully the vendor is still in business) with a vulnerability report they discovered they get an answer, &#8220;yeah, we will fix that in the next release&#8221;, &#8220;oh&#8221;, &#8220;BTW, the next release is within 8 months&#8221;<br />
3. What about the web server itself? should they also fix the code of the web server?<br />
4. Patches, yes, patches are very important and everybody should deploy them, however, it takes time until vendor supplies patches to known vulnerabilities and it also takes time until an organization can schedule a maintenance window to apply these patches (oh and of course, test them before that&#8230;)<br />
5. Logging and forensics, the logging which a web server is doing is very limited, what about logging of headers, POST data? you realize the benefit of such logging.</p>
<p>So thank you for raising the awareness for web application security issues, in the real life of enterprises, WAFs are becoming a major building block, like firewalls 15 years ago. Don&#8217;t get me wrong, I am not against fixing code, I just wanted to make sure your readers understand the challenges of enterprises and why they choose WAFs . By the way, I have to admit here that the company I work for, F5, is selling a WAF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dre</title>
		<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-7924</link>
		<dc:creator>dre</dc:creator>
		<pubDate>Fri, 20 Jun 2008 12:44:31 +0000</pubDate>
		<guid>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-7924</guid>
		<description>@ Arian:

&lt;i&gt;Your conclusions contradict all the real world measurements I can demonstrate. The SQL Injection bot is a perfect example of where blackbox scanning + WAF integration solves for businesses issues cheaply.&lt;/i&gt;

I would never trust measurements solely from a vendor.  If MITRE comes out and says that WhiteHatSec is the gold standard of modern metrics then hell will probably also freeze over that same day.

A perfect example?  How?  I just showed how it was a horrible example!

&lt;i&gt;Out of the 640-some websites I measured during these attacks, only ONE input vulnerable to SQL Injection (out of tens of thousands attacked by this worm) was missed using a blackbox scanner. The Sentinel platform to be specific.&lt;/i&gt;

You can't even start understand the problem if you think that it only has to do with you and your customers.  640 websites?  Please.  Yes, out of tens of thousands, that's exactly the point.

&lt;i&gt;The missed input was a “Blind SQL Injection” as many of these are. During the period of this worm we implemented a number of new syntax arguments that now successfully find the one missed issue&lt;/i&gt;

You can't find the issue with a scanning tool or even a manual pen-test.  The issue is lack of parameterized queries.

&lt;i&gt;We also can create blocking rules for all of the issues we discover.&lt;/i&gt;

Seriously, Arian, please tell me that you don't believe that!  How could a WAF possible stop a business logic attack?  How could a WAF stop second-order attacks?  I think WAF's don't even stop the most common attacks.

A WAF prevents what the WAF vendors (and WhiteHatSec) want you to believe that they will prevent.  Firewall vendors don't go out and research how their firewall doesn't stop certain kinds of packets under certain kinds of scenarios.  They don't explain the client-side attack vector (and the extremely high likelihood of it) to their potential customers.

WAF's can block `known' vulnerabilities, but in the case of "what a web application security scanner finds" -- the results are not then "known vulnerabilities", but instead should be thought of as "known software weaknesses".  Once a software weakness is exposed, this means that there are still many vulnerabilities yet to be uncovered.

Look, if web application security scanners were like regular black-box functional quality tools -- they would see around 30 percent of the total bugs.  Instead, they see 7, 8, maybe 10 percent (we must still have a lot of work ahead of us!).  The only way quality testers were able to push their black-box tests above the 30 percent mark was to utilize pairwise testing as well as techniques that can manage keeping track of state-transitions.  State-transition technology is not available in commercial web application security scanners, neither is pairwise testing.  I've heard an argument that it's impossible to even properly utilize pairwise testing for security property testing purposes.  Even with these additional testing techniques, black-box functional testing with automated quality tools only rises to 70, maybe 80 percent coverage at maximum.

These claims on Jeremiah Grossman's blog about 1 percent false positives in Sentinel are also wishful thinking.  We all know that the false positive rate is highly dependent on the application in question.  Let's see how Sentinel fairs if I setup some apache configs (in an already huge and highly complex application) to respond over HTTP in varied ways (such as 200 OK to everything).  There's no rule of thumb for false positives and you can't take in averages.  Everything has to be customized.

In fact, this brings up a great point.  WAF and WASS technology requires a seriously large investment in customization by an expert.  We don't have enough of these experts to go around.  So do we start with WAF/WASS training, or do we instead just work with developers and train them in the first place -- since they are the ones empowered enough to do something about a root-cause fix.

There are plenty of websites that use WAF that have been hit with SQLi or XSS.  Some of these websites employ a large department of WAF and WASS experts.  The adversary who found the SQLi or XSS typically is not an expert -- often they are kids with 1 or 2 years programming experience, and with no other security experience -- nobody is paying them -- they are unskilled, unknowledgeable about web applications, etc.  It is easy to find SQLi and XSS if you understand the code. It is easy to fix SQLi and XSS if you understand the code.

It's difficult to use a WASS to find weaknesses or properly attack an application unless you customize it and you're an expert.  It's even more difficult to deploy a WAF in prevention-mode, in order to prevent known vulnerabilities -- let alone the root-cause issues which are systemic to a certain problem in the code.  Why would we waste time on this approach?  To keep WhiteHatSec and WAF vendors in business?  Any other reason?

&lt;i&gt;I could go back and get you the ratio of missed issues to inputs if you like. It’s probably 1 per hundreds of thousands of inputs; 1 per millions if I include known non-vulnerable code (to the bot)&lt;/i&gt;

Did you check for second-order injections?  I guess not since Sentinel doesn't even support them.

&lt;i&gt;Even at 1 per 640 sites….that’s pretty good. That’s 639 winners in this lottery.&lt;/i&gt;

Wow, aspiring customers win a $110k WAF price-tag (plus $12K/year for support) combined with a $25K/year price-tag for a SaaS WASS solution!  But, wait, they still are weak against the OWASP Top 10?!  And what's more is that adversaries are already preparing themselves for their next avenues of attack.  Guess what?  It's still at the web application layer!

&lt;i&gt;If someone else can actually demonstrate, and not pontificate, a better working solution…I’d sure love to see it demonstrated.&lt;/i&gt;

You are really opposed to the idea of fixing the code, aren't you?  It cuts into the big numbers on the income sheet and drops holes and bombs all over that business plan?  Only if it wasn't so difficult to get bought-out by a WAF vendor (since you couldn't sell to an HP or IBM) -- why they have to be having these kinds of issues at the same time??

&lt;i&gt;I was anti-WAF too at one point, because they are surrounded my myth and marketing FUD.&lt;/i&gt;

I am still anti-WAF.  Do you really think that's going to change anytime soon?  What is the problem you are trying to solve by posting this comment on our TS/SCI Security blog?

I enjoy the discussion; I love the quick wits -- but do you really think you're going to be able to convince me that concentrating all effect into fixing code is the wrong thing to do?

Hear me out for a second.  Do you really think that they are ZERO quick wins that can be accomplished by involving the development groups in any given organization?

What about with specific regard to regression testing?  I know that WhiteHatSec has customers that have been in regression testing for over 2 years.  If you look at the WhiteHatSec numbers for &lt;a href="http://blog.imperva.com/2008/06/how-long-does-it-take-a-lot-sa.html"&gt;Time To Fix&lt;/a&gt;, do you really think this applies to anyone EXCEPT WhiteHatSec customers?

To me, these numbers show what a horrible job that WhiteHatSec is doing.  Maybe the problem is you?

I can think of dozens of ways to improve regression testing with regards to any sized development department -- that would instantly result in a better understanding of reoccurring bugs.  Within a few days, organizations get to see instant results if Continuous Integration (or some form of it) can gain ground and mindshare.  With test-first development, bugs start to magically disappear, while at the same time -- time in regression goes from months to hours.

Instead of forcing two things that go bad together into an abomination/monster -- WAF and WASS, I'm trying to come up with ways of making other wins work well together, such as CI (continuous integration) and TDD (test-driven development).

&lt;i&gt;That’s why we took all the mystery &#38; magic out of them by creating targeted attack vector blocking for known vulns. It is very simple, no magic, and like most simple solutions — it works well.&lt;/i&gt;

Let me see how it works under the hood.  It sounds simple on paper, but anyone who has worked with a WASS or WAF knows that it's not.  Even if WhiteHatSec was the best WASS solution (which it's not), and even if WHS did hire the best talent then there would still be problems.

Arian, you are the best talent out there with regards to web application security.  Jeremiah, Anurag, and at least 4 other people that I've spoken with at your company are also of extremely high caliber.  But that's 7 people, only one of which is really anything outstanding.  7 people and 640 websites is bad math.

The way that you focus your expertise and skills is just misguided.  You should be working with developers, doing training, or getting the right ideas out there into the community by giving back.

If you're not a part of the solution, you're part of the problem.</description>
		<content:encoded><![CDATA[<p>@ Arian:</p>
<p><i>Your conclusions contradict all the real world measurements I can demonstrate. The SQL Injection bot is a perfect example of where blackbox scanning + WAF integration solves for businesses issues cheaply.</i></p>
<p>I would never trust measurements solely from a vendor.  If MITRE comes out and says that WhiteHatSec is the gold standard of modern metrics then hell will probably also freeze over that same day.</p>
<p>A perfect example?  How?  I just showed how it was a horrible example!</p>
<p><i>Out of the 640-some websites I measured during these attacks, only ONE input vulnerable to SQL Injection (out of tens of thousands attacked by this worm) was missed using a blackbox scanner. The Sentinel platform to be specific.</i></p>
<p>You can&#8217;t even start understand the problem if you think that it only has to do with you and your customers.  640 websites?  Please.  Yes, out of tens of thousands, that&#8217;s exactly the point.</p>
<p><i>The missed input was a “Blind SQL Injection” as many of these are. During the period of this worm we implemented a number of new syntax arguments that now successfully find the one missed issue</i></p>
<p>You can&#8217;t find the issue with a scanning tool or even a manual pen-test.  The issue is lack of parameterized queries.</p>
<p><i>We also can create blocking rules for all of the issues we discover.</i></p>
<p>Seriously, Arian, please tell me that you don&#8217;t believe that!  How could a WAF possible stop a business logic attack?  How could a WAF stop second-order attacks?  I think WAF&#8217;s don&#8217;t even stop the most common attacks.</p>
<p>A WAF prevents what the WAF vendors (and WhiteHatSec) want you to believe that they will prevent.  Firewall vendors don&#8217;t go out and research how their firewall doesn&#8217;t stop certain kinds of packets under certain kinds of scenarios.  They don&#8217;t explain the client-side attack vector (and the extremely high likelihood of it) to their potential customers.</p>
<p>WAF&#8217;s can block `known&#8217; vulnerabilities, but in the case of &#8220;what a web application security scanner finds&#8221; &#8212; the results are not then &#8220;known vulnerabilities&#8221;, but instead should be thought of as &#8220;known software weaknesses&#8221;.  Once a software weakness is exposed, this means that there are still many vulnerabilities yet to be uncovered.</p>
<p>Look, if web application security scanners were like regular black-box functional quality tools &#8212; they would see around 30 percent of the total bugs.  Instead, they see 7, 8, maybe 10 percent (we must still have a lot of work ahead of us!).  The only way quality testers were able to push their black-box tests above the 30 percent mark was to utilize pairwise testing as well as techniques that can manage keeping track of state-transitions.  State-transition technology is not available in commercial web application security scanners, neither is pairwise testing.  I&#8217;ve heard an argument that it&#8217;s impossible to even properly utilize pairwise testing for security property testing purposes.  Even with these additional testing techniques, black-box functional testing with automated quality tools only rises to 70, maybe 80 percent coverage at maximum.</p>
<p>These claims on Jeremiah Grossman&#8217;s blog about 1 percent false positives in Sentinel are also wishful thinking.  We all know that the false positive rate is highly dependent on the application in question.  Let&#8217;s see how Sentinel fairs if I setup some apache configs (in an already huge and highly complex application) to respond over HTTP in varied ways (such as 200 OK to everything).  There&#8217;s no rule of thumb for false positives and you can&#8217;t take in averages.  Everything has to be customized.</p>
<p>In fact, this brings up a great point.  WAF and WASS technology requires a seriously large investment in customization by an expert.  We don&#8217;t have enough of these experts to go around.  So do we start with WAF/WASS training, or do we instead just work with developers and train them in the first place &#8212; since they are the ones empowered enough to do something about a root-cause fix.</p>
<p>There are plenty of websites that use WAF that have been hit with SQLi or XSS.  Some of these websites employ a large department of WAF and WASS experts.  The adversary who found the SQLi or XSS typically is not an expert &#8212; often they are kids with 1 or 2 years programming experience, and with no other security experience &#8212; nobody is paying them &#8212; they are unskilled, unknowledgeable about web applications, etc.  It is easy to find SQLi and XSS if you understand the code. It is easy to fix SQLi and XSS if you understand the code.</p>
<p>It&#8217;s difficult to use a WASS to find weaknesses or properly attack an application unless you customize it and you&#8217;re an expert.  It&#8217;s even more difficult to deploy a WAF in prevention-mode, in order to prevent known vulnerabilities &#8212; let alone the root-cause issues which are systemic to a certain problem in the code.  Why would we waste time on this approach?  To keep WhiteHatSec and WAF vendors in business?  Any other reason?</p>
<p><i>I could go back and get you the ratio of missed issues to inputs if you like. It’s probably 1 per hundreds of thousands of inputs; 1 per millions if I include known non-vulnerable code (to the bot)</i></p>
<p>Did you check for second-order injections?  I guess not since Sentinel doesn&#8217;t even support them.</p>
<p><i>Even at 1 per 640 sites….that’s pretty good. That’s 639 winners in this lottery.</i></p>
<p>Wow, aspiring customers win a $110k WAF price-tag (plus $12K/year for support) combined with a $25K/year price-tag for a SaaS WASS solution!  But, wait, they still are weak against the OWASP Top 10?!  And what&#8217;s more is that adversaries are already preparing themselves for their next avenues of attack.  Guess what?  It&#8217;s still at the web application layer!</p>
<p><i>If someone else can actually demonstrate, and not pontificate, a better working solution…I’d sure love to see it demonstrated.</i></p>
<p>You are really opposed to the idea of fixing the code, aren&#8217;t you?  It cuts into the big numbers on the income sheet and drops holes and bombs all over that business plan?  Only if it wasn&#8217;t so difficult to get bought-out by a WAF vendor (since you couldn&#8217;t sell to an HP or IBM) &#8212; why they have to be having these kinds of issues at the same time??</p>
<p><i>I was anti-WAF too at one point, because they are surrounded my myth and marketing FUD.</i></p>
<p>I am still anti-WAF.  Do you really think that&#8217;s going to change anytime soon?  What is the problem you are trying to solve by posting this comment on our TS/SCI Security blog?</p>
<p>I enjoy the discussion; I love the quick wits &#8212; but do you really think you&#8217;re going to be able to convince me that concentrating all effect into fixing code is the wrong thing to do?</p>
<p>Hear me out for a second.  Do you really think that they are ZERO quick wins that can be accomplished by involving the development groups in any given organization?</p>
<p>What about with specific regard to regression testing?  I know that WhiteHatSec has customers that have been in regression testing for over 2 years.  If you look at the WhiteHatSec numbers for <a href="http://blog.imperva.com/2008/06/how-long-does-it-take-a-lot-sa.html" onclick="javascript:urchinTracker ('/outbound/comment/blog.imperva.com');">Time To Fix</a>, do you really think this applies to anyone EXCEPT WhiteHatSec customers?</p>
<p>To me, these numbers show what a horrible job that WhiteHatSec is doing.  Maybe the problem is you?</p>
<p>I can think of dozens of ways to improve regression testing with regards to any sized development department &#8212; that would instantly result in a better understanding of reoccurring bugs.  Within a few days, organizations get to see instant results if Continuous Integration (or some form of it) can gain ground and mindshare.  With test-first development, bugs start to magically disappear, while at the same time &#8212; time in regression goes from months to hours.</p>
<p>Instead of forcing two things that go bad together into an abomination/monster &#8212; WAF and WASS, I&#8217;m trying to come up with ways of making other wins work well together, such as CI (continuous integration) and TDD (test-driven development).</p>
<p><i>That’s why we took all the mystery &amp; magic out of them by creating targeted attack vector blocking for known vulns. It is very simple, no magic, and like most simple solutions — it works well.</i></p>
<p>Let me see how it works under the hood.  It sounds simple on paper, but anyone who has worked with a WASS or WAF knows that it&#8217;s not.  Even if WhiteHatSec was the best WASS solution (which it&#8217;s not), and even if WHS did hire the best talent then there would still be problems.</p>
<p>Arian, you are the best talent out there with regards to web application security.  Jeremiah, Anurag, and at least 4 other people that I&#8217;ve spoken with at your company are also of extremely high caliber.  But that&#8217;s 7 people, only one of which is really anything outstanding.  7 people and 640 websites is bad math.</p>
<p>The way that you focus your expertise and skills is just misguided.  You should be working with developers, doing training, or getting the right ideas out there into the community by giving back.</p>
<p>If you&#8217;re not a part of the solution, you&#8217;re part of the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arian</title>
		<link>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-7910</link>
		<dc:creator>Arian</dc:creator>
		<pubDate>Thu, 19 Jun 2008 23:41:02 +0000</pubDate>
		<guid>http://www.tssci-security.com/archives/2008/06/15/what-web-application-security-really-is/#comment-7910</guid>
		<description>Your conclusions contradict all the real world measurements I can demonstrate. The SQL Injection bot is a perfect example of where blackbox scanning + WAF integration solves for businesses issues cheaply.

Out of the 640-some websites I measured during these attacks, only ONE input vulnerable to SQL Injection (out of tens of thousands attacked by this worm) was missed using a blackbox scanner. The Sentinel platform to be specific.

The missed input was a "Blind SQL Injection" as many of these are. During the period of this worm we implemented a number of new syntax arguments that now successfully find the one missed issue.

We also can create blocking rules for all of the issues we discover.

I could go back and get you the ratio of missed issues to inputs if you like. It's probably 1 per hundreds of thousands of inputs; 1 per millions if I include known non-vulnerable code (to the bot).

Even at 1 per 640 sites....that's pretty good.

That's 639 winners in this lottery.

If someone else can actually demonstrate, and not pontificate, a better working solution...I'd sure love to see it demonstrated.

I was anti-WAF too at one point, because they are surrounded my myth and marketing FUD.

That's why we took all the mystery &#38; magic out of them by creating targeted attack vector blocking for known vulns. It is very simple, no magic, and like most simple solutions -- it works well.</description>
		<content:encoded><![CDATA[<p>Your conclusions contradict all the real world measurements I can demonstrate. The SQL Injection bot is a perfect example of where blackbox scanning + WAF integration solves for businesses issues cheaply.</p>
<p>Out of the 640-some websites I measured during these attacks, only ONE input vulnerable to SQL Injection (out of tens of thousands attacked by this worm) was missed using a blackbox scanner. The Sentinel platform to be specific.</p>
<p>The missed input was a &#8220;Blind SQL Injection&#8221; as many of these are. During the period of this worm we implemented a number of new syntax arguments that now successfully find the one missed issue.</p>
<p>We also can create blocking rules for all of the issues we discover.</p>
<p>I could go back and get you the ratio of missed issues to inputs if you like. It&#8217;s probably 1 per hundreds of thousands of inputs; 1 per millions if I include known non-vulnerable code (to the bot).</p>
<p>Even at 1 per 640 sites&#8230;.that&#8217;s pretty good.</p>
<p>That&#8217;s 639 winners in this lottery.</p>
<p>If someone else can actually demonstrate, and not pontificate, a better working solution&#8230;I&#8217;d sure love to see it demonstrated.</p>
<p>I was anti-WAF too at one point, because they are surrounded my myth and marketing FUD.</p>
<p>That&#8217;s why we took all the mystery &amp; magic out of them by creating targeted attack vector blocking for known vulns. It is very simple, no magic, and like most simple solutions &#8212; it works well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.249 seconds -->
