Forum Moderators: phranque
[digit][word][digit]
Where both digits are the same, like this: 3example3.
When I enter the correct password, it lets me in. However when I enter just 3example, it also lets me in! I've tried this on several browsers, cleared caches, and restarted browsers. I can still reproduce the problem.
Apache version is 2.0.55, and I can't upgrade (it's not my server). Can anyone shed any light on this? Is this a known bug and has been fixed? Can anyone reproduce it?
Thanks!
passwor
password
passworL
passwordL
passwordLL
passwordLLL
passwordLLLL
passwordLLLLL
etc. - I stopped at ten letters after the full password, but I suspect that you could go up to the 255 character limit.
A bug? Maybe. A security risk? Probably not, as you still need to know the password other than the final character. I guess it is down to how Apache handles the encrypted password from the .htpasswd file, or something to do with how MD5 hashes work in general (apache usually encrypts the password as MD5 according to the .htpassword manual page [httpd.apache.org]).
It's odd that 7-char 'passwor' worked then though ...?
I wondered the same thing here myself at one point back when I was using 1.3, mattx17. Why did my 8 character password truncation work when I specifically had a longer password assigned? To be honest, I have never tested with Apache 2.x. I'm assuming nothing has changed though as this is some very basic authentication, and not secure. Keeps the honest thieves out, as they say. Everything I need password protected now goes through my own authentication methods using the encrypted protocol.