<div dir="ltr">Yeah, I think that captures the general processing flow. <br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 17, 2018 at 8:50 AM Torsten Lodderstedt <<a href="mailto:torsten@lodderstedt.net">torsten@lodderstedt.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Brian,<br>
<br>
> Am 17.08.2018 um 15:39 schrieb Brian Campbell <<a href="mailto:bcampbell@pingidentity.com" target="_blank">bcampbell@pingidentity.com</a>>:<br>
> <br>
> Good point. OIDC Core (<a href="http://openid.net/specs/openid-connect-core-1_0.html#Security" rel="noreferrer" target="_blank">http://openid.net/specs/openid-connect-core-1_0.html#Security</a>) does not discuss this attack angle. From your perspective, what is the typical way to detect crafted/modified ID Tokens in the id_token flow? <br>
> <br>
> Checking the signature. But if the issuer isn't known or expected, don't go trying to find keys for it, just reject the token.<br>
<br>
<br>
I would like to summarize the discussion regarding handling of state value and response processing. <br>
<br>
>From what I understand, the processing would work as follows (assuming the „state" is carried in the JWT):<br>
<br>
1) decrypt JWT using the client's private key - the key is determine by the „kid“ header parameter<br>
2) obtain „state“ from JWT<br>
3) check binding of state value to user agent, if check fails - abort processing<br>
4) obtain „iss" from JWT<br>
5) check whether „iss" is known and expected („aud“ could be checked in this step as well), if not abort processing<br>
6) obtain signing key based on „iss“ and „kid"<br>
7) check signature, if signature validation fails - abort processing<br>
8) use response parameters<br>
<br>
Does this capture your thoughts correctly? <br>
<br>
Kind regards,<br>
Torsten. </blockquote></div>
<br>
<i style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background:rgb(255,255,255);font-family:proxima-nova-zendesk,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;color:rgb(85,85,85)"><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background:transparent;font-family:proxima-nova-zendesk,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-weight:600"><font size="2">CONFIDENTIALITY NOTICE: This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the message and any file attachments from your computer. Thank you.</font></span></i>