Welcome! Log In Create A New Profile

Advanced

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

agentzh
January 04, 2012 06:50AM
On Sun, Jan 1, 2012 at 10:20 PM, agentzh <agentzh@gmail.com> wrote:
> The current released versions of ngx_lua does have this vulnerability
> in its ngx.req.get_uri_args() and ngx.req.get_post_args() functions.
> I've already worked out a patch for these two functions in ngx_lua's
> git max-args branch here:
>
>    https://github.com/chaoslawful/lua-nginx-module/commit/75876
>
> With this patch, both of these functions will only parse 100 query
> args at most. And one can specify a custom maximum number of args
> parsed with an optional function argument (default to 100) and
> enforcing unlimited parsing by specifying a zero number.
>
> This patch (as well as this branch) will be merged into the master
> branch in 3 Jan.
>

I've also added similar protections to ngx.req.get_headers():

http://wiki.nginx.org/HttpLuaModule#ngx.req.get_headers

All of these changes have been released as ngx_lua 0.3.1rc45:

https://github.com/chaoslawful/lua-nginx-module/tags

and also included in the ngx_openresty bundle's devel version 1.0.10.39:

http://openresty.org/#Download

Feedback welcome!

Best,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

Justin Hart December 31, 2011 01:40PM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

Maxim Dounin December 31, 2011 07:36PM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

agentzh January 01, 2012 12:56AM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

Justin Hart January 01, 2012 01:00AM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

agentzh January 01, 2012 09:22AM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

Nginx User January 01, 2012 09:32AM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

Sergey A. Osokin January 01, 2012 01:40PM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

agentzh January 04, 2012 06:50AM

Re: Is nginx vulnerable to the Hash Table Vulnerability (n.runs AG)?

Nginx User January 04, 2012 03:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready