-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential to hijack a logged-in user's session #338
Comments
How widespread is this problem? Does it happen every time? Can you reproduce it in other browsers or computers? |
It has only happened to me once so far, but I don't access the CRM often.
|
Looks like the CRM only checks the PHPSESSID cookie to auth users. Since we have other sites on the same domain name, there are many ways that someone may be able to stick code in the right place (for example this comment on our blog: http://i3.lc/425) to steal an unsuspecting user's cookies. |
I have also randomly been logged in as Ed at one point. I don't have any data for how it happen. I'm pretty sure it was on my computer I use mostly for lan parties. At the time I figured I must have had the computer where Ed was some time in the past and he checked the crm on it and forgot to log out. |
This is obviously a serious bug. Can anyone think of a fix? Is there a On Fri, Dec 19, 2014 at 12:43 PM, NateLapT notifications@github.com wrote:
Edward L. Platt This electronic mail message was sent from my desktop personal computer. |
I've turned off access to the session cookie via javascript on our server, and I recommend others who use this cookie do the same. That will at least make it more difficult to get at the session ID. |
So is the problem that (possibly malicious) client-side code can set the On Fri, Dec 19, 2014 at 1:04 PM, mjgardes notifications@github.com wrote:
Edward L. Platt This electronic mail message was sent from my desktop personal computer. |
I think there are two closely related problems here. The most dangerous The fact that multiple people have been "accidentally" logged in as cid 1 On Fri, Dec 19, 2014 at 1:09 PM, Edward L Platt notifications@github.com
|
Steps to reproduce: |
The problem here seems to be some scripts trying to log out with $_SESSION['userId'] = 0;. Trouble is 0 is an actual user with all the permissions. Traditionally, the nobody user is -1 or -2, but I don't know what that will break in the CRM. |
Admin user should be cid=1 and all others should be nonzero. This might be On Tue, Apr 14, 2015 at 12:07 PM, mjgardes notifications@github.com wrote:
Edward L. Platt This electronic mail message was sent from my desktop personal computer. |
Opened up chrome, like I normally do, typed in the URL to our CRM and was greeted with "Welcome, Platt, Edward L."
It appears to be fully logged in as someone else, with all of their permissions. Could the server have hit a session ID collision or something? Smells like a gaping security hole to me.
The text was updated successfully, but these errors were encountered: