Bug 1268110 - Better Salt for Forgotten/Reset Password page for URL generated
Summary: Better Salt for Forgotten/Reset Password page for URL generated
Keywords:
Status: CLOSED EOL
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-01 20:57 UTC by Clifford Perry
Modified: 2019-10-21 12:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-21 12:21:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Clifford Perry 2015-10-01 20:57:55 UTC
Description of problem:
Reviewing https://fedorahosted.org/spacewalk/wiki/Features/ResetPassword and commitID's listed. The main feedback I have is maybe a better salt for the hash being used ... in theory if someone knew the userid and time frame, with a default 48 hour window - they'd have more than plenty of time to try and brute force attack the reset URLs. It would be reasonable for anyone to assume there is an 'admin' or 'satadmin' account to attack. Submit the form, know the user and time, assume re-try counter of 0 or 1 (or a small integer value) and then quickly attach the urls before the real satadmin reads their email in the morning (so to speak). 

So, after confirming with Grant code here:
https://github.com/spacewalkproject/spacewalk/commit/e18542b50a95cf4c4b085a2f158645c46287e6e9#diff-3f1a494d9634e4a72568bd162a8ad754R89


counter + user-id + currentTimeMillis

And nearly everyone creates (and keeps) admin accounts with the first uid counter :)


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Michael Mráka 2019-10-21 12:21:03 UTC
Spacewalk 2.8 (and older) has already reached it's End Of Life.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before end of life. If you would still like
to see this bug fixed and are able to reproduce it against current version
of Spacewalk 2.9, you are encouraged change the 'version' and re-open it.


Note You need to log in before you can comment on or make changes to this bug.