Re: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 9:08 PM Reinis Rozitis wrote: > > I did follow your steps. My nginx.conf file is > https://paste.centos.org/view/ae22889e when I run the curl call, I am > still receiving HTTP 200 OK response instead of HTTP 444 (No Response) as > per the below output > > If you've just ca

RE: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Reinis Rozitis
> I did follow your steps. My nginx.conf file is > https://paste.centos.org/view/ae22889e when I run the curl call, I am still > receiving HTTP 200 OK response instead of HTTP 444 (No Response) as per the > below output If you've just called config reload then most likely your nginx is still us

Re: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 2:29 PM Reinis Rozitis wrote: > > So either place it as first or add listen 443 default_server; > > By first I mean the "catch all" server { server_name _; .. } block. > > rr > > ___ > nginx mailing list > nginx@nginx.org > http

RE: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Reinis Rozitis
> So either place it as first or add listen 443 default_server; By first I mean the "catch all" server { server_name _; .. } block. rr ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

RE: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Reinis Rozitis
> I have added the below server block https://paste.centos.org/view/0c6f3195 > > It is still not working. I look forward to hearing from you and your help is > highly appreciated. Thanks in Advance. If you don't use the default_server for the catch all server{} block then you should place it a

Re: Prevent Arbitary HTTP Host header in nginx

2020-02-28 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 1:23 PM Reinis Rozitis wrote: > > I have added the below server block in /etc/nginx/nginx.conf ( > https://paste.centos.org/view/raw/d5e90b98) > > > > server { > > listen 80; > >server_name _; > >return 444; > > } > > > > When i try to run the below

RE: Prevent Arbitary HTTP Host header in nginx

2020-02-27 Thread Reinis Rozitis
> I have added the below server block in /etc/nginx/nginx.conf > (https://paste.centos.org/view/raw/d5e90b98) > > server { > listen 80; >server_name _; >return 444; > } > > When i try to run the below curl call, I am still receiving 200 OK response. > #curl --verbose --h

Re: Prevent Arbitary HTTP Host header in nginx

2020-02-27 Thread Kaushal Shriyan
On Fri, Feb 28, 2020 at 1:21 AM Reinis Rozitis wrote: > > Is there a way to prevent Arbitrary HTTP Host header in Nginx? > Penetration test has reported accepting arbitrary host headers. Thanks in > Advance and I look forward to hearing from you. > > You can always define "catch all" server block

RE: Prevent Arbitary HTTP Host header in nginx

2020-02-27 Thread Reinis Rozitis
> Is there a way to prevent Arbitrary HTTP Host header in Nginx? Penetration > test has reported accepting arbitrary host headers. Thanks in Advance and I > look forward to hearing from you. You can always define "catch all" server block with: server { listen 80 default_server; s

Prevent Arbitary HTTP Host header in nginx

2020-02-27 Thread Kaushal Shriyan
Hi, Is there a way to prevent Arbitrary HTTP Host header in Nginx? Penetration test has reported accepting arbitrary host headers. Thanks in Advance and I look forward to hearing from you. More Information as below:- https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attack