Design and Verification of Program Buffer Overflow Inspection Method
- Author
- YaoZuoNing
- Advisor
- ZhangXiaoYan
- School
- Beijing University of Posts and Telecommunications
- Major
- Software Engineering
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 78
- Citations
- 0
Abstract
The buffer overflow problem in C programs is one of the most famous and dangerous vulnerabilities in the last decades. To discover and fix such vulnerabilities, researches have proposed many methods. They can be classified into two categories: The dynamic testing based approaches and the static Source code analysis based approaches. The former one’s power in detecting buffer overflow errors suffers from the coverage limitation of test cases; While the later one, although taking all possible inputs into consideration, may report too many false positives which will seriously affect its actual use.To overcome the dilemma, this paper extends traditional testing approaches and proposes a new dynamic buffer overflow detecting method. When examining a program run, it not only the reports the errors revealed by the current runtime data, but also examines the errors possibly occurring under the current execution path when different inputs are specified and therefore improves the ability of testing in detecting errors. Besides, compared to the Static buffer overflow detection, such path relaxation based approach can effectively reduce the number of false positives as we only considered the actually executed paths, not the paths occurs in the control flow path but not really executable, and hence it also improves the precision of buffer overflow detection.To validate the effectiveness of our method, we implemented a prototype. For a given subject, it firstly analyzes the source code to determine which variables should be traced at runtime and where they should be traced. Then the tool inserts constraint maintenance codes and error detecting codes into the subject program. Error reports can be generated after running the instrumented program. The preliminary experiment study indicates that our method is absolutely effective.
Table of contents
Summary 4-5
ABSTRACT 5-9
Chapter 1 Introduction 9-12
1.1 Background and Significance topics 9
1.2 topics Situation main content 9-10
1.3 topics 10
1.4 nbsp paper tissue structure ; 10-12
Chapter II program overflow Vulnerability 12-19
2.1 overflow Vulnerability generation 12-14
2.2 overflow Vulnerability classification 14-19
2.2.1 direct buffer overflow vulnerabilities and indirect buffer overflow vulnerabilities 14-16
2.2.2 by memory buffer where the classification 16-17
2.2.3 by operation resulted in an overflow classification 17-18
2.2.4 by way of transfer of control flow 18-19
Chapter III overflow vulnerability protection and detection 19-28
3.1 protection mechanism 19-22
3.1.1 compiled protection technology 19-20
3.1.2 link library functions to protect 20 <br / > 3.1.3 unenforceable buffer 20-21
3.1.4 mandatory Access control kernel 21
3.1.5 hardware -level protection 21-22
3.2 overflow detection 22-28
3.2.1 specification with static overflow detection 22-25
3.2.2 dynamic overflow detection 25-28
Chapter relaxation path-based defect detection uncertainty nbsp 28-46
4.1 single path ; 28-29
4.2 with constraints test information 29-38
4.2.1 based on the type of restraint system 30-33
4.2.2 boundary constraint -based systems 33-36 <br / > 4.2.3 interval -based chain restraint system 36
4.2.4 restraint systems based on symbolic expressions 36-38
analysis 4.3 integer array 38-40
4.3.1 constraints pure dynamic array element analysis 38-39
4.3.2 constraints static array element analysis 39-40
4.4 pointers and pointer analysis of the array dissemination 40-43
4.4.1 constraints 40-41
4.4.2 array elements based invariant constraint analysis 41-43
4.5 track variable selection 43-46
4.5.1 dangerous operation -related variables 43
4.5.2 dangerous operation -related variables static identification uncertainty analysis and dependency extraction 43-44
4.5.3 runtime identify 44-45
4.5.4 subject Cartridge variable position 45-46
the fifth chapter combinatorial testing and error 46-53
5.1 is often a combination of quantitative and test 46-47
5.2 often quantified portfolio 47-48
5.3 generation and portfolio optimization 48-50
5.4 error mechanism 50-53
5.4.1 analysis based on the accuracy of the error 50 <br / > 5.4.2 based on a combination of testing error 50-51
5.4.3 sorting based on experience 51
5.4.4 constraints sorting based 51 <br / > 5.4.5 runtime based on the value of the sort 51-53
Chapter VI design and verification 53-63
basic structure 6.1 SUIF2 platform 53-54
6.2 PIT structure 54
6.3 simplify procedures dependency extraction and uncertainty analysis nbsp 54-55
6.4 runtime ; 55 -57
6.5 target tracking analysis achieve 57-59
6.6 restraint system 59-62
6.7 erroneous reports 62-63 <br / > Chapter VII Conclusion 63-64
7.1 thesis summary 63
7.2 problems and prospects 63-64
References 64-67
Thanks 67
Related dissertations
- Research on Some Issues of Software Vulnerability Testing
- Static Security Detection of C Applications
- And the realization of software testing reuse management subsystem design
- Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
- Research on software testing technology based on complex network theory
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
- Research of Software Testing Method Based on Cloud Computing
- Research on Path-oriented Test Data Generation
- Research on Process Improvement in Y Co. Based on CMM
- Method Research and System Development of Software Automatic Testing
- Research and implementation of TaaS test management services
- The Design and Implementation of Banking Software Testing Based on Bugfree
- Automatic Generation of Test Data Based on Heuristic Search Algorithm
- Research on Combinatorial Testing Technique and Its Application
- Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
- Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B
- A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases
- Software Reliability Oriented Performance Test Model Research and Application
- The Study and Realization of the Android Tablet Stability Automated Test