Maxim Dounin
June 25, 2020 12:50PM
Hello!

On Thu, Jun 25, 2020 at 11:33:29AM -0400, anish10dec wrote:

> Nginx Upstream returning 400 Bad Request if null character is being passed
> in the request as part of uri or query params.
>
> Is there a way Null Character can be removed from request before proxying
> it to upstream.
>
> Its only known from access logs that null character is being passed in
> request as \x00 and causing the failure

The null character is not allowed in the HTTP request line, and
hence nginx returns 400 (Bad Request) error.

> How to identify the Null Character and remove it ?

You can't. Instead, consider fixing the client to generate HTTP
requests correctly.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Removing Null Character from Query Parameter

anish10dec June 25, 2020 11:33AM

Re: Removing Null Character from Query Parameter

Maxim Dounin June 25, 2020 12:50PM

Re: Removing Null Character from Query Parameter

anish10dec June 25, 2020 02:02PM

Re: Removing Null Character from Query Parameter

Maxim Dounin June 25, 2020 02:20PM

Re: Removing Null Character from Query Parameter

jeffdyke June 25, 2020 09:22PM

Re: Removing Null Character from Query Parameter

anish10dec June 26, 2020 01:59AM

Re: Removing Null Character from Query Parameter

anish10dec June 26, 2020 11:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready