Z3-str: a z3-based string solver for web application analysis
The DOI matches its Crossref record; 19 of the 19 references it cites were found in a registry or an index.
Abstract
Analyzing web applications requires reasoning about strings and non-strings cohesively. Existing string solvers either ignore non-string program behavior or support limited set of string operations. In this paper, we develop a general purpose string solver, called Z3-str, as an extension of the Z3 SMT solver through its plug-in interface. Z3-str treats strings as a primitive type, thus avoiding the inherent limitations observed in many existing solvers that encode strings in terms of other primitives. The logic of the plug-in has three sorts, namely, bool, int and string. The string-sorted terms include string constants and variables of arbitrary length, with functions such as concatenation, sub-string, and replace. The int-sorted terms are standard, with the exception of the length function over string terms. The atomic formulas are equations over string terms, and (in)-equalities over integer terms. Not only does our solver have features that enable whole program symbolic, static and dynamic analysis, but also it performs better than other solvers in our experiments. The application of Z3-str in remote code execution detection shows that its support of a wide spectrum of string operations is key to reducing false positives.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
de Moura, L., & Bjørner, N. (2008) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-78800-3_24 · Cited by 6,595 · cited 1×
“While most powerful constraint solvers like Z3 [19] support a rich input language for traditional program analysis, they typically don't support combined logics over strings and nonstring operations essential for web program analysis.”
BackgroundBaader, F., & Nipkow, T. (1998) · Cambridge University Press eBooks · doi:10.1017/cbo9781139172752 · Cited by 2,466
A Decision Procedure for Bit-Vectors and Arrays
Ganesh, V., & Dill, D. L. (2007) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-73368-3_52 · Cited by 585
Self-citationTHE PROBLEM OF SOLVABILITY OF EQUATIONS IN A FREE SEMIGROUP
Makanin, G. S. (1977) · Mathematics of the USSR-Sbornik · doi:10.1070/sm1977v032n02abeh002376 · Cited by 487
A Symbolic Execution Framework for JavaScript
Saxena, P., Akhawe, D., Hanna, S., Mao, F., McCamant, S., & Song, D. (2010) · 2010 IEEE Symposium on Security and Privacy · doi:10.1109/sp.2010.38 · Cited by 455 · cited 4×
“Many recent works [22] [8] [26] [21] on string solvers have addressed exactly this problem, namely, how to efficiently reason about string and non-string constraints generated during analysis of web applications.”
BackgroundMethodInfluentialPrecise analysis of string expressions
Christensen, A. S., Møller, A., & Schwartzbach, M. I. (n.d.) · Cited by 408
HAMPI: a solver for string constraints
Kieżun, A., Ganesh, V., Guo, P. J., Hooimeijer, P., & Ernst, M. D. (2009) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/1572272.1572286 · Cited by 301 · cited 14×
“Many string solvers such as HAMPI [17], DPRLE [13], and Rex [27] support only string operations.”
BackgroundInfluentialSelf-citationFinding Bugs in Web Applications Using Dynamic Test Generation and Explicit-State Model Checking
Artzi, S., Kieżun, A., Dolby, J., Tip, F., Dig, D., Paradkar, A. M., & Ernst, M. D. (2010) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2010.31 · Cited by 181 · cited 1×
“[22], bug finding [3] [32] and vulnerability detection [17] [5].”
BackgroundRex: Symbolic Regular Expression Explorer
Veanes, M., de Halleux, P., & Tillmann, N. (2010) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst.2010.15 · Cited by 152
Stranger: An Automata-Based String Analysis Tool for PHP
Yu, F., Alkhalaf, M., & Bultan, T. (2010) · Lecture notes in computer science · doi:10.1007/978-3-642-12002-2_13 · Cited by 142
Cited by
A survey of symbolic execution techniques
Baldoni, R., Coppa, E., D’elia, D. C., Demetrescu, C., & Finocchi, I. (2019) · ACM Computing Surveys · doi:10.1145/3182657 · Cited by 708
Metadata
- Authors
- Zheng, Y., Zhang, X., & Ganesh, V.
- Venue
- Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering
- Publisher
- ACM
- Published
- 2013-08-18
- Pages
- 114-124
- OpenAlex
- W2017035494
- Cited by
- 194
- References
- 19
- FWCI
- 15.16
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.