Re: Request Method Using Mixed case letters.

2021-01-13 Thread Jeffrey 'jf' Lim
On Wed, Jan 13, 2021 at 2:04 PM sanjay wrote: > > Thanks for the update. > I have already taken care to hide the "nginx". > > With CAPITAL letters, my testcase using "POSTSSS" for request_method, works > fine.However, for mixed-case and small-case , nginx default rule applies and > control doe

Re: Request Method Using Mixed case letters.

2021-01-13 Thread Maxim Dounin
Hello! On Wed, Jan 13, 2021 at 01:04:26AM -0500, sanjay wrote: > Thanks for the update. > I have already taken care to hide the "nginx". The links I've provided explain why you shouldn't do this. In particular, because this has nothing to do with security, and because it is an easy way to

Re: Request Method Using Mixed case letters.

2021-01-12 Thread sanjay9999
I would like to allow GET / POST / DELETE methods only. otherwise send 501 response. if ($request_method !~* ^(GET|DELETE|POST)$ ) { return 501 '{ "ver": "1.1.2", "txnid": "", "timestamp": "", "errorCode": "NotImplemented", "errorMsg": "Request Method is not implemented"}'; } I am using mixed case

Re: Request Method Using Mixed case letters.

2021-01-12 Thread sanjay9999
Thanks for the update. I have already taken care to hide the "nginx". With CAPITAL letters, my testcase using "POSTSSS" for request_method, works fine.However, for mixed-case and small-case , nginx default rule applies and control does not reach my server block. hence I end up getting 400 error wi

Re: Request Method Using Mixed case letters.

2021-01-12 Thread Maxim Dounin
Hello! On Tue, Jan 12, 2021 at 04:10:03AM -0500, sanjay wrote: > Hi, > I am using mixed case letters in request methods. nginx finalized http > request to 400 becuase as per the standard Request Method is case sensitive. > However it shows html response with last line showing "nginx". > >

Re: Request Method Using Mixed case letters.

2021-01-12 Thread sanjay9999
Example used in testcase request method = "POSTsss" I would like to allow GET / POST / DELETE methods only. otherwise send 501 response. if ($request_method !~* ^(GET|DELETE|POST)$ ) { return 501 '{ "ver": "1.1.2", "txnid": "", "timestamp": "", "errorCode": "NotImplemented", "errorMsg": "Reques

Request Method Using Mixed case letters.

2021-01-12 Thread sanjay9999
Hi, I am using mixed case letters in request methods. nginx finalized http request to 400 becuase as per the standard Request Method is case sensitive. However it shows html response with last line showing "nginx". Our security team says "you should not disclose web server details in the respons