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 /

Submitter:  Sherif Nagy <sherif>
Submitted:  Tue 22 Mar 2011 08:39:14 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.0.3
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code