News for hackers. Stuff that matters.
Re:Redis Lua scripting implemented: how to play with it. by almost on Monday May 02, 2011 @03:37PM (#2507518)
The fact that it allows separate arguments should make injections vulnerabilities a lot less likely to happen by accident since there shouldn't be any need to interpolate you arguments into the code string (this would also mess up the compiled function cache so you definitely want to do that anyway).

Also, LUA is a very small at core and I don't think it by default includes things like file system access. You pretty much just get what the host applications gives you, which in this case seems to be just the Redis API.

Re:Redis Lua scripting implemented: how to play with it. by LeafStorm on Monday May 02, 2011 @08:10PM (#2508446)
First, it's Lua. Not LUA.

Secondly, it does include filesystem access by default, and right now there is no decent protection against it. Hopefully, sandboxing will be implemented before this reaches anything related to stable.

Re:Redis Lua scripting implemented: how to play with it. by almost on Tuesday May 03, 2011 @06:35AM (#2509508)
You seem to be correct on both of those points.

Sandboxing Lua does seem quite easy though: http://stackoverflow.com/questions/1224708/how-can-i-create-...

Re:Redis Lua scripting implemented: how to play with it. by antirez on Monday May 02, 2011 @05:07PM (#2507846)
Thanks almost, 100% agree, just you said it in a better English :)