]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: lua: Forbid calls to Channel functions for LUA scripts in HTTP proxies
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 13 Dec 2018 20:56:45 +0000 (21:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2018 15:04:00 +0000 (16:04 +0100)
commit3f829a4b7484a29f082659473b243a38beea75f0
tree82704c732103e6c458dc49db20209f3c31dde5f6
parentc16317d1ca5f2172d01a10490e72f7ab5110970f
MAJOR: lua: Forbid calls to Channel functions for LUA scripts in HTTP proxies

Functions from then Channel class are now forbidden for LUA scripts called from
HTTP proxies. These functions totally hijacked the HTTP parser, leaving it in an
undefined state. This patch is tagged as MAJOR because it could be see as a
compatibility breakage. But a LUA script using one of these functions has a very
low probablity to work correctly except by chance.

So, concretely, following functions are concerned: Channel.get, Channel.dup,
Channel.getline, Channel.set, Channel.append, Channel.send,
Channel.forward. Others remain available.
src/hlua.c