NoSQL 注入? (PHP->phpcassa->Cassandra)
任何熟悉 Cassandra 引擎(通过 PHP 使用 phpcassa lib)的人都知道 SQL 注入攻击向量是否有必然结果?如果是这样,是否有人尝试建立最佳实践来阻止它们?如果没有,有人愿意吗? )
Anyone familiar enough with the Cassandra engine (via PHP using phpcassa lib) to know offhand whether there's a corollary to the sql-injection attack vector? If so, has anyone taken a stab at establishing best practices to thwart them? If not, would anyone like to ; )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不会。phpcassa使用的Thrift层是一个rpc框架,不是基于字符串解析的。
No. The Thrift layer used by phpcassa is an rpc framework, not based on string parsing.
更新 - Cassandra v0.8 引入了 CQL,这可能会带来注入攻击的可能性。但是:
Cassandra v1.1.0 中引入了 Prepared statements,这有助于防止此类攻击。
此外,请参阅此帖子,其中解释了 CQL 的功能:使其能够抵抗注入,包括:
其他陈述,这将是另一个常见的向量
注射。
An update - Cassandra v0.8 introduced CQL, which might have brought with it the possibility of injection attacks. However:
Prepared statements were then introduced in Cassandra v1.1.0, which help to prevent such attacks.
Furthermore, see this posting which explains features of CQL that make it resistant to injection, including:
other statements, which would be another common vector for an
injection.