Research on the Detection Technology for Vulnerability in Java Web Program Based on Regular Expression

Author
YeChuTian
Advisor
LuYanSheng
School
Huazhong University of Science and Technology
Major
Computer technology
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2013
Downloads
12
Citations
0

Request the full text

Abstract

Many Web applications suffer from network attack patterns such as XSS and SQLinjection attack due to the lack of the validation for user input. The attackers launch theattack by constructing malicious and precise SQL statement and then submit to thedatabase server in order to deceive the server to perform the statements to achieve theirpurpose, or they embed the malicious script into the Web page HTML tags to deceive theclient browser to execute for achieving the theft of cookie.SQL injection and XSS attack have their own feature, but the same reason of thesetwo attack modes is the lack of validation and filtering mechanism for user input. Regularexpression has been widely used in detecting Web application vulnerability because of itssimple form and powerful function. This paper mainly focuses on how to detect theexistence of SQL injection attacks and XSS vulnerability by using regular expression andits automata form to make the intersection with the value set of the string at certainprogram point. In order to detect whether the vulnerabilities exist, we need to construct theregular expression which stands for attack mode as elaborate as possible. At the same timewe need to construct the string manipulation library which simulates the string operationto get the value of the string at the program points. We get the dependence information ofthe source code based on static analysis, and then do the dependence analysis for thevulnerable point of the program to construct the corresponding vulnerable pointdependence graph for the potential vulnerable point so as to obtain the set value of thestring in different program points. And then we can determine the existence of SQLinjection and XSS attacks vulnerability in the program points. Finally the system filtersthe characters in the attack string and gives the descriptions and proposed operations toguarantee the safety of the program effectively.The experimental results show that we can detect the majority of SQL injection andXSS attacks accurately and make effective treatment on the basis of the elaboratelyconstructed regular expressions, automata operation library and static analysis for theprogram.

Table of contents

Abstract 4-5 Abstract 5-8 1 Introduction 8-13 1.1 Background and Significance 8 <br / > 1.2 domestic and foreign research status 8-11 1.3 nbsp main content and organizational structure ; 11-13 2 attack mode 13-19 2.1 SQL injection attacks 14-17 2.2 XSS attacks 17-18 2.3 chapter Summary 18-19 3 regex 19 -28 3.1 regex and engine 19-22 3.2 automatic machine operation functions 22-23 3.3 to detect SQL injection regex 23-25 ?? 3.4 detects XSS regex 25-27 3.5 Summary 27-28 4 system Design and Implementation 28-42 4.1 system design 28-29 4.2 to achieve environmental 29-30 4.3 system sub-module design and implementation of 30-41 4.4 chapter Summary 41-42 5 system experiment 42-54 5.1 experimental Target 42 5.2 experimental procedure 42 nbsp 5.3 experimental environment ; 42 5.4 system effectiveness experiment 42-52 5.5 system efficiency reports 52-53 5.6 of this chapter summary 53-54 6 summary and Outlook 54-56 6.1 thesis summarizes 54-55 6.2 late work prospects 55-56 Thanks 56-57 references participate during the 57-61 Appendix pursue a degree research 61

Related dissertations

  1. Research on Key Technologies of Network Traffic Analysis and System Implementation
  2. Design and Realization of P2P Traffic Identification Based on DPI
    QianLin ·Zhejiang University of Technology ·2013 ·Master's thesis
  3. Regular-Expression Matching and Optimization Techniques Using Negative Factors
    QiuTao ·Northeastern University ·2013 ·Master's thesis
  4. Design and Implementation of VB Computer Examination System
  5. Design and Implementation of the System of the Coal Market Information Analysis Based on Silverlight
    LuJiaLe ·Xiamen University ·2014 ·Master's thesis
  6. The Intrusion Detection Reaearch on SQL Injection Attack Based on Web Applications
    WangYongSheng ·Zhengzhou University ·2012 ·Master's thesis
  7. The Research of Multi-Pattern Matching Algorithms Based on Regular Expressions
  8. The Analysis and Design of Protocol Classification and Restoring System Based on Distributed
  9. Research and Implementation of Network Application Audit
  10. Research on High-throughput String Patterns Matching Algorithm
    JiangZuoPeng ·PLA Information Engineering University ·2012 ·Doctoral dissertation
  11. Research of Web Information Extraction Technique Based on REIE
  12. Research on Closed Sequnential Patterns Mining Algorithm Based on Constraints
    LiMingYue ·Yanshan University ·2012 ·Master's thesis
  13. The Research and Implementation of Web Information Extraction System Based on the Regular Expression
  14. The Study of Prescription Compatibiiity Law Based on Data Mining Technology
  15. The Design and Optimization of Embedded Cross-assembler
    LiuSongChao ·Hunan University ·2012 ·Master's thesis
  16. Design and Development of Android-based Campus Information Exchange Platform
    LiTongHao ·Lanzhou University ·2012 ·Master's thesis
  17. The Design and Implementation of the Rapid Batch Processing File Editing System
  18. Analysis and design and implementation of a tool for Web source code acquisition
    CaoXiaoFeng ·Fudan University ·2012 ·Master's thesis
  19. Study on Automaton-Based Regular Expression Matching Algorithms
    LiZuoNan ·Northeastern University ·2011 ·Master's thesis
  20. Formal Verification and Analysis of SIP Protocol Using Timed Coloured Petri Net
    MaYuanFei ·Inner Mongolia University ·2012 ·Master's thesis