1
Detecting possible format string vulnerabilities in C programs | |
Author | Huynh Buu Ky |
Call Number | AIT Thesis no.CS-03-17 |
Subject(s) | String models Data detection C (Computer program language) Computer security |
Note | A thesis submitted in partial fulfillment of the requirements for the degree of Master of Engineering, School of Advanced Technologies |
Publisher | Asian Institute of Technology |
Series Statement | Thesis ; no. CS-03-17 |
Abstract | In June 2000, the first public release of format string vulnerability against wu-ftp 2.6.0 has obtained major attention. This vulnerability arises from the combination of unchecked variable argument (varargs) functions and standard C library implementations. Since then, various format string exploit techniques have been discovered and numerous incidents of format string attacks have been reported to date [1, 2, 6]. The exploitation of format string bug represents a whole new serious class of vulnerabilities in C programs that can be used to gain highest privileges on a local or remote host. The first part of this study explains the nature and analyses the tricks and limitations of format string exploits. A semantic model of simplified version of printf function is also established to give a formal explanation how format string bugs occur and how they cause the change of program flows. Part two discusses currently well-known static and run-time defense strategies against this important class of vulnerabilities. Finally, we present our system which combines both static analysis and run-time checks. The system employs bottom-up qualified type inference engine to perform static analyses to check source code for safety printf-like function calls, and automatically inserts run-time checks where safety cannot be guaranteed statically. Our tests on several vulnerable source code show that our system exhibits a lower rate of false positive than current top-down qualified type inference one. Moreover, performance test shows that the system imposes lower performance overhead than currently run-time solution. |
Year | 2003 |
Corresponding Series Added Entry | Asian Institute of Technology. Thesis ; no. CS-03-17 |
Type | Thesis |
School | School of Advanced Technologies (SAT) |
Department | Department of Information and Communications Technologies (DICT) |
Academic Program/FoS | Computer Science (CS) |
Chairperson(s) | Phan Minh Dung; |
Examination Committee(s) | Huynh Ngoc Phien;Bohez, Erik L J.; |
Scholarship Donor(s) | MOET Vietnam; |
Degree | Thesis (M.Eng.) - Asian Institute of Technology, 2003 |