User's sites could steal cookies from other user's sites and from main Ubuland site
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuland |
Confirmed
|
Critical
|
Unassigned |
Bug Description
We use a single cookie for validating login: 'login' which stores a copy of the 'loginKey' database value. This cookie can be seen accessed by web pages in www.ubuland.
For example, everyone visiting www.ubuland.
This could be prevented by assigning web space in the form username.
Changed in ubuland: | |
importance: | Undecided → Critical |
milestone: | none → alpha-two |
Changed in ubuland: | |
assignee: | nobody → bobbo |
status: | Confirmed → In Progress |
Changed in ubuland: | |
assignee: | bobbo → nobody |
status: | In Progress → Confirmed |
Confirming this bug. Example scenario:
User 'attacker' (/~attacker) sets up a website that secretly steals the login keys of other Ubuland users (say he stole the cookie of /~saj0577). From this he could forge a new cookie, with the stolen login key, which would trick the current system into thinking he was Saj0577 and therefor would have access to Saj's account.
If there is a way for new cookies to be forged (i am not very knowledgable about this) this is definately a big problem. Otherwise it still isnt ideal for users to know other users' current Ubuland login keys, just in case there are other ways this can be exploited.