I think this squarely belongs in the Security Consideration section!

In fact, I think that all other items there ought to be written using the same template: a) Problem, b) Solution(s) along with pros and cons.

Igor

Eran Hammer-Lahav wrote:
Thanks. Browser security is not my area.

It seems to me that this must be documented as all the examples I have seen for such scripts did not include any such security measures.

EHL


On 7/7/10 1:06 PM, "[email protected]" <[email protected]> wrote:

    On Wed, Jul 7, 2010 at 12:47 PM, Eran Hammer-Lahav
    <[email protected]> wrote:
    > The issue is that it is hard (or even impossible) to prevent another
    > user-agent client from imitating another user-agent client. A
    pre-registered
    > redirection URI does very little to help. In most cases, such a
    URI will
    > point to a web page with a script that will extract the
    information and pass
    > it to the parent frame. This means any client can get hold of the
    access
    > token as long as it was the parent.

    The script doesn't have to naively pass information to the parent.  It
    could either make an explicit check to make sure the parent is in the
    same domain, or rely on communication techniques that respect the
    same-origin policy.

    Pros:
    With a pre-registered redirection URI, this prevents the specific case
    you mentioned above.  Are there other cases where this wouldn't work?

    Cons:
    Requiring such a check would add implementation load to clients.
    Servers would not know if the (good-guy) client is conformant.
    Does it break the user-agent flow entirely?  Are there implementations
    that require this blind cross domain communication?

    Mike
    --mdawaffe

------------------------------------------------------------------------

_______________________________________________
OAuth mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/oauth
_______________________________________________
OAuth mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/oauth

Reply via email to