Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc0eGotd2NxNi1xd3g1

Code injection in mock2easy

This affects all versions up to and including version 0.0.24 of package mock2easy. 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);```
Permalink: https://github.com/advisories/GHSA-g4xj-wcq6-qwx5
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWc0eGotd2NxNi1xd3g1
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 3 years ago
Updated: 8 months ago


CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Identifiers: GHSA-g4xj-wcq6-qwx5, CVE-2020-7697
References: Repository: https://github.com/appLhui/mock2easy
Blast Radius: 10.6

Affected Packages

npm:mock2easy
Dependent packages: 9
Dependent repositories: 12
Downloads: 121 last month
Affected Version Ranges: <= 0.0.24
No known fixed version
All affected versions: 0.0.1, 0.0.2, 0.0.3, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24