Taint Inference for Cross-Site Scripting in Context of URL Rewriting and HTML Sanitization
Taint Inference for Cross-Site Scripting in Context of URL Rewriting and HTML Sanitization
复制标题
URL 重写和 HTML 清理上下文中跨站点脚本的污点推断
DOI:
10.4218/etrij.16.0115.0570
复制
发表时间:
2016
期刊:
影响因子:
1.4
通讯作者:
Li Weishi
中科院分区:
文献类型:
--
作者:
Pan Jinkun;Mao Xiaoguang;Li Weishi
Currently, web applications are gaining in prevalence. In a web application, an input may not be appropriately validated, making the web application susceptible to crosssite scripting (XSS), which poses serious security problems for Internet users and websites to whom such trusted web pages belong. A taint inference is a type of information flow analysis technique that is useful in detecting XSS on the client side. However, in existing techniques, two current practical issues have yet to be handled properly. One is URL rewriting, which transforms a standard URL into a clearer and more manageable form. Another is HTML sanitization, which filters an input against blacklists or whitelists of HTML tags or attributes. In this paper, we make an analogy between the taint inference problem and the molecule sequence alignment problem in bioinformatics, and transfer two techniques related to the latter over to the former to solve the aforementioned yetto- be-handled-properly practical issues. In particular, in our method, URL rewriting is addressed using local sequence alignment and HTML sanitization is modeled by introducing a removal gap penalty. Empirical results demonstrate the effectiveness and efficiency of our method.