Research and Implementation of Cross-site Scripting Defense Method Based on Moving Target Defense Technology

Ping Chen, Han Yu, Min Zhao, Jinshuang Wang
{"title":"Research and Implementation of Cross-site Scripting Defense Method Based on Moving Target Defense Technology","authors":"Ping Chen, Han Yu, Min Zhao, Jinshuang Wang","doi":"10.1109/ICSAI.2018.8599463","DOIUrl":null,"url":null,"abstract":"The root cause of cross-site scripting(XSS) attack is that the JavaScript engine can’t distinguish between the JavaScript code in Web application and the JavaScript code injected by attackers. Moving Target Defense (MTD) is a novel technique that aim to defeat attacks by frequently changing the system configuration so that attackers can’t catch the status of the system. This paper describes the design and implement of a XSS defense method based on Moving Target Defense technology. This method adds a random attribute to each unsafe element in Web application to distinguish between the JavaScript code in Web application and the JavaScript code injected by attackers and uses a security check function to verify the random attribute, if there is no random attribute or the random attribute value is not correct in a HTML (Hypertext Markup Language) element, the execution of JavaScript code will be prevented. The experiment results show that the method can effectively prevent XSS attacks and have little impact on the system performance.","PeriodicalId":375852,"journal":{"name":"2018 5th International Conference on Systems and Informatics (ICSAI)","volume":"30 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 5th International Conference on Systems and Informatics (ICSAI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSAI.2018.8599463","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

The root cause of cross-site scripting(XSS) attack is that the JavaScript engine can’t distinguish between the JavaScript code in Web application and the JavaScript code injected by attackers. Moving Target Defense (MTD) is a novel technique that aim to defeat attacks by frequently changing the system configuration so that attackers can’t catch the status of the system. This paper describes the design and implement of a XSS defense method based on Moving Target Defense technology. This method adds a random attribute to each unsafe element in Web application to distinguish between the JavaScript code in Web application and the JavaScript code injected by attackers and uses a security check function to verify the random attribute, if there is no random attribute or the random attribute value is not correct in a HTML (Hypertext Markup Language) element, the execution of JavaScript code will be prevented. The experiment results show that the method can effectively prevent XSS attacks and have little impact on the system performance.
基于移动目标防御技术的跨站点脚本防御方法研究与实现
跨站脚本(XSS)攻击的根本原因是JavaScript引擎无法区分Web应用程序中的JavaScript代码和攻击者注入的JavaScript代码。移动目标防御(MTD)是一种新颖的技术,其目的是通过频繁改变系统配置,使攻击者无法捕获系统的状态来挫败攻击。本文介绍了一种基于移动目标防御技术的跨站防御方法的设计与实现。该方法为Web应用程序中的每个不安全元素添加一个随机属性,以区分Web应用程序中的JavaScript代码和攻击者注入的JavaScript代码,并使用安全检查功能对随机属性进行验证,如果HTML(超文本标记语言)元素中没有随机属性或随机属性值不正确,则会阻止JavaScript代码的执行。实验结果表明,该方法能有效防止XSS攻击,对系统性能影响较小。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信