Automata-Based Model Counting for String Constraints

被引:59
|
作者
Aydin, Abdulbaki [1 ]
Bang, Lucas [1 ]
Bultan, Tevfik [1 ]
机构
[1] Univ Calif Santa Barbara, Santa Barbara, CA 93106 USA
来源
关键词
STATIC ANALYSIS;
D O I
10.1007/978-3-319-21690-4_15
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Most common vulnerabilities in Web applications are due to string manipulation errors in input validation and sanitization code. String constraint solvers are essential components of program analysis techniques for detecting and repairing vulnerabilities that are due to string manipulation errors. For quantitative and probabilistic program analyses, checking the satisfiability of a constraint is not sufficient, and it is necessary to count the number of solutions. In this paper, we present a constraint solver that, given a string constraint, (1) constructs an automaton that accepts all solutions that satisfy the constraint, (2) generates a function that, given a length bound, gives the total number of solutions within that bound. Our approach relies on the observation that, using an automata-based constraint representation, model counting reduces to path counting, which can be solved precisely. We demonstrate the effectiveness of our approach on a large set of string constraints extracted from real-world web applications.
引用
收藏
页码:255 / 272
页数:18
相关论文
共 50 条
  • [1] Symbolic string verification: An automata-based approach
    Yu, Fang
    Bultan, Tevfik
    Cova, Marco
    Ibarra, Oscar H.
    MODEL CHECKING SOFTWARE, PROCEEDINGS, 2008, 5156 : 306 - 324
  • [2] Accurate String Constraints Solution Counting with Weighted Automata
    Sherman, Elena
    Harris, Andrew
    34TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2019), 2019, : 440 - 452
  • [3] An Automata-based Approach for CTL star With Constraints
    Gascon, Regis
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 239 : 193 - 211
  • [4] STRANGER: An Automata-Based String Analysis Tool for PHP
    Yu, Fang
    Alkhalaf, Muath
    Bultan, Tevfik
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, PROCEEDINGS, 2010, 6015 : 154 - 157
  • [5] Automata-based symbolic string analysis for vulnerability detection
    Fang Yu
    Muath Alkhalaf
    Tevfik Bultan
    Oscar H. Ibarra
    Formal Methods in System Design, 2014, 44 : 44 - 70
  • [6] Automata-based symbolic string analysis for vulnerability detection
    Yu, Fang
    Alkhalaf, Muath
    Bultan, Tevfik
    Ibarra, Oscar H.
    FORMAL METHODS IN SYSTEM DESIGN, 2014, 44 (01) : 44 - 70
  • [7] Automata-Based CSL Model Checking
    Zhang, Lijun
    Jansen, David N.
    Nielson, Flemming
    Hermanns, Holger
    Automata, Languages and Programming, ICALP, Pt II, 2011, 6756 : 271 - 282
  • [8] TARSIS: An effective automata-based abstract domain for string analysis
    Negrini, Luca
    Arceri, Vincenzo
    Cortesi, Agostino
    Ferrara, Pietro
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (08)
  • [9] Z3-NOODLER: An Automata-based String Solver
    Chen, Yu-Fang
    Chocholaty, David
    Havlena, Vojtech
    Holik, Lukas
    Lengal, Ondrej
    Sic, Juraj
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, PT I, TACAS 2024, 2024, 14570 : 24 - 33
  • [10] Automata-based representations for arithmetic constraints in automated verification
    Bartzis, C
    Bultan, T
    IMPLEMENTATION AND APPLICATION OF AUTOMATA, 2003, 2608 : 282 - 288