简体   繁体   English

对于Web解决方案使用RinRuby是否安全?

[英]Is using RinRuby secure for web solutions?

I recall from some meetups I've attended in NYC that people in bell labs were trying to work on potential security issues with R on the web. 我记得在纽约参加的一些聚会中,贝尔实验室的人们正在尝试使用R在网络上解决潜在的安全问题。 There was potential risks of code injection into a Web App if R sessions were kept alive for the user. 如果R会话对用户有效,则存在将代码注入Web应用程序的潜在风险。

Now, this was presented in the context of HTML 5 and PHP, but I don't see how it would be different when using RoR with the RinRuby gem. 现在,这是在HTML 5和PHP的上下文中介绍的,但是我看不到将RoR与RinRuby gem一起使用时会有什么不同。 Is there a set of rules we as developers should follow to avoid common security pitfalls when using this gem? 作为开发人员,在使用此gem时,我们应遵循一些规则来避免常见的安全隐患吗?

R in general was not built with security in mind (see also this preprint at arXiv by Jeroen Ooms). 通常,R并不是在考虑安全性的情况下构建的(另请参见Jeroen Ooms在arXiv上的预印本 )。 It is also notorious for flaky parsing of numbers . 不稳定的数字解析也臭名昭著。

Judging from the source code (which was not updated for 2 years (!)) RinRuby doesn't seem to provide any kind of isolation from injection either - bare-bones eval is a gateway to hell, they say :) 从源代码来看( 两年没有更新 !),RinRuby似乎也没有提供任何与注入的隔离-裸露的eval是通向地狱的门户,他们说:)

Thus, it falls upon your shoulders to follow eg OWASP guidelines to avoid injection by carefully validating, parameterizing and whitelisting the input. 因此,遵循诸如OWASP指导原则来避免通过仔细验证,参数化和将输入列入白名单而避免注入的责任。 Having in mind the above-mentioned quirks in parsing numbers, you have to restrict inputs to sane intervals. 考虑到上述解析数字的怪癖,您必须将输入限制为合理的时间间隔。

Just my 2 cents... 只是我的2美分...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Ruby rnrub与gem rinruby错误 - RubyOnRails Error with gem rinruby 通过 RinRuby 序列化 R object - Serialization of R object via RinRuby 到目前为止,在轨道上使用“ rinruby” gem时,我目前无法使用png(“ path / to / file.png”)和dev.off()将热图等转储到文件夹中 - When using the 'rinruby' gem on rails, I'm so far unable to use png(“path/to/file.png”) & dev.off() to dump heatmaps etc to a folder 使用WS-Security工具保护Ruby on Rails框架创建的Web应用程序 - Using WS-Security tools to secure web applications created by the Ruby on Rails framework 是否有必要使用尽可能少的队列以及web消息传递的解决方案 - Is it necessary to use as few queues as possible And solutions for web messaging 使用回形针处理安全和非安全文件 - using paperclip with secure and non-secure files 将红宝石数组转换为RinRuby的R数组(在R列表内) - convert a ruby array into an R array (within an R list) for RinRuby Rails发布xml以保护Web服务api - Rails post xml to secure web service api 是否有将Rails 3.0和Facebook一起使用的稳定解决方案? - Are there any stable solutions for using Rails 3.0 and Facebook together? 如何使用移动应用程序中的Facebook登录名或Google+登录名从Android或iPhone应用程序向我的Web服务进行安全注册 - How to do a secure register from my Android or iPhone app to my web services, using Facebook Login or Google+ Login in my mobile App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM