Actions
Defect #3351
closedWeak autologin token generation algorithm causes duplicate tokens
Defect #3351:
Weak autologin token generation algorithm causes duplicate tokens
Resolution:
Fixed
Affected version:
Description
After switching to mod_passenger we got 7 (seven!) duplicated autologin tokens within 2 weeks. It caused some changes have been made under wrong user account!
Looks like due to using of pseudo-random sequence generator two concurrent Ruby processes may use the same random seed (and as result the same random sequence).
At our instance we made quick fix - prepend random sequence with "#{user.id}_" and substring left 40 chars, however, I guess there may be better solution.
Actions