Skip to main content
QUICK REVIEW

[Paper Review] Uncovering and Exploiting Hidden APIs in Mobile Super Apps

Chao Wang, Yue Zhang|arXiv (Cornell University)|Jun 13, 2023
Advanced Malware Detection TechniquesComputer Science5 citations
TL;DR

This paper presents APIScope, a hybrid static and dynamic analysis tool that uncovers undocumented, privileged APIs in mobile super apps like WeChat and TikTok. The tool identifies hidden APIs through static analysis of binary invariants and validates their exploitability via dynamic execution, revealing that all five tested super apps contain unchecked hidden APIs capable of enabling critical attacks such as arbitrary URL loading and malware installation.

ABSTRACT

Mobile applications, particularly those from social media platforms such as WeChat and TikTok, are evolving into "super apps" that offer a wide range of services such as instant messaging and media sharing, e-commerce, e-learning, and e-government. These super apps often provide APIs for developers to create "miniapps" that run within the super app. These APIs should have been thoroughly scrutinized for security. Unfortunately, we find that many of them are undocumented and unsecured, potentially allowing miniapps to bypass restrictions and gain higher privileged access. To systematically identify these hidden APIs before they are exploited by attackers, we developed a tool APIScope with both static analysis and dynamic analysis, where static analysis is used to recognize hidden undocumented APIs, and dynamic analysis is used to confirm whether the identified APIs can be invoked by an unprivileged 3rdparty miniapps. We have applied APIScope to five popular super apps (i.e., WeChat, WeCom, Baidu, QQ, and Tiktok) and found that all of them contain hidden APIs, many of which can be exploited due to missing security checks. We have also quantified the hidden APIs that may have security implications by verifying if they have access to resources protected by Android permissions. Furthermore, we demonstrate the potential security hazards by presenting various attack scenarios, including unauthorized access to any web pages, downloading and installing malicious software, and stealing sensitive information. We have reported our findings to the relevant vendors, some of whom have patched the vulnerabilities and rewarded us with bug bounties.

Motivation & Objective

  • To systematically identify undocumented and unsecured privileged APIs in mobile super apps that may be exploited by third-party miniapps.
  • To address the scalability and completeness limitations of manual analysis in detecting hidden APIs across complex, multi-layered super app architectures.
  • To develop a tool that can distinguish between APIs restricted to first-party apps and those accessible to third-party miniapps.
  • To quantify the security risks posed by hidden APIs by verifying their access to Android-protected resources and permissions.
  • To responsibly disclose findings and demonstrate real-world attack scenarios to prompt vendor patching and improve platform security.

Proposed method

  • Apply static analysis to reverse-engineer super app binaries, using function and interface invariants derived from documented public APIs to detect undocumented hidden APIs.
  • Construct robust API signatures based on super app classnames and public method patterns to improve detection accuracy across mixed-language codebases (e.g., Java, C++, JavaScript).
  • Perform dynamic analysis by executing identified APIs in a controlled runtime environment to confirm their existence and invocation feasibility.
  • Classify detected APIs as 'checked' or 'unchecked' based on whether they can be invoked by unprivileged third-party miniapps.
  • Generate automated test cases to trigger and validate API behavior during dynamic execution.
  • Correlate discovered APIs with Android permission boundaries to assess their potential for privilege escalation and sensitive data access.

Experimental results

Research questions

  • RQ1What hidden, undocumented APIs exist in popular mobile super apps, and how do they differ from documented public APIs?
  • RQ2To what extent are these hidden APIs exposed to third-party miniapps due to missing access controls?
  • RQ3Which hidden APIs can be exploited to perform high-privilege actions such as arbitrary web navigation or APK installation?
  • RQ4How do the security properties of hidden APIs vary across different super app platforms like WeChat, TikTok, and Baidu?
  • RQ5Can a systematic, automated method detect and classify hidden APIs with high precision and exploitability verification?

Key findings

  • All five tested super apps—WeChat, WeCom, Baidu, QQ, and TikTok—contain hidden, undocumented APIs, with some having more hidden APIs than documented ones.
  • In WeChat’s Payment API category, 28 hidden APIs were discovered, significantly outnumbering the one documented API.
  • Dynamic analysis confirmed that many hidden APIs can be invoked by unprivileged third-party miniapps, indicating the absence of proper access controls.
  • The study demonstrated multiple real-world attack scenarios, including unauthorized access to any web page, downloading and installing malicious APKs, and exfiltrating sensitive user data.
  • Vulnerabilities were responsibly disclosed to vendors; Tencent patched four vulnerabilities (1 low, 2 medium, 1 high) and awarded a bug bounty, while TikTok also issued a patch.
  • The findings highlight that privileged hidden APIs in super apps pose a critical security risk due to their elevated privileges and lack of security checks.

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.