String Solving with Word Equations and Transducers: Towards a Logic for Analysing Mutation XSS
Artículo
Publication date
2016Metadata
Show full item record
Cómo citar
Lin, Anthony W.
Cómo citar
String Solving with Word Equations and Transducers: Towards a Logic for Analysing Mutation XSS
Author
Abstract
We study the fundamental issue of decidability of satisfiability over string logics with concatenations and finite-state transducers as atomic operations. Although restricting to one type of operations yields decidability, little is known about the decidability of their combined theory, which is especially relevant when analysing security vulnerabilities of dynamic web pages in a more realistic browser model. On the one hand, word equations (string logic with concatenations) cannot precisely capture sanitisation functions (e.g. htmlescape) and implicit browser transductions (e.g. innerHTML mutations). On the other hand, transducers suffer from the reverse problem of being able to model sanitisation functions and browser transductions, but not string concatenations. Naively combining word equations and transducers easily leads to an undecidable logic. Our main contribution is to show that the "straightline fragment" of the logic is decidable (complexity ranges from PSPACE to EXPSPACE). The fragment can express the program logics of straight-line string-manipulating programs with concatenations and transductions as atomic operations, which arise when performing bounded model checking or dynamic symbolic executions. We demonstrate that the logic can naturally express constraints required for analysing mutation XSS in web applications. Finally, the logic remains decidable in the presence of length, letter counting, regular, indexOf, and disequality constraints.
General note
Artículo de publicación ISI
Patrocinador
Yale-NUS College through the MoE
R-607-265-056-121
IG15-LR001
Millenium Nucleus Center for Semantic Web Research
NC120004
Quote Item
ACM Sigplan Notices, Volumen: 51 Número: 1 Páginas: 123-136, Jan 2016
Collections
The following license files are associated with this item: