TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Redis Lua scripting: several security vulnerabilities fixed

59 点作者 itamarhaber将近 7 年前

6 条评论

mathnmusic将近 7 年前
&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 未加载
samatman将近 7 年前
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 未加载
breakingcups将近 7 年前
I appreciate the (what feels like) honest and direct communication from Antirez very much. It&#x27;s always such a breath of fresh air.
moby将近 7 年前
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>
ksec将近 7 年前
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.
andrewmcwatters将近 7 年前
&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 未加载