Vulnerability "" Web server allows HTTP method DELETE"

Keeping in mind that GET and POST methods are used to request information from a web server, but as the HTTP protocol allows several others including HEAD, PUT, DELETE, TRACE, OPTIONS, and CONNECT.Some of these can cause potential security risks also right ?

So, can we try something like this which will even include our triggered vulnerability " Web server allows HTTP method DELETE" :

Hi Team,

Can the below Irule can be used to mitigate the Vulnerability:" Web server allows HTTP method DELETE"

when RULE_INIT { set sec_http_methods [list “CONNECT” “DELETE” “HEAD” “OPTIONS” “PUT” “TRACE”] }

when HTTP_REQUEST { if { [matchclass [HTTP::method] equals $::sec_http_methods] } { reject } }

Thanks and Regards Parveez

Hi Parveez,

Yes it can and the rule you posted can block the methods to be used.

Hi,

Thanks for coss-checking, but will it impact regular traffic or will it cause any issue ?

Thanks and Regards Parveez

It’s going to cause issues, if your website uses any one of these methods to function. Outside of that I don’t believe so.