-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
security problem in debug mode #8081
Comments
That is a known issue, see #3306 (comment), and will probably change again some day. Perhaps we can still do this for v7. We can't do that in release branches because it would be backwards incompatible but you can force it to bind to a local address with |
In previous versions node force use loopback |
Commit 2272052 ("net: bind to `::` TCP address by default") from April 2014 seems to have accidentally changed the default listen address from 127.0.0.1 to 0.0.0.0, a.k.a. the "any" address. From a security viewpoint it's undesirable to accept debug agent connections from anywhere so let's change that back. Users can override the default with the `--debug=<host>:<port>` switch. Fixes: nodejs#8081 PR-URL: nodejs#8106 Reviewed-By: James M Snell <jasnell@gmail.com>
I found a security problem that can be severe in debug mode
i run app in my server with --debug flag
check tcp listen
and i see this line
i check it by curl from other server, like this. (i change my ipv6 address)
and i get this
The text was updated successfully, but these errors were encountered: