Web Application Firewall (WAF)

Many applications today are web based. This brings advantages for users and providers, but it also opens up security risks. For this reason, providers of web applications have to make sure from the outset that their offering is well secured. A first step is to ensure that the code of the applications on offer contains as few errors and points of attack as possible. Sometimes, however, nothing can be changed about that. The code may not be available, for example, the software may be legacy software, or someone else writes the code and the provider does not want to rely on that person’s skills alone. In such cases, firewalls come into play.

Not All Firewalls Are the Same

Just as there are different types of attacks on web applications, there are also different firewalls that are meant to protect against them. To understand their differences, it helps to look first at the basic processes and risks involved in calling up a web application.

All information on the internet is stored on servers, and that includes web applications. When someone calls up a page, the computer accesses the network service of the server in question by opening a port for it. The relevant data can then be downloaded and displayed. This basic function alone gives attackers opportunities to gain unauthorized access to a client. On the one hand, gaps in the protection of the network service can be exploited to gain access to the computer or server beyond the intended functions and, for example, to retrieve, change, or delete data there.

On the other hand, security gaps on the PC that calls up the application can also allow attackers to gain access. It is possible, for example, that users call up a manipulated application and that malware installs itself unnoticed. This malware can in turn function as a network service from the affected PC. This network service can connect to the internet without any action by the user and make the computer part of a botnet. All of this happens without the user being aware of it in any way.

The use of firewalls offers substantial protection against such attacks. Users themselves also contribute actively to the security of their computer through their behavior, for example through the pages they call up. Network firewalls and web application firewalls protect at different points in the processes described and are therefore particularly effective in combination.

How Network Firewalls Work

Based on the Open Systems Interconnection model (OSI model), network firewalls are designed for layers 3 and 4. This means that their task is to check the IP address of the network service, which port is opened for it, and which data and functions it may access.

One problem here is that this firewall checks the information it was designed to control very well but offers no security beyond that. In concrete terms, this means that malware can still be transmitted after a site has been recognized as "secure". Either the site operator has placed it there, or the operator may have become the victim of an attack.

This has consequences even for users whose firewall worked flawlessly. Once malware is on one computer in a network, it spreads very quickly to the other computers as well. It can then switch off the firewall on any PC completely or deactivate the existing filtering of "secure" and "insecure" network services. In this way, all kinds of services can access all computers in the associated network entirely unnoticed.

How Web Application Firewalls Work

Web application firewalls work in a completely different way from the network firewalls described above. They are designed to secure computers or applications on layers 5 to 7 of the OSI model. In concrete terms, this means that this type of firewall checks, filters, and if necessary completely blocks the transmission of data over HTTP (Hypertext Transfer Protocol).

For this purpose, the web application firewall is placed in front of one or more web applications and thus stands as a kind of "security buffer" between the actual application and the users. The form in which the web application firewall runs, whether as a server, plug-in, cloud service, or appliance, is irrelevant to its functionality.

Once the web application firewall is assigned to a web application, it checks all data packets that are sent back and forth between the network service of the application and the computer that wants to access the application. Precise rules can be set as the basis on which the data packets are to be checked. The range extends from HTTPS and HTML through SOAP to XML-RPC data packets. The web application firewall then checks all incoming and outgoing data packets for malware in real time, filters out affected packets, or blocks communication with a network service completely if that service sends exclusively or predominantly harmful data.

Defending Against Attack Patterns

By filtering the data packets, web application firewalls provide good protection against different types of attacks on web applications and their servers. The web application firewall looks out for harmful data packets or traffic patterns. In this way, it helps to prevent zero-day exploits, cross-site scripting, and SQL injection as well as IP spoofing, session hijacking, buffer overflow attacks, and even identity theft. Because most WAFs are capable of learning to a certain extent, they can also learn new attack patterns and recognize them in the future.

Conclusion

Web application firewalls are a good way to protect web applications against unwanted access or harmful software. This type of firewall also has its limits, however, which is why it develops its full potential only in interaction with a network firewall. Together, the two firewalls secure a total of five of the seven layers of the OSI model. The conventional network firewall covers layers three and four, and the web application firewall covers layers five to seven. The network firewall checks the classic parameters such as IP address, ports, and access control list, while the WAF placed between web application and user checks the data packets sent back and forth between the two parties at the same time.

Even though one hundred percent security can never be guaranteed, using both types of firewall together offers a high level of protection. If the web application also has reliable, good code and the users pay attention to what they click, the essential building blocks are in place.

Share LinkedIn X Email