Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Fix weak salt provided to crypt.crypt() method which creates user acc…
Browse files Browse the repository at this point in the history
…ount password hashes. Addresses #765

(cherry picked from commit 73fbe5a)
  • Loading branch information
lots0logs committed Jun 20, 2017
1 parent 0fb671f commit b59b068
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cnchi/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

""" Set some Cnchi global constants """

CNCHI_VERSION = "0.14.286"
CNCHI_VERSION = "0.14.287"
CNCHI_WEBSITE = "http://www.antergos.com"
CNCHI_RELEASE_STAGE = "production"

Expand Down
2 changes: 1 addition & 1 deletion cnchi/installation/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def enable_services(services):
@staticmethod
def change_user_password(user, new_password):
""" Changes the user's password """
shadow_password = crypt.crypt(new_password, "$6${0}$".format(user))
shadow_password = crypt.crypt(new_password, crypt.mksalt())
chroot_call(['usermod', '-p', shadow_password, user])

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion update.info
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"version":"0.14.286","files":[
{"version":"0.14.287","files":[
]}

0 comments on commit b59b068

Please sign in to comment.