-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cider-jack-in starts a network repl that listens on all interfaces without authentication #2482
Comments
I thought that You can also check nrepl/nrepl#46 where we're working on adding some basic local authorization mechanism for nREPL. |
Ops, turns out that's actually
Isn't this the same as just removing |
Yes, removing :host seems to do the same thing. Good that there is authorization coming! |
Use localhost instead.
Btw, I just remembered we did this change because of that bug report https://dev.clojure.org/jira/browse/NREPL-83 Now I'm really puzzled what's the best approach here, as it seems that |
Nice find, @bbatsov! I would not have been suspecting that this issue is connected to my usage of
The address
|
I need to add that even if I remove the |
@hanshuebner Likely because starting with 0.2.13 |
I see. It seems that there is no way to listen just for the two localhost addresses (::1 and 127.0.0.1) and I've tried to add |
Fixed in nREPL as well. |
This is a security vulnerability as there is no authentication. As I understand it, CIDER now lets anyone from the internet connect to the REPL and execute code. Leiningen doesn't seem to have this problem, there "lein repl :headless" uses localhost by default.
(Allowing any user/process from localhost to run code without authentication is also a vulnerability but a smaller one.)
I installed cider from melpa unstable last week, cider-version returns "CIDER 0.18.1snapshot (package: 20180930.1836)"
I don't know elisp but are the default values in defcustom on the first line? In this case, the line at
cider/cider.el
Line 111 in a5cbaef
The text was updated successfully, but these errors were encountered: