Research on Defense Techniques of Cross-Site Scripting Attack

Author
WuXiaoHeng
Advisor
LiJianHua
School
Shanghai Jiaotong University
Major
Communication and Information System
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2011
Downloads
161
Citations
0

Request the full text

Abstract

Web 2.0 applications are very attractive to the developers and end-users, because they provide friendly interface, plenty of functions and high practicality. A significant feature of Web2.0 is that plenty of computing works and logical processing are carried out in the client side, by Client-side scripting technology such as JavaScript, VBscript, which brings a lot of convenience and ease of use, as well as potentially secure threats at the same time. At present, Cross-Side Scripting (XSS) is one of the most serious security problems in the Web. Its essential reason is the weakness in security mechanism of web application, that is, the lack of adequate inspection and filtering for the user‘s input. Report from WebCohort indicates that 80% web sites have the flaw of Cross-Side Scripting, and many large-scale web sites have been ever attacked because of such kind of vulnerability.This paper firstly studies deeply in cross-site scripting attack and treats of three kinds of cross-site scripting including reflected XSS, stored XSS and DOM-based XSS. Then it analyzes various kinds of the attack trigger mechanism, and also makes a summary about the way how Hackers rewrite the scripts to bypass the detection mechanism.After that, this paper designs a XSS defense system on the server side, which is comprised of the core engine, the management module and the database. The core engine, as the most essential part, consists of the pre-processing part, the detecting part, the output ?ltering part and the journal monitoring part. The pre-processing part is responsible for SSL decoding, encoding the input and normalization for the character set. And this part can achieve the goal of decoding HTTPS bit stream and prevent every mutation attack. The detecting part is designed to match the input with rules to detect XSS. The output ?ltering part can escape the special characters in untrusted content, thus completely eliminating the risk of unknown cross-site scripting attacks. But to some extent it will affect users’ experience. The journal part records all of the error messages, and adopts the hash function and message authentication code to achieve the integrity and consistency of the system for the convenience of further analysis and demonstration.By deploying the defense system in the reverse proxy server, we can protect the site from XSS attack without changing the existing Web server codes. The security vulnerabilities in different web sites cannot be totally the same.The system we design provides an operational solution to adpat these differences, which can help web sites prevent XSS attacks effectively. Meanwhile, the defense system will increase the response time.At last, traditional XSS defense method has a certain limitation. It just defenses the attack, but doesn’t make the best use of the detetion information to realize self-reparing. So this paper proposes a self-healing mechanism, which can help to automatically detect and fix the XSS vulnerability. We do some important reaserch on the mechanism including architecture, procedure, detect method and the exchange of flaw messages.

Related dissertations

  1. Design and Implementation of the Web Security System
    MiAng ·Central South University ·2013 ·Master's thesis
  2. The Research of XSS Detection and Defense Based Hash Tree Matching Model
    CaoWen ·Jiangxi Normal University ·2013 ·Master's thesis
  3. Campus Network Security Defense System Construction and Implementation
    LiChunXia ·Lanzhou University ·2013 ·Master's thesis
  4. On Key Distribution and Agreement Schemes in Wireless Networks
    WangQiuHua ·Zhejiang University ·2013 ·Doctoral dissertation
  5. Research on Group Key Management Scheme for Wireless Sensor Networks
  6. Study on Preparation and Performance of Microcapsule Composite Materials for Self-healing
    ZhuMengHua ·Harbin Institute of Technology ·2012 ·Master's thesis
  7. Study on Effect of Modified Atmosphere Packaging on Quality of Fresh-Cut Green Peppers and Its Mechanism
  8. The Study of Carbon Nanotube's Modification by Focused Ion Beam Irradiation and its Healing Strategies
    XuLiHua ·Tianjin University ·2012 ·Master's thesis
  9. Preparation and Performance of Binary Self-healing Polymeric Materials with Epoxy-containing Microcapsules
    HuHongLin ·Harbin Institute of Technology ·2012 ·Doctoral dissertation
  10. The Technology Test Research of Cement Concrete in the Cracks Self-healing
    DongLi ·Chongqing Jiaotong University ·2013 ·Master's thesis
  11. Synthesis and Characterization of Phenylboronate-Diol Crosslinked Polymer/SWCNTs Hybrid Gels
    LiWenJun ·Xiangtan University ·2013 ·Master's thesis
  12. Fabrication and Characterization of Shape Memory Polymer with Self-healing Capability
    WeiHongQiu ·Harbin Institute of Technology ·2013 ·Master's thesis
  13. Stimuli-responsive Gels from Dynamic Covalent Chemistry
    ZhouLiPeng ·Jilin University ·2013 ·Doctoral dissertation
  14. Study on Generation and Diffraction Properties of Airy Accelerating Beams and Abruptly Autofocusing Beams
    WangShuZhen ·Shandong Normal University ·2014 ·Master's thesis
  15. Self-Healing of the Mpc System and Two-Degree-of-Freedom Imc Controller Design Based on the MVC~3Algorithm
  16. Design and Implementation of Web Security Vulnerabilities Detection System Based on Static Source Code Analysis
  17. Research on Intelligent Crawler Technology of Web Vulnerability Scanner
  18. Insecure Javascript Detection and Analysis Based on Browser-Enforced Embedded Rules
    ZengPing ·Hunan University ·2011 ·Master's thesis
  19. Detection and Prevention of Malicious Websites
    FengKai ·Hunan University ·2011 ·Master's thesis
  20. The Research and Implementation of Web Security Threat Detection Tech-Nology in Browser