[Openid-specs-ab] IdP initiated login
Allen Tom
allentomdude at gmail.com
Tue Nov 1 00:22:47 UTC 2011
Hi John -
I think that there's still an XRSF vulnerability even if the the IdP shows
a dialog before generating the assertion.
The attacker could login to the IdP with the attacker's own account, then
go through the flow to see the dialog. The attacker could then click
through the dialog and capture the assertion (possibly using a browser
extension, or modified client) and then send the assertion to a victim
(possibly via IM or email) to have the victim be signed into the RP using
the attacker's account.
This is why the RP needs to bounce the browser back to the OP to have the
OP verify that the assertion was issued to the same browser before sending
the browser back to the RP.
I used to think that Login XRSF was not a big deal (who cares if an
attacker can get someone else to login as the attacker?) - however there
are a few interesting scenarios where a victim could have their privacy
compromised.
Allen
On Mon, Oct 31, 2011 at 5:10 PM, John Bradley <ve7jtb at ve7jtb.com> wrote:
> If the IdP is not presenting a dialog then it leaves the user open to
> XSRF.
>
> In a code flow you only get code and state from the IdP it is the RP's
> responsibility to figure out where it came from, so that wouldn't work.
> If you used the Token flow the RP would need to look into the id_token to
> see where it came from.
> That would be a problem for simple clients, because they need the
> introspection endpoint, and to get that they need to get the issuer from
> inside the token.
>
> I think we need a separate API that takes as its parameters:
> issuer
> nonce
> hmac of issuer & nonce with client secret.
>
> That way the RP can tell that the IdP is sending the request and not a 3rd
> party.
>
> The RP would do a normal authentication with prompt=none to the issuer.
>
> There is a extra hop.
>
> We need to identify & authenticate the issuer/IdP somehow in the first
> step.
>
> John B.
>
>
>
> On 2011-10-31, at 5:42 PM, Allen Tom wrote:
>
> Hi John -
>
> Is this the Unsolicited Assertion use case - where the user clicks on
> a sponsored link hosted on the IdP's site and gets authenticated on the
> RP's site?
>
> I think we had discussed this at IIW a couple years ago, and the general
> consensus was that upon receiving an unsolicited positive assertion, the RP
> would need to redirect the user's browser back to the OP to have the OP
> re-generate the assertion and resend it back to the RP.
>
> The downside is that the UX would suffer due to the extra round trip.
>
> Allen
>
>
>
>
> On Mon, Oct 31, 2011 at 6:56 AM, John Bradley <ve7jtb at ve7jtb.com> wrote:
>
>> Just a note on a possible idea.
>>
>> The when the RP registers a client ID it sets unsolicited_login_url: to
>> some return_url
>>
>> The IdP then sends the id_token with nonce set to a time stamp + entropy
>> , and a claim of idp_initiated: true .
>>
>> We probably need to restrict this to the code flow.
>>
>> RP could then check that the id_token was not generated by XSRF and set
>> it's cookies.
>>
>> I don't see a general way that a unmodified RP is going to be able to
>> safely.
>>
>> This should probably be an extension.
>>
>> John B.
>> _______________________________________________
>> Openid-specs-ab mailing list
>> Openid-specs-ab at lists.openid.net
>> http://lists.openid.net/mailman/listinfo/openid-specs-ab
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openid.net/pipermail/openid-specs-ab/attachments/20111031/ccb344eb/attachment.html>
More information about the Openid-specs-ab
mailing list