Cross-site scripting (XSS) is one of the major threats menacing the privacy of data and the navigation of trusted web applications. Since its reveal in late 1999 by Microsoft security engineers, several techniques have been developed in the aim to secure web navigation and protect web applications against XSS attacks. The problem became worse with the emergence of advanced web technologies such as Web services and APIs and new programming styles such as AJAX, CSS3 and HTML5. While new technologies enable complex interactions and data exchanges between clients and servers in the network, new programming styles introduce new and complicate injection flaws to web applications. XSS has been and still in the TOP 10 list of web vulnerabilities reported by the Open Web Applications Security Project (OWASP). Consequently, handling XSS attacks became one of the major concerns of several web security communities. In this paper, we contribute by conducting a systematic mapping and a comprehensive survey. We summarize and categorize existent endeavors that aim to protect against XSS attacks and develop XSS-free web applications. The present review covers 147 high quality published studies since 1999 including early publications of 2022. A comprehensive taxonomy is drawn out describing the different techniques used to prevent, detect, protect and defend against XSS attacks. Although the diversity of XSS attack types and the scripting languages that can be used to state them, the systematic mapping revealed a remarkable bias toward basic and JavaScript XSS attacks and a dearth of vulnerability repair mechanisms. The survey highlighted the limitations, discussed the potentials of existing XSS attack defense mechanisms and identified potential gaps.
翻译:跨网站脚本(XSS)是威胁数据隐私和可信赖的网络应用程序导航的主要威胁之一。自微软安全工程师于1999年底披露以来,已经开发出若干技术,以确保网络导航和保护网络应用程序免遭XSS攻击;随着网络服务和API等先进网络技术的出现以及AJAX、CSS3和HTML5.等新的编程风格的出现,问题变得更加严重。虽然新技术使得网络客户和服务器之间能够进行复杂的互动和数据交换,但新的编程风格却突出显示网络应用程序存在新的和复杂的输入缺陷。 XSS已经并且仍然出现在TOP 10 公开网络应用安全项目(OWASP)报告的网络弱点清单中。因此,处理XSS攻击成为若干网络安全界的主要关切之一。在本文件中,我们通过进行系统的绘图和全面调查,对现有的旨在保护XSS攻击和开发无XSS的偏差性网络应用程序的努力进行总结和分类。本审查涵盖自1999年以来公布的147项高质量研究,包括2022年早期出版物。X级安全系统统计和S对攻击的潜在威胁机制进行了全面的分类。