原始 OSV JSON
{
"id": "GHSA-g4xj-wcq6-qwx5",
"aliases": [
"CVE-2020-7697"
],
"details": "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: \n\nAffected Area\n\n```js\nrequire('../server/getJsonByCurl')(mock2easy, function(error, stdout) {\n if (error) {\n return res.json(500, error);\n }\n res.json(JSON.parse(stdout));\n}, '', _data.interfaceUrl, query, _data.cookie, _data.interfaceType);```",
"summary": "Code injection in mock2easy",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.0.24"
}
]
}
],
"package": {
"name": "mock2easy",
"ecosystem": "npm"
}
}
],
"modified": "2023-09-08T19:29:12Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"published": "2021-05-06T18:25:58Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7697",
"type": "ADVISORY"
},
{
"url": "https://github.com/appLhui/mock2easy/blob/1da728fa0f61cc29fb415f0677e54ad4902261d3/routes/index.js#L132-L139",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-MOCK2EASY-572312",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/package/mock2easy",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-77"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": "2020-07-29T13:15:00Z",
"github_reviewed_at": "2021-05-06T18:23:33Z"
}
}