论文标题

协作编辑是否有助于减轻人群共享的物联网代码示例中的安全漏洞?

Does Collaborative Editing Help Mitigate Security Vulnerabilities in Crowd-Shared IoT Code Examples?

论文作者

Selvaraj, Madhu, Uddin, Gias

论文摘要

背景:随着人群开发人员论坛的扩散,软件开发人员越来越多地与其他论坛中的其他人共享编码解决方案,以解决编程问题。网站上知识共享的分散性质引起了共享安全易受伤害的代码的关注,然后可以将其重新用于任务关键软件系统 - 使这些系统在此过程中易受伤害。协作编辑已在诸如Stack Overflow之类的论坛上介绍,以提高共享内容的质量。目的:在本文中,我们调查了代码编辑是否可以通过分析IoT代码段及其在三个堆栈交换站点中的修订来减轻共享脆弱的代码示例:堆栈溢出,Arduino和Raspberry Pi。方法:我们分析了共享物联网C/C ++代码段中存在的漏洞,因为C/C ++是任务 - 关键设备和低功耗的IoT设备中使用最广泛的语言之一。我们进一步分析了这些代码片段及其效果的修订。结果:我们找到了几个漏洞,例如CWE 788-在740代码段中,缓冲区结束后的内存位置访问。但是,我们发现绝大多数帖子未经修订,也没有对代码段本身进行修订(740分中的598个)。我们还发现,修订最有可能不会改变代码段中的漏洞数量,而不是恶化或改善片段。结论:我们得出的结论是,论坛中当前的协作编辑系统可能不足以帮助减轻共享代码中的脆弱性。

Background: With the proliferation of crowd-sourced developer forums, software developers are increasingly sharing more coding solutions to programming problems with others in forums. The decentralized nature of knowledge sharing on sites has raised the concern of sharing security vulnerable code, which then can be reused into mission critical software systems - making those systems vulnerable in the process. Collaborative editing has been introduced in forums like Stack Overflow to improve the quality of the shared contents. Aim: In this paper, we investigate whether code editing can mitigate shared vulnerable code examples by analyzing IoT code snippets and their revisions in three Stack Exchange sites: Stack Overflow, Arduino, and Raspberry Pi. Method:We analyze the vulnerabilities present in shared IoT C/C++ code snippets, as C/C++ is one of the most widely used languages in mission-critical devices and low-powered IoT devices. We further analyse the revisions made to these code snippets, and their effects. Results: We find several vulnerabilities such as CWE 788 - Access of Memory Location After End of Buffer, in 740 code snippets . However, we find the vast majority of posts are not revised, or revisions are not made to the code snippets themselves (598 out of 740). We also find that revisions are most likely to result in no change to the number of vulnerabilities in a code snippet rather than deteriorating or improving the snippet. Conclusions: We conclude that the current collaborative editing system in the forums may be insufficient to help mitigate vulnerabilities in the shared code.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源