Denis Dmitrievich Mironov, D. A. Sigalov, Maxim Petrovich Malkov
{"title":"Research into Occurrence of Insecurely-Serialized Objects in Client-Side Code of Web-Applications","authors":"Denis Dmitrievich Mironov, D. A. Sigalov, Maxim Petrovich Malkov","doi":"10.15514/ispras-2023-35(1)-14","DOIUrl":null,"url":null,"abstract":"This paper studies the occurrence of insecure deserialization in communication between client-side code and the server-side of a web application. Special attention was paid to serialized objects sent from JavaScript client-side code. Specific patterns of using serialized objects within the client-side JavaScript code were identified and unique classes were formulated, whose main goal is to facilitate manual and automatic analysis of web applications. A tool that detects a serialized object in the client-side code of a web page has been designed and implemented. This tool is capable of finding encoded serialized objects as well as serialized objects encoded using several sequentially applied encodings. For found samples of serialized objects, the tool determines the context in which the found object appears on the page. For objects inside JavaScript code, the tool identifies the previously mentioned classes by mapping the vertices of the abstract syntax tree (AST) of the code. Web application endpoints were checked for whether programming objects were deserialized on the server side, after obtaining the results of the study. As a result of this check, previously unknown vulnerabilities were found, which were reported to the developers of this software. One of them was identified as CVE-2022-24108. Based on the results of this research, a method was proposed to facilitate both manual and automated searches for vulnerabilities of the \"Deserialization of untrusted data\". The proposed algorithm was tested on more than 50,000 web application pages from the Alexa Top 1M list, as well as on 20,000 web application pages from Bug Bounty programs.","PeriodicalId":33459,"journal":{"name":"Trudy Instituta sistemnogo programmirovaniia RAN","volume":"4 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Trudy Instituta sistemnogo programmirovaniia RAN","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.15514/ispras-2023-35(1)-14","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
This paper studies the occurrence of insecure deserialization in communication between client-side code and the server-side of a web application. Special attention was paid to serialized objects sent from JavaScript client-side code. Specific patterns of using serialized objects within the client-side JavaScript code were identified and unique classes were formulated, whose main goal is to facilitate manual and automatic analysis of web applications. A tool that detects a serialized object in the client-side code of a web page has been designed and implemented. This tool is capable of finding encoded serialized objects as well as serialized objects encoded using several sequentially applied encodings. For found samples of serialized objects, the tool determines the context in which the found object appears on the page. For objects inside JavaScript code, the tool identifies the previously mentioned classes by mapping the vertices of the abstract syntax tree (AST) of the code. Web application endpoints were checked for whether programming objects were deserialized on the server side, after obtaining the results of the study. As a result of this check, previously unknown vulnerabilities were found, which were reported to the developers of this software. One of them was identified as CVE-2022-24108. Based on the results of this research, a method was proposed to facilitate both manual and automated searches for vulnerabilities of the "Deserialization of untrusted data". The proposed algorithm was tested on more than 50,000 web application pages from the Alexa Top 1M list, as well as on 20,000 web application pages from Bug Bounty programs.
本文研究了一个web应用程序的客户端代码与服务器端通信中出现的不安全反序列化问题。特别注意从JavaScript客户端代码发送的序列化对象。确定了在客户端JavaScript代码中使用序列化对象的特定模式,并制定了独特的类,其主要目标是促进对web应用程序的手动和自动分析。设计并实现了一个在网页客户端代码中检测序列化对象的工具。此工具能够查找已编码的序列化对象以及使用多个顺序应用的编码进行编码的序列化对象。对于找到的序列化对象的示例,该工具确定找到的对象在页面上显示的上下文。对于JavaScript代码中的对象,该工具通过映射代码的抽象语法树(AST)的顶点来标识前面提到的类。在获得研究结果后,检查Web应用程序端点是否在服务器端对编程对象进行了反序列化。由于这次检查,发现了以前未知的漏洞,并将其报告给了该软件的开发人员。其中一个漏洞被识别为CVE-2022-24108。在此基础上,提出了一种人工和自动搜索“不可信数据反序列化”漏洞的方法。提出的算法在Alexa Top 1M列表中的50,000多个web应用程序页面以及Bug Bounty计划中的20,000个web应用程序页面上进行了测试。