不信任我:使用恶意IdPs分析和攻击单点登录
Do not trust me: Using malicious IdPs for analyzing and attacking Single Sign-On
摘要:
单点登录(SSO)系统通过使用身份提供者(IdP)来发布可由服务提供者(SP)使用的认证令牌来简化登录过程。传统上,IdP被建模为受信任的第三方。这对于SSO系统是合理的,例如SSL、MS Passport和SAML,其中每个SP明确指定他信任的IdP。然而,在像OpenID和OpenID Connect这样的开放系统中,每个用户都可以建立自己的IdP,并且发现阶段被添加到协议流中。因此,攻击者很容易建立自己的IdP。在本文中,我们使用了一种新的方法来分析SSO认证方案,通过引入一个恶意的IdP。通过这种方法,我们评估了最流行和广泛部署的SSO协议之一- OpenID。我们在OpenID上发现了四种新的攻击类,这是以前的研究所没有涉及的,并显示了它们对现实生活中实现的适用性。因此,我们能够妥协现有的16个OpenID实现中的11个,如Sourceforge,Drupal和ownCloud。我们在开源工具OpenID Attacker中自动发现这些攻击,该工具还允许对OpenID实现中的所有参数进行细粒度测试。我们的研究有助于更好地理解OpenID协议中的消息流,系统的不同组件中的信任假设,以及OpenID组件中的实现问题。它适用于其他SSO系统,如OpenID Connect和SAML。所有OpenID实现都已被告知其漏洞,我们支持他们修复这些问题。
英文摘要:
Single Sign-On (SSO) systems simplify login procedures by using an an Identity Provider (IdP) to issue authentication tokens which can be consumed by Service Providers (SPs). Traditionally, IdPs are modeled as trusted third parties. This is reasonable for SSO systems like Kerberos, MS Passport and SAML, where each SP explicitely specifies which IdP he trusts. However, in open systems like OpenID and OpenID Connect, each user may set up his own IdP, and a discovery phase is added to the protocol flow. Thus it is easy for an attacker to set up its own IdP. In this paper we use a novel approach for analyzing SSO authentication schemes by introducing a malicious IdP. With this approach we evaluate one of the most popular and widely deployed SSO protocols - OpenID. We found four novel attack classes on OpenID, which were not covered by previous research, and show their applicability to real-life implementations. As a result, we were able to compromise 11 out of 16 existing OpenID implementations like Sourceforge, Drupal and ownCloud. We automated discovery of these attacks in a open source tool OpenID Attacker, which additionally allows fine-granular testing of all parameters in OpenID implementations. Our research helps to better understand the message flow in the OpenID protocol, trust assumptions in the different components of the system, and implementation issues in OpenID components. It is applicable to other SSO systems like OpenID Connect and SAML. All OpenID implementations have been informed about their vulnerabilities and we supported them in fixing the issues.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。