arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1601.01229cs.CR
收藏

OAuth 2.0的形式化安全分析

A Comprehensive Formal Security Analysis of OAuth 2.0

Daniel Fett, Ralf Kuesters, Guido Schmitz

摘要:

OAuth 2.0协议是部署最广泛的授权/单点登录(SSO)协议之一,也是新SSO标准OpenID Connect的基础。尽管OAuth很受欢迎,但到目前为止,分析工作主要是针对特定实现中的bug,并且基于从许多Web功能中抽象出来的正式模型,或者根本没有提供正式的处理。在本文中,我们进行了第一次广泛的形式化分析的OAuth 2.0标准的表达Web模型。我们的分析旨在建立强大的授权,身份验证和会话完整性保证,我们提供正式的定义。在我们的正式分析中,涵盖了所有四种OAuth授权类型(授权代码授权、隐式授权、资源所有者密码凭证授权和客户端凭证授权)。它们甚至可能在相同和不同的依赖方和身份提供者中同时运行,其中也考虑恶意依赖方、身份提供者和浏览器。我们对OAuth 2.0标准的建模和分析假设遵循安全建议和最佳实践,以避免明显和已知的攻击。在我们的模型中证明OAuth的安全性时,我们发现了四种破坏OAuth安全性的攻击。这些漏洞可以在实践中被利用,也存在于OpenID Connect中。我们针对已识别的漏洞提出了修复方案,然后首次在一个富有表现力的Web模型中实际证明了OAuth的安全性。特别是,我们展示了OAuth的固定版本(具有安全建议和最佳实践)提供了我们指定的授权,身份验证和会话完整性属性。

英文摘要:

The OAuth 2.0 protocol is one of the most widely deployed authorization/single sign-on (SSO) protocols and also serves as the foundation for the new SSO standard OpenID Connect. Despite the popularity of OAuth, so far analysis efforts were mostly targeted at finding bugs in specific implementations and were based on formal models which abstract from many web features or did not provide a formal treatment at all. In this paper, we carry out the first extensive formal analysis of the OAuth 2.0 standard in an expressive web model. Our analysis aims at establishing strong authorization, authentication, and session integrity guarantees, for which we provide formal definitions. In our formal analysis, all four OAuth grant types (authorization code grant, implicit grant, resource owner password credentials grant, and the client credentials grant) are covered. They may even run simultaneously in the same and different relying parties and identity providers, where malicious relying parties, identity providers, and browsers are considered as well. Our modeling and analysis of the OAuth 2.0 standard assumes that security recommendations and best practices are followed, in order to avoid obvious and known attacks. When proving the security of OAuth in our model, we discovered four attacks which break the security of OAuth. The vulnerabilities can be exploited in practice and are present also in OpenID Connect. We propose fixes for the identified vulnerabilities, and then, for the first time, actually prove the security of OAuth in an expressive web model. In particular, we show that the fixed version of OAuth (with security recommendations and best practices in place) provides the authorization, authentication, and session integrity properties we specify.

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

↑