GHSA-G4XJ-WCQ6-QWX5
Vulnerability from github – Published: 2021-05-06 18:25 – Updated: 2023-09-08 19:29
VLAI?
Summary
Code injection in mock2easy
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:
Affected Area
js
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);
Severity ?
9.8 (Critical)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "mock2easy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.0.24"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-7697"
],
"database_specific": {
"cwe_ids": [
"CWE-77"
],
"github_reviewed": true,
"github_reviewed_at": "2021-05-06T18:23:33Z",
"nvd_published_at": "2020-07-29T13:15:00Z",
"severity": "CRITICAL"
},
"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(\u0027../server/getJsonByCurl\u0027)(mock2easy, function(error, stdout) {\n if (error) {\n return res.json(500, error);\n }\n res.json(JSON.parse(stdout));\n}, \u0027\u0027, _data.interfaceUrl, query, _data.cookie, _data.interfaceType);```",
"id": "GHSA-g4xj-wcq6-qwx5",
"modified": "2023-09-08T19:29:12Z",
"published": "2021-05-06T18:25:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7697"
},
{
"type": "WEB",
"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"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Code injection in mock2easy"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…