Buffer Overflow and SQL Injection for Penetration Test
- Author
- RenKaiFeng
- Advisor
- PengXinGuang
- School
- Taiyuan University of Technology
- Major
- Computer Science and Technology
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 590
- Citations
- 3
Abstract
Penetration test is an important way to detect network vulnerability. Network manager could feel how harmful it is from doing penetration test, then build up security sense, enhance the network security efficiently according to the result of detection. So it’s very significant to do research and realize tools based on penetration test.Buffer overflow and SQL injection are crucial technology in penetration test. In the thesis we will finally realize a test tool based on buffer overflow and SQL injection. The thesis introduces theories in detail of buffer overflow and SQL injection, including the buffer flow process of stack , heap, format string and single byte, two flow jump skill(replacing return address and function entrance address), writing , flow and filtering of shellcode, the theory of SQL injection, the injection attack to MSSQL Server with system table using. The injection method classified to two situations: opening feedback and shutting feedback.NBSI is one popular injection test tool aimed at MSSQL Server, but the detection method of injection is not accurate enough, and it only aimed at ASP, in the experiment of the thesis shows there are injection vulnerability in JSP. I use capturing packets tool WinSockExpert to analyze injection test and guess method of NBSI, then find out NBSI identify injection test and guess method based on state code. This method is limited from the finding that there are injection vulnerabilities in pages. We make some improvement based on it: doing injection test and guessing on state code with return information. I design key words aimed
Table of contents
The first chapter 9-14
1.1 subject background 9-10
1.2 penetration tests About 10-11
1.3 existing penetration testing tools insufficient 11-12
1.4 thesis content papers arrangement
1.5 12-14
buffer overflow attack techniques 14-30
2.1 buffer overflow attacks technical brief are found; the ordinary 14-15
2.2 buffer overflow attack techniques 15-24
2.2.1 stack overflow attack techniques 15-17
2.2.2 heap overflow attack technique 17-18
2.2.3 format string overflow attack techniques 18-23
2.2.4 single byte overflow attacks technical 23-24
the 2.3 processes Jump technology 24-26
2.3.1 overwrite the return address 25
2.3.2 overwrite function pointers 25-26
2.4 shellcode of the preparation of technical the 26-30 2.4.1 the shellcode write method
26 -27
the 2.4.2 the shellcode general process 27-28
2.4.3 buffers, overflow code screening 28-30
Chapter SQL injection utilization technology 30-40
3.1 SQL injection principle
3.1.1 SQL injection attack 30-31 Introduction 30-31
3.1.2 SQL Injection principle 31
3.2 MSSQL Server injection method, the injection when prompted to open 31-38
3.2.1 detection and improved 33-34
the 3.2.2 message open solution guess 34-37
3.2.3 message off solution guess 37-38
3.3 extended stored procedures utilize 38-39
the 3.4 JSP injection of discussion 39-40
Chapter test platform design framework 40-53
4.1 software system framework 40-43
4.1.1 buffer overflow part of the framework design the 40-42 4.1.2 SQL injection
part of the framework of Design 42-43
4.2 buffer overflow part of realization choose overflow
4.2.1 buffers, 43-47 vulnerability to overflow
4.2.2 buffers, 43-44 various parts of the realization
4.3 SQL injection part 44-47 to achieve the guess solution partially achieved 47-53
4.3.1 48-51
4.3.2 remote command execution module realize 51-53
Chapter of experimental design and experimental data the 53-59 5.1 buffer overflow
experimental 53-54
5.2 SQL Injection Experimental 54-59
Chapter VI Conclusion 59-60
Reference 60-63
Acknowledgements 63-64
papers 64-
Related dissertations
- Research on Model Driven Penetration Test for SQL Injection Vulnerability in Web Applications
- The Design and Realization of Internet Public Opinion System
- Research of Permeability Testing System for Clay
- Design and Implementation of Teaching Website Based on JAVA
- Design and Implementation of the Web Security System
- Research and Implementation of Web Application Firewall Based on Feature Matching
- Static Security Detection of C Applications
- Research on Java’s Synchronization Optimization Based on Soot Framwork
- The Design and Implementation of the Hotelmanagement System
- Design and Implementation of Voice Communication Software
- Design and Implementation of GIS Distribution Network Management System
- Software Engineering Professional Core Courses Online Learning Platform Design and Implementation
- Study on Application of student management system based on Android platform
- Office Automation System Based on Rich Client Platform
- Design and Implementation of City Management of Administrative Law Enforcement Statistics System
- Design and Implementation of Ticket Price Prediction System
- The Design and Implementation of Sinopec Sales Co.,Ltd Personnel Management System
- Design and Implementation of the Integrated Management System for the Information and Technology Service Center
- Design and Implementation of Java Refactoring Plug-in Based on Eclipse
- The Design and Implementation of Investment Information Management System of Neijiang