by benmmurphy · 4y ago · 0 comments
https://github.com/redis/redis/commit/49efe300af258e83f377cd...
and you can check the history on that file to see they haven't removed the fix:
https://github.com/redis/redis/commits/unstable/deps/lua/src...
it could be the latest lua version that Debian ships with has 'safe' byte code evaluation and this fix no longer needs to be applied.
Since you've already let the cat out of the hat (which is not ideal), please file the bugs at Debian and Ubuntu.
Test command:
redis-cli eval 'return select(2, loadstring("\027")):match("binary") and "VULNERABLE" or "OK"' 0
While we're at it, redis has ignored the advice at: http://lua-users.org/wiki/SandBoxes
Almost all of the critical functions (loadstring, load, getmetatable, getfenv, ...) are present and unprotected in the redis 'SandBox' (which isn't).Which means, disable scripting or shut down your redis instances NOW, which do not run with the same privileges as any client which has access to this. Scripting can be disabled by renaming the EVAL and EVALSHA commands to unguessable names.
But, just to clarify, mikemike's advice is that everyone (i.e. including people running upstream redis) should disable scripting.