Skip to main content
QUICK REVIEW

[Paper Review] ConsiDroid: A Concolic-based Tool for Detecting SQL Injection Vulnerability in Android Apps

Ehsan Edalat, Babak Sadeghiyan|arXiv (Cornell University)|Nov 26, 2018
Advanced Malware Detection TechniquesComputer Science23 references3 citations
TL;DR

ConsiDroid is a concolic execution-based tool that detects SQL injection vulnerabilities in Android apps by extending source code with dummy main classes and symbolic mock classes to enable taint analysis via SPF. It achieved 100% precision in identifying three real-world SQL injection vulnerabilities among 140 F-Droid apps, demonstrating effective path prioritization and dynamic taint tracking with minimal performance overhead.

ABSTRACT

In this paper, we present a concolic execution technique for detecting SQL injection vulnerabilities in Android apps, with a new tool we called ConsiDroid. We extend the source code of apps with mocking technique, such that the execution of original source code is not affected. The extended source code can be treated as Java applications and may be executed by SPF with concolic execution. We automatically produce a DummyMain class out of static analysis such that the essential functions are called sequentially and, the events leading to vulnerable functions are triggered. We extend SPF with taint analysis in ConsiDroid. For making taint analysis possible, we introduce a new technique of symbolic mock classes in order to ease the propagation of tainted values in the code. An SQL injection vulnerability is detected through receiving a tainted value by a vulnerable function. Besides, ConsiDroid takes advantage of static analysis to adjust SPF in order to inspect only suspicious paths. To illustrate the applicability of ConsiDroid, we have inspected randomly selected 140 apps from F-Droid repository. From these apps, we found three apps vulnerable to SQL injection. To verify their vulnerability, we analyzed the apps manually based on ConsiDroid's reports by using Robolectric.

Motivation & Objective

  • To address the lack of concolic testing tools for Android apps, especially for detecting SQL injection vulnerabilities.
  • To overcome the challenges of concolic execution in Android, such as missing entry points and SDK dependency, by extending apps with dummy main classes.
  • To enable dynamic taint analysis in Android apps by introducing symbolic mock classes that propagate tainted values without executing real SDK logic.
  • To improve efficiency by using static analysis to prioritize suspicious execution paths during concolic testing.
  • To evaluate the tool’s effectiveness on real-world, open-source Android apps from the F-Droid repository.

Proposed method

  • ConsiDroid extends Android apps with a generated DummyMain class via backward traversal of the call graph to trigger vulnerable functions without modifying original source code.
  • It uses symbolic mock classes to emulate SDK functionality, replacing method bodies with default values to avoid path divergence during concolic execution.
  • The tool integrates taint analysis into SPF’s concolic execution engine, tracking data flow from untrusted inputs (sources) to SQL execution functions (sinks).
  • It leverages static analysis to identify and prioritize potentially vulnerable paths, reducing path explosion and improving performance.
  • ConsiDroid enhances SPF with symbolic execution and taint tracking, enabling detection of SQL injection when a tainted value reaches a vulnerable SQL function.
  • The tool reports vulnerabilities with concrete execution traces, aiding developers in patching issues.

Experimental results

Research questions

  • RQ1Can concolic execution with taint analysis detect SQL injection vulnerabilities in real-world Android apps?
  • RQ2How effective is the use of dummy main classes and symbolic mocks in enabling concolic testing of Android apps without modifying original code?
  • RQ3To what extent does static analysis-based path prioritization reduce the performance overhead of concolic testing in Android apps?
  • RQ4What is the precision and recall of ConsiDroid in detecting SQL injection vulnerabilities in a real-world app repository?
  • RQ5How does the complexity of Android apps affect the time and code coverage of ConsiDroid’s analysis?

Key findings

  • ConsiDroid successfully detected three real SQL injection vulnerabilities in 140 randomly selected F-Droid apps, all confirmed via manual analysis using Robolectric.
  • The tool achieved 100% precision in vulnerability detection, with no false positives reported in the evaluation set.
  • The performance overhead of ConsiDroid increased only slightly with app complexity, as measured by method count, SDK method usage, and activity count.
  • The use of static analysis to prioritize vulnerable paths significantly reduced the number of explored execution paths, improving efficiency.
  • ConsiDroid demonstrated high code coverage with minimal increase in execution time, even as app complexity grew.
  • The symbolic mock class technique successfully enabled taint propagation across SDK boundaries without path explosion.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.