Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow HTTP POST vulnerability on azure

I have asp.Net MVC web application deployed on azure. And have some problems with Slow HTTP POST vulnerability. So I want to configure <\limits> to turn on connectionTimeout.

I can`t do this in Web.config (or mb just don`t know right place to write it). In guides this thing configure on iis, but how to do this in azure?

like image 546
Andrew Babiychuk Avatar asked Jul 15 '15 08:07

Andrew Babiychuk


1 Answers

The setting that you are talking about connectionTimeout needs to be set in the applicationhost.config file. This file is not found as part of your project, but is part of your azure website. If you want to view the configuration settings in this file you can go to the kudo service for your site which can be accessed by following the directions here: https://github.com/projectkudu/kudu/wiki/Accessing-the-kudu-service

To get to the location of the file go to the cmd console, click on the globe icon and it should be in the the Configure folder. That is how you view the current settings. To actually change the settings you need to create an xdt transform file and drop it into your site root and restart the site. This can be done using ftp (the ftp host url can be found in the azure portal for you site).

You are also going to want to configure your <\webLimits> as well to help prevent a slow post attack.

like image 124
Ders37 Avatar answered Sep 29 '22 17:09

Ders37