02-14-2011, 03:33 AM
EDIT: I figured it out answer @ the end...
^^^
Forum 1
directory = bb & Cookie path intentionally set to root (/), for integration w/ other pages.
Root (/) setting not causing any obvious problems.
Forum 2
directory = forum (for example)
Cookie path also set to (/)
An unmodified login at Forum 1 sets cookies and enters MyBB session data, in the 'sessions' DB table.
Question 1)
Does MyBB use the session data in the database for security related to logins?
(i.e "verified sessions" / cookies based on encrypted session values, or something similar)
Question 2)
Forum 2 is allowing me to be logged in even though the 'verified session' occurred with Forum 1. How is this possible, and / or where is the protection from session hijacking or 'phony' cookies?
Thank you.
EDIT:
^^^
Forum 1
directory = bb & Cookie path intentionally set to root (/), for integration w/ other pages.
Root (/) setting not causing any obvious problems.
Forum 2
directory = forum (for example)
Cookie path also set to (/)
An unmodified login at Forum 1 sets cookies and enters MyBB session data, in the 'sessions' DB table.
Question 1)
Does MyBB use the session data in the database for security related to logins?
(i.e "verified sessions" / cookies based on encrypted session values, or something similar)
- When both forums on the same domain use (/) for the cookie path, then I'm getting a 'cheap and easy' SSO (Single-Sign-On), into both forums.
Question 2)
Forum 2 is allowing me to be logged in even though the 'verified session' occurred with Forum 1. How is this possible, and / or where is the protection from session hijacking or 'phony' cookies?
Thank you.
EDIT:
- Security is based on the login key. This 'cheap and easy' SSO only works if the user has the same login key in both DB's.
- This is pretty cool feature to play with