Lurker News
Back to discussion

Comment by andyfleming

andyfleming3 replies#
Care to elaborate?
tptacek3 replies#
You almost certainly don't want to set up a WAF.

Don't use any of those scanners, all of which look almost exclusively for vulnerabilities you don't have. Do look into getting a Burp license for every developer on your team.
By all means, harden Nginx. Don't pay SpiderLabs to do it for you.

peterwwillis2 replies#
A WAF will stop a lot of the stupid junk that a kid with a "how 2 hax0r" book can make work a disturbing amount of the time.
tptacek39 replies#
If any of that stuff is actually working on your site, not having a WAF is the least of your problems. Don't waste time with this stuff.

Continue this thread — 39 replies

sebcat#
A WAF will also add an attack surface, just like anti-virus software before them.

Company X, a content publisher, has a wordpress site with a bunch of plugins. They hear that the security record of such a setup is less than ideal. They buy a WAF solution to protect them.
Company Y, also a content publisher in the same space, realizes that they don't need dynamically generated content. They don't need tons of JS. They start publishing static content and what little dynamic functionality they have is well-compartmentalized, with interactions to the outside world carefully audited.
Company Y could also get a WAF, but why? It increases the attack surface, Company Y probably don't have the time/expertise to audit it, it is not clear what benefits it will have.

sandGorgon#
This is brilliant.

Thanks !

_pdp_1 reply#
There are good burp alternatives too :)
tptacek3 replies#
There definitely are! Your stuff included! Burp is just the industry standard.

Continue this thread — 3 replies

peterwwillis#
The problem with throwing tools at the thing is you have no idea what it's doing or how it works or IF it works, and it becomes forgotten about. But it's better than nothing in the short term while you figure out how to secure your application. Slap ModSecurity in front of your app while you go over OWASP and managing cloud infrastructure securely.
technion#
In addition to the points discussed..

If you follow the Geekflare link to modsecurity, and then follow the link there to a download page, there's this warning:
>NOTE: Some instabilities in the Nginx add-on have been reported (see the Github issues page for details). Please use the "nginx_refactoring" branch where possible for the most up to date version and stay tuned for the ModSecurity version 4.
That's not something I would suggest throwing in production, given that warning has been there for years.
The post itself describes Shadow daemon as "probably defunct".
Ironbee's last commit was two years ago and I get an nxdomain looking for their website.
AWS WAF is both expensive and and extremely manual. You won't get anything out of it without a major labour investment.
Nginx's built in WAF is only in the pro edition, and outside the price of many people.
This whole discussion however depends on your customer. I have an agency I support where I have to provide a report on every single hack attempt. That means if my Rails application gets hit with said three year old Wordpress exploit, and the web server "404", I have to report on how we "blocked" it. And no, "not applicable" is not an answer.
So we throw money at commercial products. And sometimes I recommend doing so. But like security can involve just being aware of your risks, this use of a WAF is about being aware of the real problem you're solving, which is a paper work based one.