Security Issue on Protected Galleries ...
Antonio Correia
Registered Users Posts: 6,241 Major grins
Hello
I cleaned my cookies and tryed to access a protected gallery.
After I input the password fot this gallery several cookies were created (See attachment). Password is in plain text !! if you use one computer everybody will be able to see you gallery password. Even you gallery id is displayed.
To solve this problem: I would advise in creating a SESSION variable and encrypted, if you close your browser the session will expire automatically.
See http://php.net/manual/en/ref.session.php
ps - I changed the gallery password ...
I cleaned my cookies and tryed to access a protected gallery.
After I input the password fot this gallery several cookies were created (See attachment). Password is in plain text !! if you use one computer everybody will be able to see you gallery password. Even you gallery id is displayed.
To solve this problem: I would advise in creating a SESSION variable and encrypted, if you close your browser the session will expire automatically.
See http://php.net/manual/en/ref.session.php
ps - I changed the gallery password ...
All the best ! ... António Correia - Facebook
0
Comments
The same problem
I'm sure the engineers will find a solution.
www.casongarner.com
5D MkII | 30D | 50mm f1.8 II | 85mm f1.8 | 24-70mm f2.8L | 70-200mm f2.8L IS II | Manfrotto 3021BPRO with 322RC2
SmugMug API Developer
My Photos
Portfolio • Workshops • Facebook • Twitter
So you are saying it is not the same?
You are encrypting the password with "one-way hashing". You type the password. It's hashed out into some garbage text and stored in the cookie. Then, the user comes back and types the password. That password is hashed out during the session and checked against the content stored in the cookie. If they match, then you are in.
Is that not encrypting the password?
www.casongarner.com
5D MkII | 30D | 50mm f1.8 II | 85mm f1.8 | 24-70mm f2.8L | 70-200mm f2.8L IS II | Manfrotto 3021BPRO with 322RC2
Yes I am saying they are not the same.
No, encrypting something implies there is a method to retrieve the original text from the encrypted text by the means of a key. Since, a hashing algorithm is a one-way function, you require the original text to verify the hash value, hence it's not encryption.
SmugMug API Developer
My Photos
The example you mentioned above with hashing the password into a cookie is one such example.
Another example is digital signatures on email. The email message is hashed, and the hash value appended to the message. On opening the message, the recepient's email client hashs the message and compares it to the hash value attached to the email to determine if the message was modified in transit.
SmugMug API Developer
My Photos
www.casongarner.com
5D MkII | 30D | 50mm f1.8 II | 85mm f1.8 | 24-70mm f2.8L | 70-200mm f2.8L IS II | Manfrotto 3021BPRO with 322RC2
Nice work.
SmugMug has an added value.
Thank you.
Not only is that not encrypting, it's also not enhancing security at all.
If someone can view your cookies, they can just copy the hashed string and it would act exactly the same as if they had typed the password.
Don
Don,
As I'm sure you're more than well aware : :
The only advantage it gives you is if people re-use passwords for other purposes, they can't be [easily] extracted if the machine is compromised.
I agree that password resuse is not generally a good idea for 'shared access control' passwords, but I bet it happens.
Luke
SmugSoftware: www.smugtools.com