Description
The backmeup npm package assembles shell command strings by directly concatenating its option values (name, source, destination, filter) - e.g. cmd = "mkdir -p " + path.join(info.destination, info.name) + "; " - and executes the resulting string through a shell via ssh2-exec (locally via child_process, or remotely via SSH when an ssh handle is supplied), rather than using execFile/spawn with an argument array.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| adaltas | backmeup | ≤ 0.0.2 | — |
References
- https://github.com/adaltas/node-backmeup third-party-advisory