arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1302.1338cs.CR
收藏

基于Source Code分析的Java Socket程序安全漏洞消除方法研究

Source Code Analysis to Remove Security Vulnerabilities in Java Socket Programs: A Case Study

Natarajan Meghanathan

摘要:

本文通过对一个用Java开发的文件阅读器服务器套接字程序(面向连接的套接字)的源代码分析,阐述了5个重要的软件安全漏洞的识别、影响分析和消除方案,这些漏洞如果不被关注,可能会严重影响运行软件的服务器以及托管服务器的网络。本文研究的五个漏洞是:(1)资源注入,(2)路径操纵,(3)系统信息泄漏,(4)拒绝服务和(5)未释放资源漏洞。我们分析了这些漏洞出现在文件读取器服务器套接字程序中的原因,讨论了在程序中不加注意的影响,并提出了从程序中删除这些漏洞的解决方案。我们还分析了任何潜在的性能权衡(如代码大小的增加和功能的损失),可能会出现,同时将建议的解决方案上的服务器程序。所提出的解决方案本质上是非常通用的,并且可以被适当地修改以纠正以任何其他程序设计语言开发的软件中的任何这样的漏洞。我们使用Fortify源代码分析器对文件阅读器服务器程序进行源代码分析,该程序在Windows XP虚拟机上使用标准J2SE v.7开发工具包实现。

英文摘要:

This paper presents the source code analysis of a file reader server socket program (connection-oriented sockets) developed in Java, to illustrate the identification, impact analysis and solutions to remove five important software security vulnerabilities, which if left unattended could severely impact the server running the software and also the network hosting the server. The five vulnerabilities we study in this paper are: (1) Resource Injection, (2) Path Manipulation, (3) System Information Leak, (4) Denial of Service and (5) Unreleased Resource vulnerabilities. We analyze the reason why each of these vulnerabilities occur in the file reader server socket program, discuss the impact of leaving them unattended in the program, and propose solutions to remove each of these vulnerabilities from the program. We also analyze any potential performance tradeoffs (such as increase in code size and loss of features) that could arise while incorporating the proposed solutions on the server program. The proposed solutions are very generic in nature, and can be suitably modified to correct any such vulnerabilities in software developed in any other programming language. We use the Fortify Source Code Analyzer to conduct the source code analysis of the file reader server program, implemented on a Windows XP virtual machine with the standard J2SE v.7 development kit.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑