arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.09317cs.CR
收藏

衡量超级应用中认证密钥的泄露与可利用性:微信案例

Measuring the Leakage and Exploitability of Authentication Secrets in Super-apps: The WeChat Case

Supraja Baskaran, Lianying Zhao, Mohammad Mannan, Amr Youssef

AI总结:

本文构建分析框架,大规模测量微信与百度小程序中开发者认证密钥的硬编码泄露及其服务器端 API 可利用性,揭示严重攻击风险并提出修复方向。

摘要:

我们对开发者的不安全实践进行了大规模测量,这些实践会导致从小程序到超级应用的认证绕过,其中硬编码用于此类认证的开发者密钥是一个主要诱因。我们还通过检查各个超级应用的服务器端 API,分析了小程序中开发者密钥泄露的可利用性及安全后果。我们开发了一个用于衡量此类密钥泄露的分析框架,主要分析了 110,993 个微信小程序和 10,000 个百度小程序(两个最主要的超级应用平台),以及另外几个数据集,以测试开发者实践和平台安全强制执行随时间的演变。我们发现大量微信小程序(36,425 个,占 32.8%)和少数百度小程序(112 个)泄露了其开发者密钥,这可能给小程序的用户和开发者造成严重的安全与隐私问题。网络攻击者甚至无需在超级应用平台上拥有账户,就能够有效击垮一个小程序、向用户发送恶意链接和钓鱼链接,并访问小程序开发者及其用户的敏感信息。我们负责任地披露了这些发现,并提出了可考虑的潜在方向,以缓解或消除开发者在小程序前端代码中硬编码应用密钥这一根本原因。

英文摘要:

We conduct a large-scale measurement of developers' insecure practices leading to mini-app to super-app authentication bypass, among which hard-coding developer secrets for such authentication is a major contributor. We also analyze the exploitability and security consequences of developer secret leakage in mini-apps by examining individual super-app server-side APIs. We develop an analysis framework for measuring such secret leakage, and primarily analyze 110,993 WeChat mini-apps, and 10,000 Baidu mini-apps (two of the most prominent super-app platforms), along with a few more datasets to test the evolution of developer practices and platform security enforcement over time. We found a large number of WeChat mini-apps (36,425, 32.8%) and a few Baidu mini-apps (112) leak their developer secrets, which can cause severe security and privacy problems for the users and developers of mini-apps. A network attacker who does not even have an account on the super-app platform, can effectively take down a mini-app, send malicious and phishing links to users, and access sensitive information of the mini-app developer and its users. We responsibly disclosed our findings and also put forward potential directions that could be considered to alleviate/eliminate the root causes of developers hard-coding the app secrets in the mini-app's front-end code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑