I’m working on an admin page in PHP in which a user system seems like overkill. I was thinking of just requiring one password to access the admin page, but I’m not sure if would be safe to do so. I can’t see any specific security problems that this might pose, can anyone else think of any?
Edit: By “a user system is overkill” I meant that there is not likely to be more than one user.
To sum up what others have said: Fine as long as the password is not simple, but more vulnerable to brute-force attacks.
Solution: You can enforce a password-complexity policy, and you can throttle further login attempts – get it wrong once, next login is artificially slowed 4 seconds. Get it wrong again, 8 seconds, and so on.
Option: Use two fields – username and password – but make the user also just a static value, like the password. Twice the guessing, twice the effort, twice the security (and twice the hassle for users..)
You could actually throw in a CAPTCHA. That would thwart brute-force attacks pretty well.