TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Redis Lua scripting: several security vulnerabilities fixed

59 pointsby itamarhaberalmost 7 years ago

6 comments

mathnmusicalmost 7 years ago
&gt; Honestly when the Redis Lua engine was designed, it was not conceived with this security model of the customer VS the cloud provider in mind. The assumption kinda was that you can trust who pokes with your Redis server. So in general the Lua libraries were not scrutinized for security. The feeling back then was, if you have access to Redis API, anyway you can do far worse.<p>This is an interesting point. Cloud computing and managed&#x2F;hosted services require a clear separation of what the host can do and what the customer (who&#x27;s paying for the managed service) should be able to do.<p>Just today, our startup decided to use AWS Kinesis (as opposed to setting up Kafka ourselves), despite the vendor lock-in and closed-source nature of AWS components. :-&#x2F;
评论 #17307557 未加载
samatmanalmost 7 years ago
Consensus in the community is that Lua(JIT) sandboxing must be done on the process level.<p>Even with the debug library stripped and other safeguards against (inner) evaluation taken, the trivial DOS of `while true do end` remains.<p>If that happens, you want it to live in its own process, or at least its own thread.
评论 #17305582 未加载
breakingcupsalmost 7 years ago
I appreciate the (what feels like) honest and direct communication from Antirez very much. It&#x27;s always such a breath of fresh air.
mobyalmost 7 years ago
Heroku&#x27;s updated their Redis fleet: <a href="https:&#x2F;&#x2F;blog.heroku.com&#x2F;redis-vulnerability" rel="nofollow">https:&#x2F;&#x2F;blog.heroku.com&#x2F;redis-vulnerability</a>
ksecalmost 7 years ago
Somewhat off topic:<p>What Happened to the mRuby Scripting in Redis? I remember there were plans to make mRuby in Redis too. Given mRuby has had quite a bit of security audit in recent years that cost Shopify millions.
andrewmcwattersalmost 7 years ago
&gt; To be fair, I think that the assumptions Lua makes about the stack are a bit too trivial, with the Lua library developer having to constantly check if there is enough space on the stack to push a new value.<p>What the fuck? This is almost never a concern for Lua C developers. If you&#x27;re concerned with LUA_MAXCSTACK defaulted at 2048 and you&#x27;re running out of space, you&#x27;re doing something seriously wrong and need to reevaluate how you&#x27;re using the Lua C API.
评论 #17305874 未加载