Cross Miniapp Request Forgery
Authors:
Open Access
- 7 November 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 3079-3092
Abstract
A miniapp is a full-fledged app that is executed inside a mobile super app such as WeChat or SnapChat. Being mini by nature, it often has to communicate with other miniapps to accomplish complicated tasks. However, unlike a web app that uses network domains (i.e., IP addresses) to navigate between different web apps, a miniapp uses a unique global appId assigned by the super app to navigate between miniapps. Unfortunately, any missing checks of the sender's appId in a receiver miniapp can lead to a new type of attacks we name it cross-miniapp request forgery (CMRF). In addition to demystifying the root cause of this attack (i.e., the essence of the vulnerability), this paper also seeks to measure the popularity of this vulnerability among miniapps by developing CmrfScanner, which is able to statically detect the CMRF-vulnerability based on the abstract syntax tree of miniapp code to determine whether there are any missing checks of the appIds. We have tested CmrfScanner with 2,571,490 WeChat miniapps and 148,512 Baidu miniapps, and identified 52,394 (2.04%) WeChat miniapps and 494 (0.33%) Baidu miniapps that involve cross-communication. Among them, CmrfScanner further identified that 50,281 (95.97%) of WeChat miniapps, and 493 (99.80%) of Baidu miniapps lack the appID checks of the sender's mini-apps, indicating that a large amount of miniapp developers are not aware of this attack. We also estimated the impact of this vulnerability and found 55.05% of the lack of validation WeChat miniapps (7.09% of such Baidu miniapps) can have direct security consequences such as privileged data access, information leakage, promotion abuse, and even shopping for free. We hope that our findings can raise awareness among miniapp developers, and future miniapps will not be subject to CMRF attacks.Keywords
Funding Information
- NSF (National Science Foundation) (1834215,2112471)
This publication has 21 references indexed in Scilit:
- Evaluation of a WeChat-based dementia-specific training program for nurses in primary care settings: A randomized controlled trialApplied Nursing Research, 2017
- Unleashing the Walking Dead2017
- Cracking App Isolation on Apple2015
- Cross-Site Scripting (XSS) attacks and defense mechanisms: classification and state-of-the-artInternational Journal of System Assurance Engineering and Management, 2015
- Cross-Site Scripting (XSS) Abuse and Defense: Exploitation on Several Testing Bed Environments and Its DefenseJournal of Information Privacy and Security, 2015
- Unauthorized origin crossing on mobile platforms2013
- CHEX2012
- DEMACRO: Defense against Malicious Cross-Domain Requests2012
- Analyzing inter-application communication in Android2011
- Robust defenses for cross-site request forgery2008