You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a temp file or directory that is unique to a given buildpack id/version, we should not name it with the raw strings (since they could be invalid file/dir names, or even open us to a directory traversal attack). Instead we should always hash them with something like:
h := sha1.New()
io.WriteString(h, buildpackId)
sha := h.Sum(nil)
When creating a temp file or directory that is unique to a given buildpack id/version, we should not name it with the raw strings (since they could be invalid file/dir names, or even open us to a directory traversal attack). Instead we should always hash them with something like:
See #112
The text was updated successfully, but these errors were encountered: