|
|
|
|
|
by mikemike
1558 days ago
|
|
Yes, of course it's vulnerable, verified with Docker debian:sid. That was my first reaction when I read this, but I wanted to verify it first. You beat me with this post. 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.