Buffer overflow patching for C and C++ programs

Author:

Shahriar Hossain1,Haddad Hisham M.1,Vaidya Ishan1

Affiliation:

1. Kennesaw State University, Kennesaw, GA

Abstract

The presence of buffer overflow (BOF) vulnerabilities in programs hampers essential security objectives such as confidentiality, integrity and availability. In particular, exploitations of BOF might lead to many unwanted consequences including denial of service through program crash, control flow hijacking, and corrupted program state. When BOF vulnerabilities are detected, they need to be patched before the software is redeployed. Source level automatic patching of vulnerabilities has the challenges of finding a set of general rules and consistently applying them without bringing any side effects to intended software. This paper proposes a set of general rules to address the mitigation of BOF vulnerabilities for C/C++ programs. In particular, we developed a set of rules to identify vulnerable code and how to make the code vulnerability free. The proposed rule-based approach addresses both simple (one statement) and complex (multiple statements) forms of code that can be vulnerable to BOF ranging from unsafe library function calls to the pointer usage in control flow structures (loop and conditional statements). We evaluated the proposed approach using two publicly available benchmarks and a number of open source C/C++ applications. The results show that the proposed rules can not only identify previously known BOF vulnerabilities, but also find new vulnerabilities. Moreover, the patching rules impose negligible overhead to the application.

Funder

Kennesaw State University College of Science and Mathematics Faculty Summer Research Award Program and Faculty Startup Research Grant

Publisher

Association for Computing Machinery (ACM)

Reference30 articles.

1. Aleph One Smashing the Stack for Fun and Profit Phrack Magazine Volume 7 Issue 49 November 1996 Accessed from http://insecure.org/stf/smashstack.html Aleph One Smashing the Stack for Fun and Profit Phrack Magazine Volume 7 Issue 49 November 1996 Accessed from http://insecure.org/stf/smashstack.html

2. Assessing Test Suites for Buffer Overflow Vulnerabilities, International Journal on Software Engineering and Knowledge Engineering;Shahriar H.;World Scientific,2010

3. Mitigating program security vulnerabilities

4. Common Weakness Enumeration (CWE) http://cwe.mitre.org/documents/vuln-trends/index.html Common Weakness Enumeration (CWE) http://cwe.mitre.org/documents/vuln-trends/index.html

5. ITS4: Software Security Tool http://www.cigital.com/its4 ITS4: Software Security Tool http://www.cigital.com/its4

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. CorCA: An Automatic Program Repair Tool for Checking and Removing Effectively C Flaws;2023 IEEE Conference on Software Testing, Verification and Validation (ICST);2023-04

2. Automatic Prevention of Buffer Overflow Vulnerability Using Candidate Code Generation;IEICE Transactions on Information and Systems;2018-12-01

3. Research on Key Data Structure Localization Technology of Buffer Overflow Vulnerability;Proceedings of the 2018 International Conference on Information Science and System;2018-04-27

4. Auditing buffer overflow vulnerabilities using hybrid static–dynamic analysis;IET Software;2016-04

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3