OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Getting round website authentication with Firefox

From: Christopher Kunz (christopher.kunzhardened-php.net)
Date: Wed Jul 27 2005 - 18:55:10 CDT


account.throwgmail.com wrote:
> Using firefox's "save target as" feature, you can get round web authentication.
>
> Make a password protected directory (with a video file inside) (using .htaccess and htpasswd), check that it actully requires a login when you click the link to the video normally, then create a hyperlink to the file, right click save as - oh snap, it doesn't ask for authentication.
>
> I've only tested it with a video file and Firefox 1.0.6.

Nope. This cannot work, you probably messed up your basic auth settings in
Apache. If you perform a HEAD /protected/video.avi, you will already see the 401
header - and there is no way to bypass that with a client.

For the sake of the argument, I actually tried it out - and it doesn't work (of
course).

I'd suspect that you a) didn't configure the basic auth properly or b) have run
into the infamous basic auth caching issue (a.k.a. "we can't log out users with
basic auth").

--ck