The Design and Implementation of Web Application Firewall
- Author
- WangYu
- Advisor
- LuSongNian
- School
- Shanghai Jiaotong University
- Major
- Communication and Information System
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 279
- Citations
- 5
Abstract
The era of Web 2.0 is coming, which brings much convenience to every networkuser. However, the security issue on web applications becomes more and more serious,since a large of these web applications contain security vulnerabilities, which give achance for those malicious attackers. Moreover, the traditional security softwares, likeintrusion detection system or firewall, can only provide protectections for the lowerlayer of OSI(Open Systems Interconnection) model, but fail to avoid web applicationlayer attack.The core security issue for Web application lies in the input, which any user cansubmit. But most Web application developers don’t konw much about the knowledgeof security programming, which results in the inability of filtering the data input. Asa result, the attackers can pass through the traditional security defence system easilyand inject the malicious code into the Web application. Then, attackers can control theWeb server, change the file system, manipulate the database and run OS commandsthrough the injected malicious code. The best way to prevent this Web applicationlayer attack is to set application layer rules in Web application firewall.In this paper, the prevalent Web application layer attack and defense skills areintroduced in the first place, followed by the summrization of the common Web appli-cation encoding methods and mutation attacking skills, which could make the state-of-art defense system effective. Then a scheme about Web application firewall is p-resented, which is comprised of the core engine, the management module and thedatabase. The core engine, acting as the most essential part, consists of the pre- pro-cessing part, the detecting part, the output filtering part and the journal monitoringpart. The pre-processing part is responsible for SSL decoding, encoding the input andnormalization for the character set. And this part can achieve the goal of decoding HTTPS bit stream and prevent every mutation attacks. The detecting part is designedto avoid various malicious inputs like SQL injecting. Besides, it utilizes URL rules torealize access control with fine granularity. It also adds a session control module tofix possible existing bugs in Web application system and defense the DDOS attack atapplication layer. The output filtering part could avoid the leakage of sensitive info-mation and could apply secure encoding to those output malicious HTML labels andproperties via a light-weight HTML explanation engine to avoid all crossing websiteattacks. The journal monitoring part adopts the hash function and message authentica-tion code to achieve the integrity and consistency of the system, which is a convenientway for further analysis and demonstration purpose.The prototype of Web application firewall is carried out in Python language.Through simulating the malicious attack and the application layer DDOS attack onthe vulnerability framework, experiment results indicate that the Web application fire-wall can prevent the system from all malicious attack while the normal data ?ow cango through the web application firewall successfully.
Table of contents
Summary 5-7
ABSTRACT 7-12
Abbreviations 12-13
The first chapter 13-16
1.1 The purpose of this research and its significance 13-14
Research Status
1.2 Web Application Firewall 14
1.3 This work arrangements and chapters 14-16
The second chapter mainstream Web attack and defense strategies 16-36
2.1 typical Web application architecture 16-17
2.2 injection vulnerability 17-26
2.2.1 SQL injection 17-20
2.2.2 OS command injection 20-23
2.2.3 SOAP injection 23-24
2.2.4 XPath injection 24-26
2.3 cross-site scripting attacks XSS 26-31
2.3.1 reflective type XSS attack 26-28
2.3.2 storage type XSS attack 28-29
2.3.3 DOM-based XSS attacks 29-31
2.4 CSRF attack CSRF 31
2.5 application layer DDOS attacks 31-32
2.6 authentication and session management loopholes 32-34
sensitive information
2.7 configuration files, database files, etc. leaked 34-35
2.8 Summary 35-36
Chapter III encoding scheme used to bypass existing defenses and technology 36-45
3.1 common coding scheme 36-39
3.1.1 URL encoded 36-37
3.1.2 Unicode encoding 37-38
3.1.3 HTML coding 38
3.1.4 Base64 encoded 38-39
3.1.5 16 hexadecimal encoding 39
3.2 bypassing the existing defense technology 39-43
3.2.1 -sensitive hybrid technology 40
3.2.2 using Unicode encoding bypass 40
3.2.3 using URL encoding 40-41
3.2.4 various character set encoding to bypass 41
3.2.5 Alternative statement bypasses 41-42
3.2.6 for the database to bypass 42
3.2.7 Use Cookies injection bypass 42-43
3.2.8 PHP dual coding vulnerabilities 43
3.3 Summary 43-45
Chapter Web application firewall system architecture design and implementation 45-63
4.1 system architecture design 45-47
4.2 pre-processing module 47-53
4.2.1 SSL decoding module 47-49
4.2.2 codec standardized modules 49-53
4.3 detection module 53-57
4.3.1 Filter 53-55
4.3.2 access control policy 55-56
4.3.3 Session Management Module 56-57
4.4 output filter encoding module 57-60
4.4.1 sensitive content -based filtering module 57-59
4.4.2 output encoding module 59-60
4.5 log audit module 60-61
4.6 Web application firewall access mode 61
4.7 Summary 61-63
fifth chapter experimental results and analysis 63-69
5.1 analog exploits 63-67
5.2 simulation application layer DDOS attacks 67-68
5.3 Summary 68-69
Chapter VI Summary and Outlook 69-71
6.1 summarizes the main contributions 69
6.2 Job Outlook 69-71
References 71-76
Thanks 76-77
study published during the academic dissertations directory 77
Related dissertations
- Research and Implementation of Web Application Firewall Based on Feature Matching
- Design and Implementation of Web Application Vulnerability Detection System
- Research on Web Security Penetration Testing
- Based on the Crawler to Mine the SQL Injection and XSS Vulnerability
- The Design and Implementation of Prevention Model of SQL Injection and XSS
- Design and Implementation of Web application security vulnerability scanning tools
- The website assessment infiltration System Research and Implementation
- Design and Implementation of the Web Security System
- Web Application Firewall Applied in the E-Commerce Platform
- Design, Implementation and Security Enhancement of E-commerce Site Based on ASP.NET
- Web application firewall engine based on ColdFusion
- Analysis and Research of Security of Campus Network Server
- The Research and Implementation of Web Security Threat Detection Tech-Nology in Browser
- The Research and Realization of Sql Vulnerability Detection System for Web Application
- Selection Condition Tree Approach to the Detection and Prevention of SQL Injection Attacks
- Research on PHP Web Application Security and Development of Vulnerability Detection Tool
- Research on Cross Station Offensive and Defensive Technology Based on Network Behavior Analysis
- The Design and Implementation of Distributed Peer-to-peer Based Web Application Firewall
- The Design and Implementation of Distributed XSS Based on Penetration Testing
- Research on Model Driven Penetration Test for SQL Injection Vulnerability in Web Applications