Pros and Cons of Web Application Firewalls

Web application firewalls (WAFs) provide effective protection against various types of attacks on applications. Because of their focus, WAFs are particularly good at defending against zero-day exploits, cross-site scripting, SQL injection, IP spoofing, session hijacking, buffer overflow attacks, and even identity theft. For this purpose, the web application firewall is placed between the application, or its network service, and the user. Based on a predefined set of rules, the WAF inspects all data packets sent back and forth between the two parties in real time or with only minor delays. If suspicious traffic patterns occur, the web application firewall is also able to learn them and respond to them in the future.

Despite their capabilities, web application firewalls are not perfect. Like network firewalls, they cover a very specific part of the OSI model (Open Systems Interconnection model), namely layers 4 to 7, which deal with data transfer. This alone makes it clear that using WAFs exclusively leaves security gaps that can only be closed in combination with other measures.

To find the most suitable security configuration, it helps to take a closer look at the pros and cons of web application firewalls.

Advantages

  1. Web application firewalls form a good additional layer of protection against unwanted access when they are used together with other security measures such as a network firewall. Because the latter secures layers 3 and 4 of the OSI model, for example, combining both firewall types protects a total of five of the seven layers of the OSI model against outside interference.
  2. A web application firewall can be placed in front of several applications at the same time. This way, a single WAF can close several security gaps in one application as well as one security gap in each of several applications.
  3. A common problem with legacy software is that the existing code can no longer be modified. This makes it easy for attackers to gain unauthorized access. A web application firewall is a practical remedy here.
  4. Especially in applications that were developed by a partner or service provider rather than by the provider itself, security gaps can persist for a longer period. Web application firewalls buy the time needed to adapt the code accordingly, with less exposure to attacks in the meantime.

Disadvantages

  1. Even though web application firewalls offer good protection against certain types of attacks, they cannot close other security gaps. For this reason, combining them with a network firewall makes sense. In addition, a WAF offers no protection against malware that has already entered the network. This means that a web application firewall for outward protection should be complemented by measures for inward protection.
  2. Web application firewalls can be bypassed with certain methods, such as HTTP request smuggling. Attackers exploit differences in how HTTP requests are processed by sending two different requests that the firewall takes for a single one. The firewall then associates the request with a “safe” data packet, but receives a worm or other malware, for example, without registering it.
  3. A web application firewall is only as good as its filter settings. If the filters are too restrictive or set incorrectly, this can cause delays in the running application and frustrate its users. It is therefore essential to have the filters set up professionally.
  4. Web applications that use active content, for example with JavaScript, can cause problems when a web application firewall is in use. JavaScript has so far received only limited support, and WAFs can be adapted for use with this content only with considerable effort.
  5. Precisely because web application firewalls perform very well in their field, they can lead to problems. They may give developers a false sense of security and make them careless when writing code. Negligence at this point can have serious consequences, because no firewall is ever a substitute for good, sound code.

Conclusion

After comparing the most important pros and cons, it is fair to say that web application firewalls are particularly well suited to adding a further layer to existing protection. Administrators can also use them to shield outdated code or other existing security gaps until these can be fixed for good.

However, WAFs are only as good as the rules they are given. For this reason, it is essential that the responsible administrator knows this subject very well and is aware of the types of attacks a WAF cannot protect against. As good as a web application firewall may be, its use should not create a false sense of security.

Share LinkedIn X Email