-
Notifications
You must be signed in to change notification settings - Fork 10
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
This package contains a serious security hole. #1
Comments
@skx Also published [email protected]. Please verify if you still see some issue. |
I suspect the regular expression is more complex than it needs to be, but otherwise I don't see anything to complain about. Thanks for your prompt attention. |
Good job @skx :) |
@fgeek Thanks. I'm still trying to solve a general problem with async DNS replies - blogspam.js #25 - and thought this library might be useful. Unfortunately the overhead of running a command for each lookup is too high so I had to rule it out. |
@skx, agreed this is bit slow since it's spawning a process to make DNS sync. Right now my use case is to resolve the DNS only on server startup, so it fits well. Let me know if you find a better solution. I am welcome to ideas. |
Consider the following code:
The library is loaded. The function
resolve
is called, which contains this code:So the end result is a call to a command like:
The shell expands that, by executing "
/usr/bin/id > /tmp/foo
" - et voila arbitrary command execution, triggered by a DNS lookup.The text was updated successfully, but these errors were encountered: