c# - Security Runtime Engine VS AntiXSS Library -


i see web protection library (wpl) comes 2 different options:

  • security runtime engine (sre)
  • antixss library

the first 1 seems great since no code necessary, it's httpmodule. second requires manually add escaping logic on code.

despite advantage mentioned, sre not popular , i'm wondering why. there known problem library or big advantage of using antixss i'm not seeing?

thanks!

the biggest flaw see in sre looks me reliant on "blacklisting" behavior. example, tries detect sql statements in order provide sql injection protection. blacklisting weak, fact have know potentially harmful input in order provide 100% protection.

http://www.owasp.org/index.php/data_validation#data_validation_strategies

that not don't see value in sre. think looks nice tool have in arsenal, considered additional layer of defense.

the other disadvantage see using library may encourage coders lazy learning how secure applications. relying on individual tool offer protection (or bunch of tools offer protection) foolish @ best. it's easy programmer inadvertently introduce security flaws thwart best of tools. therefore, developer, 1 concerned security not rely on such tool, escaping anyway, rather trusting tool them.

in other words, looks tool use, not @ expense of taking precautions on own. , programmers know how defend against common web attacks smart enough know not rely solely on tool. coding defensively, , if you're protecting against sql injection, adding module same thing seems redundant. venture guess reason lack of popularity.

one other side note functionality provided similar you'd find in web application firewall (waf). it's subject same basic fundamental flaws. nice read on why waf not enough, answers why sre not enough, , why not rely on it.

http://www.acunetix.com/blog/news/implementing-a-web-application-firewall-only-is-not-enough-to-secure-web-applications/


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -