Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Understanding the Session Fixation Attack on UMA Claims-Gathering and the Provided Mitigation

On January 27, 2016, an issue was reported that identified a vulnerability in the UMA protocol. The UMA Work Group immediately set about analyzing the attack, possible mitigations under consideration, and similar cases; choosing an optimal mitigation; and developing specification text [add link] defining that mitigation. This companion non-normative document provides additional background information.

Familiarity with UMA terms and concepts is recommended for reading this document.

Many thanks to the submitters of the issue!

Introduction for End-Users

Here is a high-level description of the problem and the solution, suitable for end-users of online services. (You don't need familiarity with UMA terms and concepts to read this section.)

Alice wants to share a photo with Bob, and only Bob. Eve would like to see the photo, but she is not allowed. Alice stores the photo on her resource server and protects it with her authorization server. She sets a policy stating that only Bob should have access to the photo.

In order for Bob to get access to the photo, the following three steps would be completed:

  1. Bob begins his transaction by requesting the photo.

  2. Bob identifies himself within the context of his transaction by visiting Alice's authorization service.
  3. The authorization service grants access to the photo within the context of his transaction.

Eve would like to access the photo as well. She completes the following steps:

  1.  Eve begins the transaction by requesting the photo.
  2. Rather than identifying herself, Eve phishes Bob and convinces him to identify himself within the context of her transaction by visiting Alice's authorization service.
  3. The authorization server grants access to the photo within the context of Eve's transaction.

Because Eve’s attack involves a successful phishing event, this scenario is not considered a vulnerability in the classic sense. [true?] The attacker must know the victim and successfully trick him. Further, UMA can sometimes be used in an alternate way to let Bob be identified automatically, without having to visit the authorization service, and this alternate way is not susceptible to the vulnerability.

Therefore, the UMA Work Group has not made normative changes to the UMA Core specification at this time, but has developed an UMA extension specification to be used in contexts where a higher level of security is appropriate. [rather say: to be used only in contexts where visiting the authorization service to complete the process of seeking access is required?]

Thanks to Sarah Squire for this writeup!

Description of the Attack

Preconditions:

  • The attacker (malicious requesting party) and the victim (innocent requesting party) both use an UMA client with the same client ID. it could be the same client instance or different client instances. The client is legitimate and uncompromised.
  • Both the attacker and the victim have AATs.
  • The victim is a human end-user.

Attack sequence:

  1. The attacker attempts access to an UMA-protected resource at an RS that she should not be able to access.
  2. The RS registers a requested permission; the AS returns a permission ticket; the RS returns a permission ticket (along with other data) to the client.
  3. The client asks for authorization data and RPT at the AS; the AS returns a need_info response with redirect_user (or the client otherwise infers the requirement to redirect the victim's browser to the requesting party claims endpoint).
  4. The client attempts to redirect the victim's browser to the requesting party claims endpoint, but the attacker prevents this redirection, and instead copies the redirect URL (optionally stripping off the state parameter), including a permission ticket query parameter, and passes it to the victim.
  5. After being phished with the URL, the victim assists the AS in completing the claims-gathering process, for example, proving his identity and providing any other required claims in order to allow access to the desired resource. The victim notices nothing wrong; it looks like he's supplying claims to help launch a client he knows and trusts. In the case of long-lived cookies for, say, social networks, the victim’s claims could be provided to the AS automatically through single sign-on.
  6. The AS redirects the victim back to the client. No relevant session is found in the client because either no state value or an incorrect state value is present on the request [correct?]. Therefore, the POST-redirect request fails. Alternatively, if an attacker controls the victim's network access, she can prevent all communication between victim and client, so the client doesn't see a spurious/failed request at all.
  7. After the right amount of time has elapsed, the attacker simulates the post-claims-gathering actions in her client, ultimately receiving an RPT with sufficient authorization data, because every parameter of the post-claims-gathering endpoint (state, authorization_state, ticket) is known to the attacker.
  8. The attacker gains access to the protected resource.

Discussion of the Attack

The state parameter provides no support to distinguish the attacker's transaction context and the victim's context, as noted above. The victim's client simply fails when attempting to continue seeking access because the session was initiated by the attacker.

The ticket parameter also provides no support to distinguish the two contexts because UMA V1.0 and V1.0.1 require its value to be the same across the entire process of claims-gathering when a requesting party is seeking access to a particular resource. It could be said that the root problem of the session fixation is in the "fixed" nature of permission tickets in the cycle of 1) requesting party claims endpoint usage with a ticket parameter and 2) the response from the AS with the same ticket parameter repeated.

Mitigations Analyzed

tbs

  • No labels