Tech Blog

Coding

Mitigating BREACH attack in Nginx server

By Murgananda A1 min read
← Back to blog

BREACH is one of the commonly seen vulnerabilities in all types of web servers.

In the Ngnix server there are multiple fixes available but choosing the appropriate mitigation technique is challenging

Disabling compression HTTP compression and gzip filter module is the best solution to mitigate this vulnerability this will completely eliminate the side-channel attack. 

Below are the steps to make the configurations in the Nginx serverGoto Default configuration path for Ngnix (/etc/ngnix/ngnix.conf )

 below fix should be added

 if ($scheme = https) {gzip off;}

Gzip/compression should be turned off on application-level majorly, this should be turned off manually on Application-level if we are using any framework over core technology. Ex: Sails js

Note: Though the above solution provides a permanent fix for the Breach attack, still without gzip compression config the server will expect performance degradation.

Keep reading

You may be interested in

Browse all articles →
Active Directory Federation Service
July 5, 20235 min read

Active Directory Federation Service

Active Directory Federation Service (ADFS) uses claims-based identity model to maintain application security and to implement federated identity. ADFS is a concept of Windows Server operating system, that provides users with single sign-on access to the application, those are located across organizational boundaries. For Example: We have 2 organizations – Organization 1 and Organization 2. […]

By Abinash MishraRead More →
Remote Access to Microsoft SQL Database Server
April 5, 20232 min read

Remote Access to Microsoft SQL Database Server

Remote access to a SQL server is important because it allows users to access the server from anywhere, at any time. This enables remote workers to access the data they need when they need it, even if they are not physically in the same location as the server. It also allows IT admins to access […]

By Malkeet SinghRead More →
Types of Load Balancer in AWS
February 6, 20235 min read

Types of Load Balancer in AWS

What is Load Balancing ? Load balancing is a critical component of any scalable and highly available Cloud or On-premise architecture. It helps distribute incoming traffic across multiple servers, improving the availability and scalability of a website or application. In the cloud, load balancing is offered as a service by various cloud providers such as […]

By Keerthik ShenoyRead More →