<div dir="ltr">What about 5pm and before the social? </div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-02 18:40 GMT+09:00 nov matake <span dir="ltr"><<a href="mailto:nov@matake.jp" target="_blank">nov@matake.jp</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Does the f2f happen tomorrow in Yokohama?</div><div>Then I can join :)<span class="HOEnZb"><font color="#888888"><br><br>nov</font></span></div><div><div class="h5"><div><br>On Nov 2, 2015, at 11:29, Nat Sakimura <<a href="mailto:sakimura@gmail.com" target="_blank">sakimura@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>perhaps do a<span></span> f2f adhoc this week? <div><br></div><div><br><br>2015年11月2日月曜日、John Bradley<<a href="mailto:ve7jtb@ve7jtb.com" target="_blank">ve7jtb@ve7jtb.com</a>>さんは書きました:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">The attack is not on the authentication, it is on intercepting the code and being able to replay it.<div><br></div><div>Using a key the client is given from  registration to authenticate the request to the token endpoint won’t help because that can just be man in the middled by the attacker as well.</div><div><br></div><div>This is also not specific to dynamic client registration.  It just makes it easier.  I could make the client come to a site to register and give it bad endpoints as well.</div><div><br></div><div>In Connect if you do a id_token code flow the issuer in the returned token would be wrong for the request so that should actually stop the attack on a client that is validating id_token correctly in that flow.  (allowing late binding per one proposal will make this vulnerable as well I think.</div><div><br></div><div>In the code only flow it is much harder to stop because the attacker can register itself and then replay any keys it gets from the real AS.</div><div>If the client provides a public key in registration that would help if we used signed requests.</div><div><br></div><div>To stop the attack you really need to send the token endpoint URI in the request to the Authorization server, or use a asymmetric pkce challenge verifier.</div><div><br></div><div>I haven’t had a chance to organize the options yet.</div><div><br></div><div>John B.</div><div><br></div><div><br></div><div><br></div><div><div><blockquote type="cite"><div>On Oct 31, 2015, at 5:14 AM, Mike Jones <<a>Michael.Jones@microsoft.com</a>> wrote:</div><br><div>




<div style="word-wrap:break-word;font-size:14px;font-family:Calibri,sans-serif">
<div>
<div style="font-family:Calibri,sans-serif;font-size:11pt">The other thing that can't be faked by an attacker is the OP's keys. If the ID token isn't signed by the right keys, then the RP knows that there's a problem.  This points to a possible solution involving
 authenticating the jwks_uri value.<br>
<br>
Remember also that the Implicit flows don't use a token endpoint. So solutions that involve authenticating the token endpoint won't work for deployments using only Implicit flows.<br>
<br>
John, Justin, and Nov, when you send in your IIW session notes, can you also please send them here?<br>
<br>
Thanks,<br>
-- Mike</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">From:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a>Preibisch, Sascha H</a></span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Sent:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt">‎10/‎30/‎2015 1:00 PM</span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">To:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a>openid-specs-ab@lists.openid.net</a></span><br>
<span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Subject:
</span><span style="font-family:Calibri,sans-serif;font-size:11pt">[Openid-specs-ab] Securing token requests when discovery service is used</span><br>
<br>
</div>
<div>
<div>
<div style="font-family:Consolas,monospace;font-size:12px">Hi!</div>
<div style="font-family:Consolas,monospace;font-size:12px"><br>
</div>
<div style="font-family:Consolas,monospace;font-size:12px">Now that IIW is over I would like to bring up my thoughts regarding the</div>
<div style="font-family:Consolas,monospace;font-size:12px">session we had with John regarding the discovery service issue.</div>
<div style="font-family:Consolas,monospace;font-size:12px"><br>
</div>
<div style="font-family:Consolas,monospace;font-size:12px">If I am the 'bad' discovery service provider I can fake all values within</div>
<div style="font-family:Consolas,monospace;font-size:12px">the discovery response. Except for the /token endpoint. That has to point</div>
<div style="font-family:Consolas,monospace;font-size:12px">to my system in order for me to receive the authorization_code and client</div>
<div style="font-family:Consolas,monospace;font-size:12px">credentials.</div>
<div style="font-family:Consolas,monospace;font-size:12px"><br>
</div>
<div style="font-family:Consolas,monospace;font-size:12px">Therefore I believe there are two solutions:</div>
<div style="font-family:Consolas,monospace;font-size:12px"><br>
</div>
<div style="font-family:Consolas,monospace;font-size:12px">* the discovery response to the client has to include a secret which has to be included</div>
<div style="font-family:Consolas,monospace;font-size:12px">in the initial /authorize request. The authorization server validates the</div>
<div style="font-family:Consolas,monospace;font-size:12px">value and fails the request if it is invalid. This of course has the</div>
<div style="font-family:Consolas,monospace;font-size:12px">drawback that the authorization server has to keep state. As a server guy</div>
<div style="font-family:Consolas,monospace;font-size:12px">I would not like to support this flow</div>
<div style="font-family:Consolas,monospace;font-size:12px"><br>
</div>
<div style="font-family:Consolas,monospace;font-size:12px">* The better solution I see, and as I mentioned during the discussion, is</div>
<div style="font-family:Consolas,monospace;font-size:12px">that the client should include the target /token endpoint as an additional</div>
<div style="font-family:Consolas,monospace;font-size:12px">request parameter for the initial /authorize request. The authorization</div>
<div style="font-family:Consolas,monospace;font-size:12px">server does a simple string comparison and fails if the /token endpoint is</div>
<div style="font-family:Consolas,monospace;font-size:12px">not the one as expected</div>
<div style="font-family:Consolas,monospace;font-size:12px"><br>
</div>
<div style="font-family:Consolas,monospace;font-size:12px">Regards,</div>
<div style="font-family:Consolas,monospace;font-size:12px">Sascha</div>
</div>
</div>
</div>

_______________________________________________<br>Openid-specs-ab mailing list<br><a>Openid-specs-ab@lists.openid.net</a><br><a href="http://lists.openid.net/mailman/listinfo/openid-specs-ab" target="_blank">http://lists.openid.net/mailman/listinfo/openid-specs-ab</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br>-- <br>Nat Sakimura (=nat)<div>Chairman, OpenID Foundation<br><a href="http://nat.sakimura.org/" target="_blank">http://nat.sakimura.org/</a><br>@_nat_en</div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Openid-specs-ab mailing list</span><br><span><a href="mailto:Openid-specs-ab@lists.openid.net" target="_blank">Openid-specs-ab@lists.openid.net</a></span><br><span><a href="http://lists.openid.net/mailman/listinfo/openid-specs-ab" target="_blank">http://lists.openid.net/mailman/listinfo/openid-specs-ab</a></span><br></div></blockquote></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Nat Sakimura (=nat)<div>Chairman, OpenID Foundation<br><a href="http://nat.sakimura.org/" target="_blank">http://nat.sakimura.org/</a><br>@_nat_en</div></div>
</div>