SCENARIO:
I'm testing a web application. To test if TRACE is enabled I used both
nmap --script http-methods target.com
and
curl -k -i -X OPTIONS target.com
After running the former I get
443/tcp open https
| http-methods:
| Supported Methods: OPTIONS TRACE GET HEAD POST
|_ Potentially risky methods: TRACE
with the latter I get
Allow: TRACE ...
Public: TRACE ..
So I guess TRACE should work. But when I run
curl -k -i -X TRACE target.com
I get
HTTP/1.1 405 Not Allowed
Server: Microsoft-Azure-Application-Gateway/v2
...
Which is not what I was expecting.
QUESTION:
why TRACE is blocked? is because of Azure or what?