Repository navigation
Conversation
|
Thanks zanchey, I'll give this a try tomorrow |
There was a problem hiding this comment.
This line fails to parse cookies correctly if localhost has set any other cookie than com.fishshell.auth.
- Require an authentication cookie for all requests. - Add a '/start/' handler for setting the authentication cookie. - Use a redirect file to avoid exposing the '/start' URL on the command line, as it contains the cookie value. Fix for CVE-2014-2914. Closes fish-shell#1438.
|
It is possible to do this without using cookies? I can imagine rather complicated attacks that hijack localhost cookies. This whole thing is just one page, right? What prevents part of the query string from being used for this purpose? |
|
Do you mean something along the lines of wait until fish_config is running, entice user to another webserver running on the local machine and use that to snarf the session cookie? I suspect CUPS is vulnerable to the same problem, because they use a session cookie as well. We could add a query string, but that requires teaching the front end to add it to all GET requests and also as part of all POST requests. I'll look into that. |
|
For the record, this seems to work correctly on Mavericks. It launches correctly, other sessions see Access Denied, and there are no visible secrets. |
- Require all requests to use a session path. - Use a redirect file to avoid exposing the '/start' URL on the command line, as it contains the cookie value. Fix for CVE-2014-2914. Closes fish-shell#1438.
|
I tried adding a query string, but it rapidly made the code very complicated, so instead I've just implemented a change that bases the whole server out of |
|
Merged to master here: Not yet merged to Integration_2.1.1. |
This is a fix for CVE-2014-2914 (#1438) which allows us to be more secure in the way we accept web_config requests.
I would appreciate any testing before I merge to master and Integration_2.1.1. I've tried on Debian with Iceweasel 24.7.0 (close to Firefox 24.7.0) and Chrome (36.0.1985.125).
In particular:
/start/URLs.