Ticket #81 (closed defect: fixed)
Retrieving user-information (Session Leakage)
| Reported by: | dartar | Owned by: | JavaWoman |
|---|---|---|---|
| Priority: | highest | Milestone: | 1.3.1 |
| Component: | core | Version: | 1.1.6.1 |
| Severity: | major | Keywords: | security, cookies, "multiple installations" |
| Cc: |
Description
(Reported by GiorgosKontopoulos)
If you don't log out, then with a simple
echo "<PRE>_REQUEST =";print_r($_REQUEST)."</PRE>";
you can see the user's username and pass (md5'ed of course)
_REQUEST =Array ( [skin] => xxxxxx.css [PHPSESSID] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [wikka_user_name] => xxxxxx [wikka_pass] => xxxxxxxxxxxxxxxxxxxxxxxxxx )
I think this is called a session leakage, anyone knows of a solution to this.
Perhaps a solution to this would be changing the name of the session that a particular wikka installation uses, The name could be a random number/word passed from md5 this way its unique to each wikka installation. Also changing the path that the session data are stored maybe helpful. (I have seen discussions on this I think on php.net session_name() or session_start() )
I don't really know the implications of this bug are (maybe its not even a bug), perhaps people can see the session data on shared hosts and that is really what concerns me. -GiorgosKontopoulos (look also at "Multiple wikis ... Login security hole?" later down the page)
Update There are more places this bug makes itself known. If one has accounts in two different Wikka wiki's sites then changing the skin in one will affect the active skin in the other Or if you log in/log out in one you find yourself logged in or logged out in the other.
tested it using 1) 2 Wikka engines, same server, using FF1.0.6, had same userName and pass on both behaves as stated above. 2) 2 Wikka engines, same server, using FF1.0.6, using userA on the one installation the other installation thinks I am userA but does not actually let me see pages only allowed to userA. 3) jsnx.wikka.com and my test installation using FF1.0.6, had same userName and pass on both it runs ok it seems.
Not a terrible bug but may have other implications still hidden. -GiorgosKontopoulos Oct. 27, 02:09:21 UTC
Related comments
Reuse of Username when multiple wikkas on single server
Not sure if this is truly a bug, but I have a number of wikka installations,. each in different (peer) directories on a server, each using different DB's. Now, each has a user named SeanOttey, and if I go log in at site A, then go to site B, I am shown as logged in, but with the other site's user info (i.e. email, password, settings). Potentially, this might create accessibility that an admin did not intend, yes? thanks! Sean.
Multiple wikka installations on one host: Login security hole?
Okay. Say that I've installed multiple seperate installations of wikka on one host. If I do a login on wikka A, I can also reach the pages of wikka B, whereas wikka B has an authentication table where the user account of wikka A does not exist! My guess is that this behaviour occurs because the login cookies are set with path root. And as long the login cookies exist Wikka doesn't care about authentication anymore?? -- JeroenJansen
- Same problem. Is it possible to include in wikka.config.php a line in which you specify the default cookie prefix? I guess this could solve the problem. --YanB
- Same problem for me as well. I've modified wikka.php to use different session names (add: session_name($wakkaConfigwakka_name?); just above the session_start(); ) and different cookies ("wikka_user_name@".$this->configwakka_name? and "wikka_pass@".$this->configwakka_name?) as my 2 wikkas do have have different wakka_names. Seems to behave as expected now. --OlivierPerron