Lune

USENIX Security2023Top-tier venue

Lost in Conversion: Exploit Data Structure Conversion with Attribute Loss to Break Android Systems

Rui Li, Wenrui Diao, Shishuai Yang, Xiangyu Liu, Shanqing Guo, Kehuan Zhang

Abstract

Inside the operating system, the processing of configuration files tends to be complicated and involves various data operation procedures. On Android, the processing of manifest files (the principal configuration files of Android apps) correlates to multiple core system mechanisms, such as permission and component management. It is widely recognized that improperly configured manifest files can put apps at risk. Even worse, we find that vulnerable configuration data processing can be exploited by crafted manifest files to break the Android system mechanisms, even achieving privilege escalation. In this work, we systematically studied the Android manifest processing procedures and discovered a new category of vulnerabilities called the Evil Twins flaw. In brief, during the processing of twin manifest elements (with the same name but different attributes), the ill-considered data structure conversion (e.g., from List to Map without considering the duplication issue) merges them into one item with attribute loss, further resulting in system configuration inconsistency, i.e., potential security risks. To detect the Evil Twins flaw lying in the Android OS, we designed an automated analysis tool, TWINDROID, to identify the data structure conversions with attribute loss and then manually confirm the vulnerabilities. With TWINDROID, we assessed the code of AOSP Android 11 & 12. Finally, 47 suspicious methods were reported, and four vulnerabilities were identified, which can be exploited to achieve permission escalation and revoking prevention. All discovered vulnerabilities have been acknowledged by Google, and three CVE IDs have been assigned.

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.

2 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

  • Invetter: Locating Insecure Input Validations in Android Services cites Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential Analysis
  • Lost in Migration: Exposing Android Framework Vulnerabilities in Parallel Java-Kotlin Implementations cites Android Custom Permissions Demystified: From Privilege Escalation to Design Shortcomings
  • Lost in Migration: Exposing Android Framework Vulnerabilities in Parallel Java-Kotlin Implementations cites Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential Analysis
  • Android Custom Permissions Demystified: From Privilege Escalation to Design Shortcomings cites Resolving the Predicament of Android Custom Permissions
  • SoK: History Doesn't Repeat Itself, but Android Design-Level Vulnerabilities Rhyme in OpenHarmony cites Dissecting Residual APIs in Custom Android ROMs
  • SoK: History Doesn't Repeat Itself, but Android Design-Level Vulnerabilities Rhyme in OpenHarmony cites Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential Analysis
  • Dissecting Residual APIs in Custom Android ROMs cites Invetter: Locating Insecure Input Validations in Android Services
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Lost in Migration: Exposing Android Framework Vulnerabilities in Parallel Java-Kotlin ImplementationsRui Li, Wenrui Diao, Debin GaoCCS 2026
  2. SoK: History Doesn't Repeat Itself, but Android Design-Level Vulnerabilities Rhyme in OpenHarmonyHongkai Chen, Yuqing Yang, Chao Wang, Arpit Nandi et al.USENIX Security 2026

Builds on5

  1. Resolving the Predicament of Android Custom PermissionsGüliz Seray Tuncay, Soteris Demetriou, Karan Ganju, Carl A. GunterNDSS 2018 · 51 citations
  2. Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential AnalysisYousra Aafer, Xiao Zhang, Wenliang DuUSENIX Security 2016 · 43 citations
  3. Android Custom Permissions Demystified: From Privilege Escalation to Design ShortcomingsRui Li, Wenrui Diao, Zhou Li, Jianqi Du et al.S&P 2021 · 32 citations
  4. Invetter: Locating Insecure Input Validations in Android ServicesLei Zhang, Zhemin Yang, Yuyu He, Zhenyu Zhang et al.CCS 2018 · 30 citations
  5. Dissecting Residual APIs in Custom Android ROMsZeinab El-Rewini, Yousra AaferCCS 2021 · 8 citations

Related papers

  1. Parcel Mismatch Demystified: Addressing a Decade-Old Security Challenge in AndroidSheng Cao, Hao Zhou, Songzhou Shi, Yanjie Zhao et al.CCS 2025
  2. Detecting and Measuring Misconfigured Manifests in Android AppsYuqing Yang, Mohamed Elsabagh, Chaoshun Zuo, Ryan Johnson et al.CCS 2022 · 11 citations
  3. Born with a Silver Spoon: On the (In)Security of Native Granted App Privileges in Custom Android ROMsChao Wang, Yanjie Zhao, Jiapeng Deng, Haoyu WangS&P 2025
  4. The Misuse of Android Unix Domain Sockets and Security ImplicationsYuru Shao, Jason Ott, Yunhan Jack Jia, Zhiyun Qian et al.CCS 2016 · 41 citations
  5. Call Me Back!: Attacks on System Server and System Apps in Android through Synchronous CallbackKai Wang, Yuqing Zhang, Peng LiuCCS 2016 · 22 citations
Dusk over the sea between two cliffs drawn in fine vertical lines