Research of Attack and Defence Technique of Oracle Database

Author
BaoChengYi
Advisor
ChenXiaoZuo
School
Shanghai Jiaotong University
Major
Communication and Information System
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2011
Downloads
87
Citations
0

Request the full text

Abstract

Nowadays, database-targeted attacks have become the mainstream of hackers, such as SQL injection attacks, privilege promotion attacks, and database-based system attacks. Oracle database, the most mature commericial database procuct, has the widest application in the world. Therefore, the research of oracle database security is one significant research topic in the area of communication security. The writer joined in one project on developing an automated hacking tool, which serves as the pratical basis of this paper.This paper will go in two main ways. It will first focus on attacking techniques targeting at Oracle database systems, and then talk about the corresponding defence mechanism.To the attacking techniques, it will have four parts: 1) how to get basic information of Oracle database (including database version); 2) research on data extraction in the process of SQL injection towards Oracle-based web page; 3) priviledge promotion problems in existing Oracle database procudes; 4) attacks towards operating system via Oracle database. Data extraction is a key part of webpage-based SQL injection. Webpage-based SQL injection cannot return SQL execution results directly, which is different from client-based SQL injection. This paper provides five data extraction techniques, which can be used in real attacks.Priviledge promotion is another key part of this paper. Becausee of the increasing security concerns of system administrators, more and more programs are run under low privildge database users. This paper introduces three main types of priviledge promotion, as well as their realization. Oracle-based system attack is the last attacking technique introduced in this paper, which means that attackers can invade server through Oracle databases. This paper provides three basic system attacks: executing command of operating systems, accessing file systems, accessing networks.To the defence techniques, this paper will talk about how to protect Oracle database from some of the listed attacks. For example, this paper will talk about how to prevent Oracle database from inconscious data extraction, and some existing protection frameworks provided by Oracle.In the end of this paper, it will introduce an automated SQL injection tool, which is coded by the author. This tool will actualize many pratical functions, such as viewing file system, executing commands of operating system, uploading files to servers. The implementation of this tool is the best proof of the theory in this paper.

Table of contents

Summary 3-5 ABSTRACT 5-13 first chapter 13-15 1.1 Background 13 the 1.2 paper the attack technology research direction 13 1.3 research status the 13-14 1.4 thesis research directions 14 1.5 paper tissue 14-15 second chapter of the Oracle database and experimental platform Oracle Database Introduction nbsp the 15-24 2.1; 15 2.2 Oracle database characteristics 15-16 2.3 Oracle database server and client structure 16 2.4 Oracle database version features 16-19 2.4.1 Oracle 10g new features 16-17 2.4.2 Oracle 11g new features 17-19 2.5 PL / SQL 19-23 2.5.1 block structure 20 2.5.2 variables and types 20 2.5.3 conditional logic 20-21 2.5.4 circulation nbsp,; 21-22 2.5.5 cursor 22-23 2.6 experimental platform 23 2.6.1 operating system 23 2.6.2 database systems 23 2.6.3 website development platform 23 2.6.4 hardware environment 23 2.6.5 virtual machine environments 23 <br / > 2.7 Chapter Summary 23-24 Chapter of Oracle database access to information 24-30 3.1 Oracle version information to obtain 24-26 the 3.1.1 listener command 24-25 get version 3.1.2 by TNS protocol 25 3.1.3 by TNS return an error message for Oracle version 25-26 3.2 to obtain the contents of the database system 26-28 3.2.1 low privilege user 26-27 3.2.2 Power Users 27-28 3.3 guess database default password 28 3.4 Chapter Summary 28-30 Chapter Oracle Web implantation process data returned 30-39 4.1 Overview the technology 30 4.2 error data returned 30-31 4.2.1 UTL_INADDR.GET_HOST_NAME () 30 - 31 4.2.2 CTXSYS.DRITHSX.SN 31 4.3 union splicing return technology nbsp 31-32 4.4 page true and false returns; 32 < br /> 4.5 delay data return technology 32-33 4.6 indirect channel return technology 33-35 , 4.6.1 UTL_INADDR.GET_HOST_ADDRESS (and) 34 4.6.2 UTL_HTTP.REQUEST () the the 34-35 4.6.3 SYS.DBMS_LDAP.INIT () 35 4.7 advanced data back way 35 -37 4.7.1 SYS.STRAGG () 35-36 4.7.2 CONNECT BY 36 4.7.3 ROWNUM 36-37 4.7.4 DBMS_XMLGEN.GETXML ??() 37 4.8 defensive injection process data returned 37-38 4.9 Chapter Summary 38-39 Oracle Database provide the right technology 39-68 5.1 Oracle provide the right technology foundation: PL / SQL execute permissions set 39-42 <br / > 5.1.1 defined permissions 39-40 5.1.2 caller permissions 40-42 5.2 Oracle mention the right 42-43 <br / > 5.3 by higher privileges stored procedure mention the right the 43-46 5.3.1 can be used to provide the right the SYS function of characteristics 5.3.2 SYS 44-45 the. KUPP $ PROC.CREATE_MASTER_PROCESS 45 5.3.3 DBMS_REPCAT_RPC.VALIDATE_REMOTE_RC 45-46 5.3.4 DBMS_EXPORT_EXTENSION 46 5.4 cursor snarf (cursor snarf) attack 46-57 5.4.1 Oracle cursor (cursor) introduced 46-53 5.4.2 Cursor Snarf attack instance 53-56 5.4.3 Cursor Snarf harm 56 5.4.4 Cursor Snarf attack defense the 5.5 indirect mention the right 56-57 57-64 5.5.1 by CREATE FUNCTION mention rights are found; 57-58 5.5.2 CREATE ANY TRIGGER mention the right 58-61 5.5.3 by CREATE ANY VIEW mention the right 61-63 5.5.4 through EXECUTE ANY PROCEDURE mention the right are found; 63-64 5.5.5 CREATE PROCEDURE mention the right 64 5.6 a the limit attacks instance 64-67 5.7 Chapter Summary 67-68 Chapter VI system based on Oracle database attack techniques 68-86 6.1 Overview 68 6.2 execute operating system commands the 68-75 6.2.1 through PL / SQL 68-69 6.2.2 through Java 69-70 6.2.3 DBMS_SCHEDULER package the 70-71 6.2.4 via the task scheduler 71-73 6.2.5 by ALTER SYSTEM 73 6.2.6 a page injected instance 73-75 6.3 to access the file system 75-79 6.3.1 through UTL_FILE packet access file system 75-76 6.3.2 through Java to access the file system 76-77 6.3.3 access to operating system environment variables 77-79 <br / > 6.4 access network the 79-85 6.4.1 through UTL_TCP access the network 79-80 6.4.2 through UTL_HTTP access network 80 6.4 .3 use DNS queries and UTL_INADDR access network the 80-82 6.4.4 encrypted data is returned 82 6.4.5 through the Java access network 82-83 < br /> 6.4.6 attack the network on the other server the 83-85 6.5 Chapter Summary 85-86 of seventh chapter Onjection system achieve 86-96 7.1 Introduction 86 7.2 system main interface the 86-87 7.3 system uses 87-95 injected in 7.3.1 detection 87 7.3.2 for database system information to get 87-88 7.3.3 database contents 88-91 7.3.4 remote access data 91-92 7.3.5 file system 92 7.3.6 upload files 92-94 7.3.7 perform database command 94-95 7.4 Chapter Summary 95-96 Chapter VIII summarizes the thesis work 96-98 8.1 summarizes 96-97 8.2 further research prospects 97-98 Reference 98-100 Acknowledgements 100-101 have been published during the Master's degree or accepted papers 101-102 attachments 102-104

Related dissertations

  1. Study on the right technology and defense methods against Oracle database right cursor type injection vulnerability
    ZhangXiaoHu ·Northwestern University ·2012 ·Master's thesis
  2. Design and Implementation of Data Acquisition and Analysis System for CAPL Line
    LiJianFeng ·Northeastern University ·2013 ·Master's thesis
  3. Design and Implementation of the Web Security System
    MiAng ·Central South University ·2013 ·Master's thesis
  4. Design of Identity Management Platform Based on SML-RBAC
  5. Research and Implementation of Web Application Firewall Based on Feature Matching
    FangShuang ·Anhui University ·2014 ·Master's thesis
  6. Research and Design on Data Extraction in Multiple Data Sources
    JiaYanKai ·Harbin Engineering University ·2013 ·Master's thesis
  7. Based as High Concurrent Big Data Database Maximum Availability Research and Implementation
    LiuSheng ·Tianjin University ·2012 ·Master's thesis
  8. Oracle Performance Optimization Techniques Application to the Guizhou Local Tax Project
    LiuZuo ·Hubei University ·2013 ·Master's thesis
  9. Design and Implementation of China Life Insurance Company Counter Comprehensive Management System
    YangBo ·Hunan University ·2013 ·Master's thesis
  10. Design and Implementation of Treasury Centralize Payment Management System Based on SSL
    LengQuan ·Northeastern University ·2013 ·Master's thesis
  11. Design and Implementation of Centralized Business Support System
  12. Design and Implementation of Pattern Evaluation Management System for Liaoning Provincial Institute of Measurement
    ZhangHuan ·Northeastern University ·2013 ·Master's thesis
  13. Research and implementation of the hospital scheduling and one-stop settlement system
  14. The Design and Implementation of the Bank-enterprise Reconciliation System
  15. The Design and Implementation of Sanming City Bus Inquiry System
  16. Design and Implementation of Staff Education and Training System in Electric Power Bureau of San Ming
  17. Warehouse Management System
  18. Power Marketing Management Information System Design and Implementation
  19. The Design and Implementation of Management System for Travel Commany
  20. The Design Andachieviments about the Public Resource Managmenet System