-
Notifications
You must be signed in to change notification settings - Fork 18
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
Provide examples how to do os.OpenFile
securely after SecureJoin()
#12
Comments
There is no safe way to do this with To see a pure Go implemention, the implementation of It might be worth exposing the safer implementation of |
Sorry, it's not correct to say "there is no safe way", it's just that it's inadvisable to try to patch around You could do However:
Given the last two issues, I'm not sure whether you could say that is a "safe way" of doing it... |
#15 is an implementation of |
Thanks for this package!
As you noted in the README, using
SecureJoin()
beforeos.OpenFile()
is not always enough if the path components are modified between the 2 functions.Do you know of Go projects doing this safely?
The text was updated successfully, but these errors were encountered: