azure-ad-b2c - 为什么重定向URL在Azure AD B2C中完全合格?

标签 azure-ad-b2c

为什么redirect URL必须完全匹配?在域级别进行匹配是否不足以提供适当的安全性?

如果我有数百条路径怎么办?

示例网址:

  • https://myawesomesite.com
  • https://myawesomesite.com/account/profile
  • https://myawesomesite.com/games/fungame/points
  • https://www.myawesomesite.com/games/fungame/points

  • ...

    我将不得不在我的B2C应用配置中输入上述4个重定向网址。

    最佳答案

    实际上,这是在RFC 6819“OAuth 2.0威胁模型和安全注意事项”部分4.1.54.2.45.2.3.5中讨论的。

    4.1.5. Threat: Open Redirectors on Client

    An open redirector is an endpoint using a parameter to automatically redirect a user agent to the location specified by the parameter value without any validation. If the authorization server allows the client to register only part of the redirect URI, an attacker can use an open redirector operated by the client to construct a redirect URI that will pass the authorization server validation but will send the authorization "code" or access token to an endpoint under the control of the attacker.

    Impact: An attacker could gain access to authorization "codes" or access tokens.

    Countermeasures:

    o Require clients to register full redirect URI (Section 5.2.3.5)."


    Section 5.2.3.5讨论了这种限制过于严格的情况,目的是提供替代解决方案。
    通常,如Chris建议的那样,state参数还可用于确定性重定向。但是,您必须确保这样的解决方案也不会最终成为开放的重定向器,因此state参数将需要受到保护(例如,加密/签名),或者与Cookie结合使用。

    关于azure-ad-b2c - 为什么重定向URL在Azure AD B2C中完全合格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47520604/

    相关文章:

    azure - 使用 Google 服务帐户登录 Azure B2C

    c# - 我们可以从 Azure AD B2C 中的 "Profile editing policies"更改用户的电子邮件地址吗?

    azure-ad-b2c - 登录 Azure B2C 页面上的内容安全策略错误

    azure - AADB2C90068 : The provided application with ID is not valid against this service. 请使用通过 B2C 门户创建的应用程序,然后重试

    oauth-2.0 - 使用 MSAL 的 SPA 应用 Azure B2C 身份验证。保持用户登录状态

    Azure Active Directory (B2E) 与 Azure Active Directory B2C - 现有信息不明确且难以理解

    c# - 在带有模拟器的 Xamarin.iOS 中使用 Azure AD B2C - 钥匙串(keychain)问题(团队 ID 为空)

    azure-ad-b2c - Azure AD B2C FedRAMP 是否已获得授权?

    powershell - 图形 API - Azure AD B2C - 引发错误 - 未找到标识符的应用程序

    node.js - Azure AD B2C (NodeJS) : Unauthorized 401 error for a request with a valid token