Research on Transfer Protocol and Penetration of ORACLE Database
- Author
- JiangYan
- Advisor
- XueZhi
- School
- Shanghai Jiaotong University
- Major
- Communication and Information System
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 102
- Citations
- 0
Abstract
The Oracle database, as one of the most powerful and popular RDBMSs (Relational Database Management System), is a crucial part of today’s many large database management systems. Many important sites around the world, especially large or medium web servers, mail servers or file servers take Oracle as their database. So the security of Oracle database will affect wide range of user’s data in these databases.There are many sources of hidden danger in Oracle database, including protocol vulnerability ignored by designer, module buffer overflow ignored by developer, bad deployment from user and loose access control during management procedure. Here from the security structure of Oracle database, briefly analyses its data storage, log management and instance running system structure, and discuss the vulnerability on the identification authentication protocol used by Oracle database. With experiments on catching analyzing these communication packets, difficulties on the closesource protocol are overcomed. TNS protocol is the initial part of Oracle network connection. Its vulnerability can result in the management information on Oracle server free accessible to clients. SID and user password, as a part of the security authentication, are offen revealed by dictionary attack. Take advantage of the vulnerable program, attackers can even bypass ID authentication infrastructure to conduct PL/SQL injection and access data directly. Both system packages not updated and vulnerabilities brought in from second development are inevitable. Research is carried out on these database vulnerabilities and privilege promotion methods. On the basic of this, penetration methods are carried out with supports of experiments. When users has full read, write and execute privilege, rootkit embedding mechanism can be transplanted to Oracle database and stay for a long time. A type of OS written method based on Oracle protocol is put forward here, which can easily execute OS command and write files through client connection.Finally, an attack and penetration test system is designed and developed, whick enable the attack run stably on automation scanning and detecting targets, including the connection process and making use of vulnerabilities and promoting privilege. At last, it can transfer files and execute system command. It’s proved to has the ability to detect popular Oracle release and has good compatiblility, easy to conceal and convenient for database administrators to maintain and repair.
Table of contents
Abstract 3-5
ABSTRACT 5-11
first chapter 11-14
1.1 Oracle database security research background 11 -12
1.2 research 12
1.3 thesis organization 12-14
Chapter Oracle system and its security 14-20 < br /> 2.1 Oracle system structure 14-15
2.1.1 memory structure 14-15
2.1.2 process 15
2.2 Oracle security source of the problem 15-17
2.2.1 Oracle server itself loopholes 16
2.2.2 network services and operating system vulnerabilities 16-17 <br / > 2.2.3 database systems 17
2.2.4 database server vulnerabilities and misconfigured 17
2.3 Oracle database with other database security contrast 17-19
2.4 Summary 19-20
Chapter Oracle transmission protocol analysis and attack 20-50
3.1 TNS protocol 20-23
3.1.1 TNS connection process 20-22
3.1.2 TNS packet 22-23
3.2 Oracle client connection TNS 23-25 ??< br /> 3.2.1 client configuration 23-24
3.2.2 server configuration 24
3.2.3 client to connect Oracle server 24-25
3.3 attack TNS protocol 25-37
3.3.1 probe TNS Listener listening port 25-26
3.3.2 mining Oracle version information 26 -29
3.3.3 log Files attacks 29-31
3.3.4 buffer overflow attacks 31-32
3.3.5 TNS Listener GIOP remote Denial of Service disclosure Vulnerability 32
3.3.6 TNS remote Denial of Service vulnerabilities 32-37
3.4 SID access 37-43
3.4.1 SID Overview 37-38
3.4.2 SID hack 38-43
3.5 authenticated attacker 43-48
3.5.1 Oracle identity certification principle 43-45
3.5.2 Oracle password settings and storage specifications 45-46
3.5.3 Oracle default user name password and unlock methods 46 - 47
3.5.4 username password pair probing achieve 47-48
3.6 Summary 48-50
Chapter penetration and vulnerability-based rootkit implants mechanisms 50-63
4.1 several typical Oracle vulnerabilities 50-53
4.1.1 Oracle system stored procedure permissions vulnerability 50-51
4.1 .2 Oracle system privilege Escalation Vulnerability 51-52
4.1.3 PL / SQL injection vulnerabilities such as development or management 52-53
4.2 Oracle database rootkit implantation mechanism 53-57
4.2.1 Oracle execution path changes 53-54
4.2.2 hide database user table 54-55
4.2.3 hidden database process 55
4.2.4 hidden database tasks 55-56
4.2.5 modify the database internal function 56-57
4.3 penetrate the Oracle database server 57-62
4.3.1 run operating system commands 57-58
4.3.2 access to the file system 58-60
4.3.3 use JAVA implementation of the package file upload technology 60-62
4.4 Summary 62-63
Chapter Oracle tools to achieve comprehensive attack 63-73 <br / > 5.1 overall structure 63-64
5.2 function module 64-66
5.2.1 Oracle host discovery module 64
5.2.2 Oracle SID detection module 64-65
5.2.3 Oracle user name password detection module 65
5.2.4 SQL command to run the module 65-66
5.2 .5 Oracle information mining module 66
5.2.6 Oracle exploit module 66
5.2.7 server connection module 66
5.3 implementation 66-67
5.3.1 front-end interaction part 66-67
5.3.2 Oracle version information , SID, user name password detection part 67
5.3.3 database server connection and command execution portion 67
5.4 test results 67-72
5.4.1 to determine the scanning program 67-69
5.4.2 Oracle database probe results 69-70
5.4.3 Oracle database privilege escalation and information mining 70-71
5.4.4 operating system penetrate 71 -72
5.5 Chapter Summary 72-73
Chapter VI conclusions and Prospects 73-75
6.1 this article summarizes 73
6.2 research Prospects 73-75
Appendix Ⅰ Oracle default port list and modify the way 75-79
Appendix ⅱ single byte exploit code 79-80 <br / > References 80-82
Thanks 82-83
papers published during the study for a degree directory 83-84
attachments 84-86
Related dissertations
- Research on Injection Attacks and Defense of Oracle Database
- Oracle Database Research perch related systems OSGW
- Oracle Database Application in the Management of Cotton Credit of ABDC
- Application and Research of the Distributed Network Database in Energy Management System
- Design and Implementation of the System of China Mobile "Easy Workers" Business Support System
- Design and Implementation of Hubei Province Public Security Bureau Detention Center Information Management System
- Design and Implementation of the Channel Management Information System for Mobile Operators
- Design and Implementation of Telecom Industry User Management and Accounting System
- Design and Implementation of the Office System for Stell Company
- Design and Implementation of Tax SMS Platform
- Design and Implementation of Project Management System
- The Design and Implementation of Measurement Instrument Management System
- The Design and Implementation of Cigarette Marketing Mobile Office Platform
- Design of Educational Administration Management System Based on C/S and B/S Mixed Mode
- The Design and Implementation of Unified Information Platform Based on Javaee
- Research on Key Technology of Database Encryption and Its Application
- The Study of Naval Achitecture and Marine Engineering Management Information System Database
- Design and Implementation of Local Taxation Bureau of Yanbian council tax enforcement accountability assessment system
- Design and Implement of Real-time Nosocomial Infection Surveillance System Based on HIS
- The Research of Database Encryption System