Lune

NDSS2023Top-tier venue

SynthDB: Synthesizing Database via Program Analysis for Security Testing of Web Applications

An Chen, Jiho Lee, Basanta Chaulagain, Yonghwi Kwon, Kyu Hyung Lee

Abstract

—Testing database-backed web applications is challenging because their behaviors (e.g., control flow) are highly dependent on data returned from SQL queries. Without a database containing sufficient and realistic data, it is challenging to reach potentially vulnerable code snippets, limiting various existing dynamic-based security testing approaches. However, obtaining such a database for testing is difficult in practice as it often contains sensitive information. Sharing it can lead to data leaks and privacy issues. In this paper, we present S YNTH DB, a program analysis-based database generation technique for database-backed PHP applications. S YNTH DB leverages a concolic execution engine to identify interactions between PHP codebase and the SQL queries. It then collects and solves various constraints to reconstruct a database that can enable exploring uncovered program paths without violating database integrity. Our evaluation results show that the database generated by S YNTH DB outperforms state-of-the-arts database generation techniques in terms of code and query coverage in 17 real-world PHP applications. Specifically, S YNTH DB generated databases achieve 62.9% code and 77.1% query coverages, which are 14.0% and 24.2% more in code and query coverages than the state-of-the-art techniques. Furthermore, our security analysis results show that S YNTH DB effectively aids existing security testing tools: Burp Suite, Wfuzz, and webFuzz. Burp Suite aided by S YNTH DB detects 76.8% of vulnerabilities while other existing techniques cover 55.7% or fewer. Impressively, with S YNTH DB, Burp Suite discovers 33 previously unknown

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Holistic Concolic Execution for Dynamic Web Applications via Symbolic Interpreter Analysis cites NAVEX: Precise and Scalable Exploit Generation for Dynamic Web Applications
  • Holistic Concolic Execution for Dynamic Web Applications via Symbolic Interpreter Analysis cites LChecker: Detecting Loose Comparison Bugs in PHP
  • Spider-Scents: Grey-box Database-aware Web Scanning for Stored XSS cites Chainsaw: Chained Automated Workflow-based Exploit Generation
  • FuzzCache: Optimizing Web Application Fuzzing Through Software-Based Data Cache cites Holistic Concolic Execution for Dynamic Web Applications via Symbolic Interpreter Analysis
  • FuzzCache: Optimizing Web Application Fuzzing Through Software-Based Data Cache cites LChecker: Detecting Loose Comparison Bugs in PHP
  • LChecker: Detecting Loose Comparison Bugs in PHP cites NAVEX: Precise and Scalable Exploit Generation for Dynamic Web Applications
  • Detecting Broken Object-Level Authorization Vulnerabilities in Database-Backed Applications cites NAVEX: Precise and Scalable Exploit Generation for Dynamic Web Applications
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Spider-Scents: Grey-box Database-aware Web Scanning for Stored XSSEric Olsson, Benjamin Eriksson, Adam Doupé, Andrei SabelfeldUSENIX Security 2024 · 8 citations
  2. Holistic Concolic Execution for Dynamic Web Applications via Symbolic Interpreter AnalysisPenghui Li, Wei Meng, Mingxue Zhang, Chenlin Wang et al.S&P 2024 · 6 citations
  3. Detecting Broken Object-Level Authorization Vulnerabilities in Database-Backed ApplicationsYongheng Huang, Chenghang Shi, Jie Lu, Haofeng Li et al.CCS 2024 · 4 citations
  4. FuzzCache: Optimizing Web Application Fuzzing Through Software-Based Data CachePenghui Li, Mingxue ZhangCCS 2024 · 3 citations

Builds on5

  1. NAVEX: Precise and Scalable Exploit Generation for Dynamic Web ApplicationsAbeer Alhuzali, Rigel Gjomemo, Birhanu Eshete, V. N. VenkatakrishnanUSENIX Security 2018 · 85 citations
  2. Deemon: Detecting CSRF with Dynamic Analysis and Property GraphsGiancarlo Pellegrino, Martin Johns, Simon Koch, Michael Backes et al.CCS 2017 · 74 citations
  3. Chainsaw: Chained Automated Workflow-based Exploit GenerationAbeer Alhuzali, Birhanu Eshete, Rigel Gjomemo, V. N. VenkatakrishnanCCS 2016 · 52 citations
  4. Saphire: Sandboxing PHP Applications with Tailored System Call AllowlistsAlexander Bulekov, Rasoul Jahanshahi, Manuel EgeleUSENIX Security 2021 · 30 citations
  5. LChecker: Detecting Loose Comparison Bugs in PHPPenghui Li, Wei MengWWW 2021 · 22 citations

Related papers

  1. Racedb: Detecting Request Race Vulnerabilities in Database-Backed Web ApplicationsAn Chen, Yonghwi Kwon, Kyu Hyung LeeS&P 2025
  2. Generating Test Databases for Database-Backed ApplicationsCong Yan, Suman Nath, Shan LuICSE 2023 · 4 citations
  3. Efficiently Detecting DBMS Bugs through Bottom-up Syntax-based SQL GenerationYu Liang, Peng LiuNDSS 2026
  4. WHIP: Improving Static Vulnerability Detection in Web Application by Forcing tools to CollaborateFeras Al Kassar, Luca Compagna, Davide BalzarottiUSENIX Security 2023
  5. SQUIRREL: Testing Database Management Systems with Language Validity and Coverage FeedbackRui Zhong, Yongheng Chen, Hong Hu, Hangfan Zhang et al.CCS 2020 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines