2019-dec sec release post-announcement#2838
Merged
sam-github merged 7 commits intomasterfrom Dec 18, 2019
Merged
Conversation
3dcb49c to
37c02ae
Compare
Contributor
Author
|
@nodejs/tsc @nodejs/security |
37c02ae to
0abe334
Compare
Trott
reviewed
Dec 18, 2019
0abe334 to
960b209
Compare
cjihrig
approved these changes
Dec 18, 2019
Co-Authored-By: Colin Ihrig <cjihrig@gmail.com>
Co-Authored-By: Colin Ihrig <cjihrig@gmail.com>
Co-Authored-By: Colin Ihrig <cjihrig@gmail.com>
Co-Authored-By: Colin Ihrig <cjihrig@gmail.com>
Co-Authored-By: Colin Ihrig <cjihrig@gmail.com>
Co-Authored-By: Colin Ihrig <cjihrig@gmail.com>
evilpacket
reviewed
Dec 18, 2019
|
|
||
| ### Arbitrary File Write | ||
|
|
||
| Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It fails to prevent access to folders outside of the intended `node_modules` folder through the `bin` field. A properly constructed entry in the package.json `bin` field would allow a package publisher to modify and/or gain access to arbitrary files on a user’s system when the package is installed. It is only possible to affect files that the user running `npm install` has access to. |
There was a problem hiding this comment.
A slight clarification: It is not possibly to overwrite files or modify files. You are only able to places files in locations that already do not exist. It is not possible to "gain access to arbitrary files" this is all about writing.
Contributor
Author
There was a problem hiding this comment.
@evilpacket This is verbatim copied from the npm vulnerability report, the link to which is provided a few lines down. Please provide this feedback to npm, inc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note that vulnerability descriptions are verbatim from the npm vulnerability descriptions.