


























The gits npm package describes itself as a Local promise-returning git command wrappers for Node.js. Attempts to contact the maintainer through the GitHub repository through an open issue were not responded to, and the vulnerability remains unpatched.
Resources:
I’m reporting an Argument Injection vulnerability in gits npm package.
This vulnerability manifests with the library’s clone(dir, repo, branch, cwd) API,
which allows user input to specify the branch, repo, and other metadata. When some
of that input to the function is controlled by the user, it may cause a command
injection.
gits@0.1.8 or earlier/tmp/balloon to hold the repository to clone tovar gits = require("gits");
gits.clone(
"/tmp/balloon",
"file:///tmp/none",
"master",
"--upload-pack=touch /tmp/abcd"
);
/tmp/abcd此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。