6.0.0-alpha12
6/7/25

[#9145] Crypt Blowfish add an extra \0 character to passwords
Summary Crypt Blowfish add an extra \0 character to passwords
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Duplicate
Priority 3. High
Owners
Requester rui.carneiro (at) portugalmail (dot) net
Created 07/20/2010 (5436 days ago)
Due
Updated 07/20/2010 (5436 days ago)
Assigned
Resolved 07/20/2010 (5436 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
07/20/2010 08:08:15 PM rui (dot) carneiro (at) portugalmail (dot) net Comment #3 Reply to this comment
Duplicate of Bug #9121.
Oh! Sorry :\

07/20/2010 07:57:59 PM Michael Slusarz Comment #2
State ⇒ Duplicate
Reply to this comment
Duplicate of Bug #9121.
07/20/2010 07:09:08 PM rui (dot) carneiro (at) portugalmail (dot) net Comment #1
Priority ⇒ 3. High
New Attachment: 0001-We-should-trim-passwords-before-using-them-http-pear.patch Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Crypt Blowfish add an extra \0 character to passwords
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
http://pear.php.net/bugs/bug.php?id=4747

Quoting: "When the length of a plain string is not a multiple of 8, 
decrypt() return a result with a NUL chars block appened to the end 
(which length is a multiple of 8)."

----

So if we are decrypting a password not multiple of 8 we should trim 
the "\0" from the decrypted result.

I found this bug because i wasn't able to use Horde with an ImapProxy.

Saved Queries