Re: Insecure WWW Access Authorization Protocol?

Rob Earhart ([email protected])
Tue, 8 Mar 1994 23:49:46 --100


michael shiplett <[email protected]> writes:
> With the current HTTP Access Authentication this is what happens
> when Alice attempts to retrieve a given URL, let's say:
> http://bob.foo.com/restricted/file.html.
> Let's also assume that to authenticate to Bob's server, one must
> authenticate to the service [email protected].
>
> 1) Alice sends a cleartext request to Bob for /restricted/file.html.
>
> 2) Mallet intercepts the request and sends to Alice:
> 401 Unauthorized
> Authenticate: KerberosV4 "[email protected]"
> This is the critical step, because Mallet is able to control to
> which service Alice should authenticate herself.
>
> 3) Alice, who has a naive, trusting browser which doesn't attempt to
> do any matching between a URL and the alleged server
> authentication identity, goes ahead and sends the authenticator
> for "[email protected] along with an encrypted request
> for http://bob.foo.com/restricted/file.html.

Heh. Don't exchange realm keys with EVIL.COM unless you trust them
to not do such things. :-)

Okay... and as long as we're assuming that Alice's browser is dumb
enough to not tell Alice who it's authenticating to, let's also not have
it tell Alice the URL (after all, URL's are nasty protocol things that
should be kept away from the user, right?).

Then Mallet intercepts the request, and sends to Alice:
301 Moved
URI: http://mallet.evil.com:/restricted/file.html

So Alice's oh-so-helpful browser jumps over there, and Mallet sends back:
401 Unauthorized
Authenticate: KerberosV4 "[email protected]"

At which point, it doesn't matter whether or not you're doing URL
checking; you still lose.

Before sending a document that requires security to a server, the
client needs to tell the user what form of authentication it's using,
and whom it's authenticating itself to. If you really feel the need to
show the user the URL, and do URL checking, fine; I'd rather just give
the user the information directly, and allow the server to use any name
it wants for authentication.

)Rob