供应链不安全:揭示iOS依赖管理系统的漏洞
Supply Chain Insecurity: Exposing Vulnerabilities in iOS Dependency Management Systems
AI总结:
本文揭示iOS依赖管理系统中因内部依赖信息泄露导致的安全漏洞,通过分析CocoaPods等系统,展示攻击者如何利用暴露的包名和版本进行远程代码执行,并提出针对此类威胁的缓解措施。
摘要:
依赖管理系统是软件开发中的关键组件,使项目能够高效地整合现有功能。然而,这些系统中的配置错误和恶意行为者会带来严重的安全风险,导致供应链攻击。尽管智能手机应用被广泛使用,但iOS软件供应链中的依赖管理系统的安全性却很少受到关注。在本文中,我们聚焦于CocoaPods,这是iOS应用开发中最广泛使用的依赖管理系统之一,同时也检查了Carthage和Swift Package Manager(SwiftPM)的安全性。我们证明iOS应用会暴露内部包名称和版本。攻击者可以利用这种泄露来在CocoaPods中注册之前未被占用的依赖项,从而在开发人员机器和构建服务器上实现远程代码执行(RCE)。此外,我们还表明攻击者可以通过回收废弃的域名和GitHub网址来破坏依赖项。分析9,212个应用的数据集,我们量化了多少应用容易受到这些漏洞的影响。进一步,我们检查了公共GitHub仓库中使用易受攻击的依赖项的情况。我们的发现表明,流行的应用程序披露了内部依赖信息,使依赖混淆攻击成为可能。此外,我们还展示了通过一个废弃的CocoaPod库域名劫持可以影响63个iOS应用,影响数百万用户。最后,我们将iOS依赖管理系统与Cargo、Go模块、Maven、npm和pip进行比较,讨论了针对已识别威胁的缓解策略。
英文摘要:
Dependency management systems are a critical component in software development, enabling the incorporation of existing functionality. However, misconfigurations and malicious actors in these systems pose security risks, leading to supply chain attacks. Despite the widespread use of smartphone apps, the security of dependency management systems in the iOS software supply chain has received limited attention. In this paper, we focus on CocoaPods, one of the most widely used dependency management systems for iOS app development, but also examine the security of Carthage and Swift Package Manager (SwiftPM). We demonstrate that iOS apps expose internal dependency names and versions. Attackers can exploit this information to register previously unclaimed dependencies in CocoaPods, enabling remote code execution (RCE) on developer machines and build servers. Additionally, we show that attackers can compromise dependencies by reclaiming abandoned domains and GitHub URLs. Analyzing 9,491 real-world iOS applications, we find that a significant fraction is vulnerable to these attacks, putting millions of users at risk, including applications from major organizations for which we confirmed exploitation via responsible disclosure. Finally, we compare iOS dependency management systems with Cargo, Go modules, npm, pip, and Maven, and discuss conceptual issues and practical mitigation strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。