News for hackers. Stuff that matters.
Re:Chrome 19 doesn't respect basic auth details embedded in ... by benjiweber on Thursday April 19, 2012 @01:48AM (#3861588)
They're not passed in the URL. Try it yourself:

$ curl -vv 'http://username:[email protected]/

> GET / HTTP/1.1

> Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

dXNlcm5hbWU6cGFzc3dvcmQ= is base64 encoded 'username:password'

The Authorization header is the same one that will be used if your browser prompts you for a username/password.

Also, the Authorization header is also plain text. Whether you pass credentials on the URL or in the Authorization header, it makes little difference in terms of interceptability. They're just different lines in the HTTP request. You need SSL to secure either.

There are no comments on this comment yet.