bugGNU Screen - Bugs: bug #32875, password login fail if the hashed...

 
 

bug #32875: password login fail if the hashed password has more than 1 . or /

Submitted by:  Sherif Nagy <sherif>
Submitted on:  Tue 22 Mar 2011 08:39:14 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.0.3
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 Mar 2011 08:39:14 AM UTC, original submission:

I used a simple python script to generate random salt for password encryption using crypt python library, including password HASH in .screenrc sometime works and some times don't, by observing the behaviour I find that if the hash something like the follow:

$1$1F0JSWIG$8ehSYNV834hcaBM4KgJhG1 will not prompt for password
$1$YNMAB2D6$wYPhEaWGPM8zfi.HqySLL1 will give login failed
$1$H369GRQO$qKOS.WYJfmYza4qeHcIys/ will give login failed
$1$ISEZPQN4$6BpAWUkoTvBUH5FOmd8fr/ will work

NOTE: Password foobar

My guess is that the parsing for the password attribute uses delimiter "." or "/" which in case 2 and 3 exits twice or once in the middle, so screen takes half the hash "where the 1st delimiter found" and compare the input password, in case 1 no delimiter found. Case 4 works perfectly

Thank You
Sherif

Sherif Nagy <sherif>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sherif (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup