etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

sessionID throw URL

Open sembrestels opened this issue 15 years ago • 9 comments

PHP client class (and I don't know if is the same with the other languages) uses a cookie to mantain the session between the page and the pad. It works perfectly if both are in the same domain, and also can work if pad is on a subdomain, but fails when we try to embed a pad from another domain.

A possible solution would be to pass sessionID thow the URL, as an embed parameter. Remember that in https connections everything is encrypted, also the URL, and there are no security issue in that sense.

Etherpad Lite should accept sessionID throw the cookie and also throw the URL.

sembrestels avatar Dec 01 '11 23:12 sembrestels

Not to nitpick, but URL parameters are logged by most Web servers and proxies, so to a degree this is still less secure than cookies. Whether or not that's worth considering, I'm unsure.

jhollinger avatar Dec 02 '11 04:12 jhollinger

-1

Most of the security guides on the Internet (google for "php session id security" recommend something like "Ideally, don’t pass session ids in the URL – require users to accept a cookie if they need to “log in”."

Wikinaut avatar Dec 02 '11 07:12 Wikinaut

I also have this issue for a long time, when the pad is embeded in a iframe, then I dont have pemission to access. so I also pass the session id through URL and knowing this has security issues. Looking for a better solution.

bingjie2680 avatar Dec 02 '11 10:12 bingjie2680

Another solution would be to add etherpad lite in the path: example.com/pad

Cookie would work fine, and it can be configured with the proxy pass, if pad is in another server. The question is etherpad lite can work in a subpath?

sembrestels avatar Dec 02 '11 19:12 sembrestels

@sembrestels: can you explain that in more detail? Can I just add the full path to the session cookie and it would work within an iframe?

ghost avatar Dec 04 '11 18:12 ghost

What about reverse proxy rewriting the request? Will that fulfil your needs?

JohnMcLear avatar Feb 24 '12 14:02 JohnMcLear

Not sure whether you ask me, but now that I have understood better what reverse proxy does, I think it should do the trick. Still have sometimes issues with cookies (on the same domain), but that is due to my programming skills (or lack thereof) :)

ghost avatar Feb 25 '12 16:02 ghost

Sounds like reverse-proxying is the preferred solution here. Anyone opposed to this being rejected and closed?

jhollinger avatar Apr 10 '12 03:04 jhollinger

Ok, it can work with some apache configurations. Let's close it.

sembrestels avatar Apr 11 '12 13:04 sembrestels