Web application firewall explained

A web application firewall (WAF) is a specific form of application firewall that filters, monitors, and blocks HTTP traffic to and from a web service. By inspecting HTTP traffic, it can prevent attacks exploiting a web application's known vulnerabilities, such as SQL injection, cross-site scripting (XSS), file inclusion, and improper system configuration.[1] Most of the major financial institutions utilize WAFs to help in the mitigation of web application 'zero-day' vulnerabilities, as well as hard to patch bugs or weaknesses through custom attack signature strings.[2]

History

See also: Application firewall.

Dedicated web application firewalls entered the market in the late 1990s during a time when web server attacks were becoming more prevalent.

An early version of WAF was developed by Perfecto Technologies with its AppShield product,[3] which focused on the e-commerce market and protected against illegal web page character entries. Other early WAF products, from Kavado and Gilian technologies, were available in the market at the same time, trying to solve the increasing amount of attacks on web applications in the late 90s. In 2002, the open source project ModSecurity[4] was formed in order to make WAF technology more accessible. They finalized a core rule set for protecting web applications, based on OASIS Web Application Security Technical Committee’s (WAS TC) vulnerability work. In 2003, they expanded and standardized rules through the Open Web Application Security Project’s (OWASP) Top 10 List, an annual ranking for web security vulnerabilities. This list would become the industry standard for web application security compliance.[5] [6]

Since then, the market has continued to grow and evolve, especially focusing on credit card fraud prevention. With the development of the Payment Card Industry Data Security Standard (PCI DSS), a standardization of control over cardholder data, security has become more regulated in this sector. According to CISO Magazine, the WAF market was expected to grow to $5.48 billion by 2022.[7] [8]

Description

A web application firewall is a special type of application firewall that applies specifically to web applications. It is deployed in front of web applications and analyzes bi-directional web-based (HTTP) traffic - detecting and blocking anything malicious. The OWASP provides a broad technical definition for a WAF as “a security solution on the web application level which - from a technical point of view - does not depend on the application itself.”[9] According to the PCI DSS Information Supplement for requirement 6.6, a WAF is defined as “a security policy enforcement point positioned between a web application and the client endpoint. This functionality can be implemented in software or hardware, running in an appliance device, or in a typical server running a common operating system. It may be a stand-alone device or integrated into other network components.”[10] In other words, a WAF can be a virtual or physical appliance that prevents vulnerabilities in web applications from being exploited by outside threats. These vulnerabilities may be because the application itself is a legacy type or it was insufficiently coded by design. The WAF addresses these code shortcomings by special configurations of rule-sets, also known as policies.

Previously unknown vulnerabilities can be discovered through penetration testing or via a vulnerability scanner. A web application vulnerability scanner, also known as a web application security scanner, is defined in the SAMATE NIST 500-269 as “an automated program that examines web applications for potential security vulnerabilities. In addition to searching for web application-specific vulnerabilities, the tools also look for software coding errors.”[11] Resolving vulnerabilities is commonly referred to as remediation. Corrections to the code can be made in the application but typically a more prompt response is necessary. In these situations, the application of a custom policy for a unique web application vulnerability to provide a temporary but immediate fix (known as a virtual patch) may be necessary.

WAFs are not an ultimate security solution, rather they are meant to be used in conjunction with other network perimeter security solutions such as network firewalls and intrusion prevention systems to provide a holistic defense strategy.

WAFs typically follow a positive security model, a negative security, or a combination of both as mentioned by the SANS Institute.[12] WAFs use a combination of rule-based logic, parsing, and signatures to detect and prevent attacks such as cross-site scripting and SQL injection. In general, features like browser emulation, obfuscation and virtualization as well as IP obfuscation are used to attempt to bypass WAFs.[13] The OWASP produces a list of the top ten web application security flaws. All commercial WAF offerings cover these ten flaws at a minimum. There are non-commercial options as well. As mentioned earlier, the well-known open source WAF engine called ModSecurity is one of these options. A WAF engine alone is insufficient to provide adequate protection, therefore OWASP along with Trustwave's Spiderlabs help organize and maintain a Core-Rule Set via GitHub[14] to use with the ModSecurity WAF engine.[15]

Deployment options

Although the names for operating mode may differ, WAFs are basically deployed inline in three different ways. According to NSS Labs, deployment options are transparent bridge, transparent reverse proxy, and reverse proxy.[16] 'Transparent' refers to the fact that the HTTP traffic is sent straight to the web application, therefore the WAF is transparent between the client and server. This is in contrast to reverse proxy, where the WAF acts as a proxy and the client’s traffic is sent directly to the WAF. The WAF then separately sends filtered traffic to web applications. This can provide additional benefits such as IP masking but may introduce disadvantages such as performance latency.

See also

Notes and References

  1. Web site: Web Application Firewall. TechTarget. 10 April 2018.
  2. https://blog.cloudflare.com/detecting-zero-days-before-zero-day Detecting zero-days before zero-day
  3. Web site: Perfecto Technologies Delivers AppShield for E-Business - InternetNews.. www.internetnews.com. 27 August 1999 . 2016-09-20.
  4. Web site: ModSecurity homepage. ModSecurity.
  5. Web site: What is OWASP? Guide to the OWASP Application Security Top 10. Veracode. 25 April 2012. Neil. DuPaul. 10 April 2018.
  6. Web site: The OWASP Top Ten and Today's Threat Landscape. ITProPortol. 12 March 2018. Daniel. Svartman. 10 April 2018.
  7. Web site: Harsh. 2021-12-26. Web Application Firewall (WAF) Market CAGR of 19.2% 2021. 2021-12-26. Firewall Authority. en-US.
  8. Web site: Web Application Firewall Market Worth $5.48 Billion by 2022. CISO Magazine. 5 October 2017. 10 April 2018. 11 April 2018. https://web.archive.org/web/20180411025845/https://www.cisomag.com/web-application-firewall-market-worth-5-48-billion-2022/. dead.
  9. Web site: Maximillan Dermann. Mirko Dziadzka. Boris Hemkemeier. Alexander Meisel. Matthias Rohr. Thomas Schreiber. OWASP Best Practices: Use of Web Application Firewalls ver. 1.0.5. OWASP. OWASP. English. July 7, 2008.
  10. Web site: PCI Data Security Standards Council. Information Supplement: Application Reviews and Web Application Firewalls Clarified ver. 1.2. PCI DSS. PCI DSS. October 2008.
  11. Web site: Paul E. Black. Elizabeth Fong. Vadim Okun. Romain Gaucher. NIST Special Publication 500-269 Software Assurance Tools: Web Application Security Scanner Functional Specification Version 1.0. SAMATE NIST. SAMATE NIST. January 2008.
  12. Web site: Jason Pubal. Web Application Firewalls - Enterprise Techniques. SANS Institute. SANS Institute InfoSec Reading Room. PDF. March 13, 2015.
  13. Web site: IPM. Reverse Engineering how WAFs Like Cloudflare Identify Bots. IPM Corporation. IPM Corporation. July 29, 2022.
  14. Web site: Core-Rule Set Project Repository. GitHub. 30 September 2022 .
  15. Web site: OWASP ModSecurity Core Rule Set Project. OWASP.
  16. Web site: TEST METHODOLOGY Web Application Firewall 6.2. NSS Labs. NSS Labs. 6. 2018-05-03. 2022-09-05. https://web.archive.org/web/20220905014256/https://www.nsslabs.com/index.cfm/research-advisory/library/content-security/web-application-firewalls/waf-test-methodology-v6-2/waf-test-methodology-v6-2/. dead.