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-qwx5JSON: 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:
- https://nvd.nist.gov/vuln/detail/CVE-2020-7697
- https://snyk.io/vuln/SNYK-JS-MOCK2EASY-572312
- https://www.npmjs.com/package/mock2easy
- https://github.com/appLhui/mock2easy/blob/1da728fa0f61cc29fb415f0677e54ad4902261d3/routes/index.js#L132-L139
- https://github.com/advisories/GHSA-g4xj-wcq6-qwx5
Blast Radius: 10.6
Affected Packages
npm:mock2easy
Dependent packages: 9Dependent 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