mock2easy@0.0.11 vulnerabilities

##什么是mock2easy?

Direct Vulnerabilities

Known vulnerabilities in the mock2easy package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • C
Command Injection

Affected versions of this package are vulnerable to Command Injection a malicious user could inject commands through the _data variable:

Affected Area

    require('../server/getJsonByCurl')(mock2easy, function (error, stdout) {
      if (error) {
        return  res.json(500, error);
      }
      res.json(JSON.parse(stdout));
    }, '', _data.interfaceUrl, query, _data.cookie,_data.interfaceType);

How to fix Command Injection?

There is no fixed version for mock2easy.

*
  • M
Arbitrary Code Injection

mock2easy dynamically generates static interfaces, making them live with MockJSmongui.

Affected versions of the package are vulnerable to Arbitrary Code Injection due to unsafe use of the eval() function. Node.js provides the eval() function by default, and is used to translate strings into Javascript code. An attacker can craft a malicious payload to inject arbitrary commands.

How to fix Arbitrary Code Injection?

There is no fix version for mock2easy.

*