admin login opens up other instances' admin areas {0.12b1}
Posted: Sat Feb 11, 2006 3:04 am
ok folks, try this at home:
set up multiple instances of cmsms on the same server. for me, paths are something like this:
wwwroot/testing/11cmsms (0.11.2 install)
wwwroot/testing/cmsms (0.12b1 install)
wwwroot/testing/cmsms2 (0.12b1 install with a later svn applied)
wwwroot/testing/cms-daily (some 0.12-flavoured daily for awhile ago)
and they're all accessible at http://192.168.99.100/testing/(dirname) and they don't all use the same database. admin password is not the same across all of them either (it's username, 'admin', is the same on all four, though).
log into one of the admin areas. then change the path in the browser address bar to point to another instance's administration area and load it up instead. you get in.
ok. go to each one's admin area and ensure you're logged out (that the login page comes up). then try it again. login to one of them and then manually type in the url for another's admin area. you get in.
you can even hop from one version to another, whether the passwords are the same or not doesn't matter either.
this is on my breezy box running apache2/php4. haven't looked at this on my windows system yet but iirc, it occurs there too i, just never paid any attention to it before (kinda handy for testing actually, just not for the real world).
does not work across domains on a different server, dunno about different domains on the same server though.
just a guess, but it appears that the admin cookies are only recording & checking domain and not the site's complete url?
set up multiple instances of cmsms on the same server. for me, paths are something like this:
wwwroot/testing/11cmsms (0.11.2 install)
wwwroot/testing/cmsms (0.12b1 install)
wwwroot/testing/cmsms2 (0.12b1 install with a later svn applied)
wwwroot/testing/cms-daily (some 0.12-flavoured daily for awhile ago)
and they're all accessible at http://192.168.99.100/testing/(dirname) and they don't all use the same database. admin password is not the same across all of them either (it's username, 'admin', is the same on all four, though).
log into one of the admin areas. then change the path in the browser address bar to point to another instance's administration area and load it up instead. you get in.
ok. go to each one's admin area and ensure you're logged out (that the login page comes up). then try it again. login to one of them and then manually type in the url for another's admin area. you get in.
you can even hop from one version to another, whether the passwords are the same or not doesn't matter either.
this is on my breezy box running apache2/php4. haven't looked at this on my windows system yet but iirc, it occurs there too i, just never paid any attention to it before (kinda handy for testing actually, just not for the real world).
does not work across domains on a different server, dunno about different domains on the same server though.
just a guess, but it appears that the admin cookies are only recording & checking domain and not the site's complete url?