Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: md5 encryption for the user_password  (Read 5930 times)

0 Members and 1 Guest are viewing this topic.

jbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
md5 encryption for the user_password
« on: September 06, 2004, 04:26:13 pm »

Firstly I want to say your gallery is very nice! The functions are very comfortable.
But when we installed your Gallery Version 1.31 (new updated to 1.32), one thing has been confused us. All the passwords are saving without any encyption in the Database.
Is that YOUR additional feature for your application? ;-)
In my mind it's not so good that the admins are able to see the passwords of all our users.
It would be better, if a md5-encryption would safe it correctly in the database.
Do you know, if these "feature" is comming out in the next version?
Or can someone help us to include it by ourselves?

mfg JBO & the constructors
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: md5 encryption for the user_password
« Reply #1 on: September 06, 2004, 05:03:13 pm »

There is a hack available for md5 passwords - check the mod board. I'm not sure when it's coming out in a stable release but I'm sure the idea will be thrown around sometime soon if it hasn't already.

-T  8)
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: md5 encryption for the user_password
« Reply #2 on: September 06, 2004, 11:55:59 pm »

there has been a lot of discussion on this, and I think it will be in 1.4.

I think that the worry about admins being able to see the password is stupid anyway, seeing as the admin has full access to everything, and even on an application with encrypted passwords, can easily get them if he/she wanted, if that application has a password recovery system.


Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: md5 encryption for the user_password
« Reply #3 on: September 07, 2004, 06:03:39 am »

Oasis had raised a valid point - many people use the same password for several different things - so while I may not be averse to the CPG admin seeing my albums I would definitely not like him to snoop on my GMail / Paypal account / etc etc

I agree that having one password is also almost just as stupid - but then this world was designed so that the stupid could thrive as well and I am not going to dispute the almighty ;)
Logged
SANIsoft PHP applications for E Biz

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: md5 encryption for the user_password
« Reply #4 on: September 07, 2004, 06:16:38 am »

Quote
but then this world was designed so that the stupid could thrive as well and I am not going to dispute the almighty

Here here!  :D
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: md5 encryption for the user_password
« Reply #5 on: September 07, 2004, 06:54:18 am »

I agree with jbo: not even the admin should be able to see user's passwords, even though he has means to reset it to any given value. This is best practise for every app, starting from any modern OS. As MD5 is a one way alg, you can't even recover lost passwords, only create new ones. This is a mantra I keep repeating to tell people on my job: there are no means for the admin to see your password. Should and will be the same in coppermine, Omni is currently working on this feature, the harder bit being to figure out a way for coppermine users who upgrade from previous versions that didn't come with pw encryption. However, this is not an actual security threat imo, just a way a modern app should behave like.

Joachim
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: md5 encryption for the user_password
« Reply #6 on: September 08, 2004, 04:42:38 am »

Well it's good to hear others second my opinion - oh wait ... you guys have been saying it longer than I have?  ::)

-T
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

nextech2

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: md5 encryption for the user_password
« Reply #7 on: September 10, 2004, 11:30:35 am »

What about SHA1 encryption?  I'm using ExpressionEngine (by pMachine) and it no longer uses MD5, it uses SHA1.  I don't mind the clear text passwords, but I'd hate for Coppermine to switch to MD5 (and not be able to use it with ExpressionEngine's SHA1).  Could it be a selection in the admin control panel so Administrators can setup Coppermine to leave users passwords as clear text, encrypt passwords with MD5, or encrypt passwords with SHA1?

Just so there are options...

         Thanks,

Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: md5 encryption for the user_password
« Reply #8 on: September 10, 2004, 01:23:05 pm »

That appears to be the way we are going, making it admin settable, but with the understanding that once md5 is used, you cannot go back without all users losing their password.

Having said that, if it your intention to bridge the 2 apps, it would not matter anyway, as once bridged, coppermine uses the forum user management.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

seros

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 85
Re: md5 encryption for the user_password
« Reply #9 on: September 21, 2004, 08:47:06 pm »

I would prefer a md5 encryption too. More safe for the users. optional?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: md5 encryption for the user_password
« Reply #10 on: September 22, 2004, 07:27:45 am »

I would prefer a md5 encryption too. More safe for the users. optional?
Did you actually read this thread? MD5 encryption is available as a mod, do a search and apply it if you want to. What exactly is your question?

Joachim
Logged

Viper007Bond

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • Viper007Bond.com
Re: md5 encryption for the user_password
« Reply #11 on: December 13, 2004, 11:57:42 pm »

Just another vote for seeing this in the official build. :)
Logged

Nibbler

  • Guest
Re: md5 encryption for the user_password
« Reply #12 on: December 14, 2004, 02:55:15 pm »

Already planned.
Logged

paulaerison

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
    • Galaxy Warzone Interactive
Re: md5 encryption for the user_password
« Reply #13 on: December 14, 2004, 05:03:51 pm »

That appears to be the way we are going, making it admin settable, but with the understanding that once md5 is used, you cannot go back without all users losing their password.

Having said that, if it your intention to bridge the 2 apps, it would not matter anyway, as once bridged, coppermine uses the forum user management.
Code: [Select]
switch (check_pass($pass)) {
case !denied:
    print("access denied. Bad un/pw");
case !granted:
    print("access granted, welcome.");
case !md5:
    print("md5 encrypted password detected. MD5 is turned off... please change your password");
    changepass();
}

public function check_pass($pass) {
  if ($db_pass == $pass) {return !granted}
  else {if ($db_pass == md5($pass)) {return !md5 }
        else {return !denied}
  }
}

pseudocode logic rules the template world.
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 15 queries.