Web Servers on Unix and Linux - .htaccess AuthUserFile disallow blank username and password

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > February 2005 > .htaccess AuthUserFile disallow blank username and password





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author .htaccess AuthUserFile disallow blank username and password
BEV

2005-02-01, 5:59 pm

I have a problem where if the AuthUserFile contains a blank line then
users can log in with a blank username and password.

Is it possible to specify in the .htaccess file that the user "" with
password "" is not allowed even if there is a blank line in the file?

Also related to this problem could anyone advise me how i could run a
cronjob to remove any blank lines from the AuthUserFile.

Cheers

Bev
David Efflandt

2005-02-03, 2:47 am

On 1 Feb 2005 14:31:06 -0800, BEV <bev_korf@hotmail.com> wrote:
> I have a problem where if the AuthUserFile contains a blank line then
> users can log in with a blank username and password.
>
> Is it possible to specify in the .htaccess file that the user "" with
> password "" is not allowed even if there is a blank line in the file?
>
> Also related to this problem could anyone advise me how i could run a
> cronjob to remove any blank lines from the AuthUserFile.


Perhaps you need to review how names/passwords get added/removed from the
password file, so they will never be there to temporarily exploit. There
must be an error or oversight in your script or method to add or remove
passwords.

If the authenticated resource is or is wrapped by a script (like an
Action directive) you could check if REMOTE_USER has a value. However, if
you use an Action, it is up to your action handler to send proper headers
and content (to stdout).

You might also check which Allow or Satisfy directives apply.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com