From a55771c3f741faa452c97d61319377bb1bd059a5 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 8 May 2024 14:02:48 +0000 Subject: [PATCH] Publish Advisories GHSA-qmmm-73r2-f8xr GHSA-vjwg-28gv-pm8h GHSA-299q-3p96-5898 --- .../GHSA-qmmm-73r2-f8xr.json | 4 +-- .../GHSA-vjwg-28gv-pm8h.json | 25 ++++++++++++++++--- .../GHSA-299q-3p96-5898.json | 6 ++--- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/advisories/github-reviewed/2024/04/GHSA-qmmm-73r2-f8xr/GHSA-qmmm-73r2-f8xr.json b/advisories/github-reviewed/2024/04/GHSA-qmmm-73r2-f8xr/GHSA-qmmm-73r2-f8xr.json index 73809371d86..dbcc6a23f7f 100644 --- a/advisories/github-reviewed/2024/04/GHSA-qmmm-73r2-f8xr/GHSA-qmmm-73r2-f8xr.json +++ b/advisories/github-reviewed/2024/04/GHSA-qmmm-73r2-f8xr/GHSA-qmmm-73r2-f8xr.json @@ -1,10 +1,10 @@ { "schema_version": "1.4.0", "id": "GHSA-qmmm-73r2-f8xr", - "modified": "2024-04-25T16:50:26Z", + "modified": "2024-05-08T14:01:46Z", "published": "2024-04-22T18:38:11Z", "aliases": [ - + "CVE-2024-34347" ], "summary": "@hoppscotch/cli affected by Sandbox Escape in @hoppscotch/js-sandbox leads to RCE", "details": "### Observations\n\nThe Hoppscotch desktop app takes multiple precautions to be secure against arbitrary JavaScript and system command execution. It does not render user-controlled HTML or Markdown, uses Tauri instead of Electron, and sandboxes pre-request scripts with a simple yet secure implementation using web workers.\n\nUnfortunately, web workers are not available in a pure Node.js application like Hoppscotch CLI. That is why the [@hoppscotch/js-sandbox](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-js-sandbox) package also provides a Javascript sandbox that uses the Node.js `vm` module. However, the `vm` module is not safe for sandboxing untrusted Javascript code, as stated [in the documentation](https://nodejs.org/api/vm.html#vm-executing-javascript). This is because [code inside the vm context can break out](https://thegoodhacker.com/posts/the-unsecure-node-vm-module/) if it can get a hold of any reference to an object created outside of the vm.\n\nIn the case of @hoppscotch/js-sandbox, multiple references to external objects are passed into the vm context to allow pre-request scripts interactions with environment variables and more. But this also allows the pre-request script to escape the sandbox.\n[packages/hoppscotch-js-sandbox/src/pre-request/node-vm/index.ts](https://github.com/hoppscotch/hoppscotch/blob/faab1d20fde9a6be660db40fc73dcf28f9038008/packages/hoppscotch-js-sandbox/src/pre-request/node-vm/index.ts#L23-L31)\n```js\nconst { pw, updatedEnvs } = getPreRequestScriptMethods(envs)\n\n// Expose pw to the context\ncontext.pw = pw\ncontext.atob = atob\ncontext.btoa = btoa\n\n// Run the pre-request script in the provided context\nrunInContext(preRequestScript, context)\n```\n\n### Exploitation\n\nAn attacker can use the exposed `pw` object reference to escape the sandbox and execute arbitrary system commands using the `child_process` Node.js module. This PoC pre-request script executes the `id > /tmp/pwnd` system command as soon as a request is sent.\n```js\noutside = pw.constructor.constructor('return this')()\noutside.process.mainModule.require('child_process').execSync('id > /tmp/pwnd')\n```\nAn attacker who wants to run arbitrary code on the machine of a victim can create a Hoppscotch collection containing a request with a malicious pre-request script and share it with a victim, using the JSON export feature. The victim then has to run the collection with the Hoppscotch CLI. Then the malicious pre-request script executes.\n\n### Impact\n\nThis attack gives an attacker arbitrary command execution on the machine of a victim Hoppscotch CLI user. For the attack to succeed, an attacker has to lure the victim into downloading a malicious Hoppscotch collection and running it with the Hoppscotch CLI.\n\nThis issue does not impact Hoppscotch Web or Desktop, as they use the safe web worker sandboxing approach.\n\n### Recommendations\n\nHoppscotch CLI and other tools that rely on @hoppscotch/js-sandbox but don't have access to a browser cannot use the web worker sandbox. For these, you can look into other safe JavaScript sandboxing libraries. We think that [isolated-vm](https://github.com/laverdet/isolated-vm) looks promising. We discourage the use of [vm2](https://github.com/patriksimek/vm2), which is deprecated because it has arbitrary bypasses. Alternatively, you can introduce an `--enable-scripting` flag for the CLI and disable scripting by default. Or you can change the threat model and educate users that they should not run untrusted collections as it can lead to RCE.\n\n\n### Differences from existing CVEs\n- [nvd.nist.gov/vuln/detail/CVE-2023-37466](https://nvd.nist.gov/vuln/detail/CVE-2023-37466) : This CVE is regarding an escape of vm2 which we do not even use.", diff --git a/advisories/github-reviewed/2024/04/GHSA-vjwg-28gv-pm8h/GHSA-vjwg-28gv-pm8h.json b/advisories/github-reviewed/2024/04/GHSA-vjwg-28gv-pm8h/GHSA-vjwg-28gv-pm8h.json index c84708eba8c..e2eba050557 100644 --- a/advisories/github-reviewed/2024/04/GHSA-vjwg-28gv-pm8h/GHSA-vjwg-28gv-pm8h.json +++ b/advisories/github-reviewed/2024/04/GHSA-vjwg-28gv-pm8h/GHSA-vjwg-28gv-pm8h.json @@ -1,13 +1,13 @@ { "schema_version": "1.4.0", "id": "GHSA-vjwg-28gv-pm8h", - "modified": "2024-04-24T17:02:33Z", + "modified": "2024-05-08T14:01:01Z", "published": "2024-04-24T17:02:33Z", "aliases": [ ], "summary": "Pimcore TinyMCE Bundle - tinymce CVE-2024-29203, CVE-2024-29881", - "details": "### Impact\nThe TineMCE Bundle uses tinymce version 6.7.3. CVEs for this version exists for <6.8.1:\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29203\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29881\n\n### Patches\nThe package should be updated to at least 6.8.1 to avoid XSS vulnerability.\n\n### Workarounds\nUpgrade pimcore to release 11.2.3.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29203\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29881\n", + "details": "### Impact\nThe TineMCE Bundle uses tinymce version 6.7.3. CVEs for this version exists for <6.8.1:\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29203\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29881\n\n### Patches\nThe package should be updated to at least 6.8.1 to avoid XSS vulnerability.\n\n### Workarounds\nUpgrade pimcore to release 11.2.3 or 11.1.6.5.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29203\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-29881\n", "severity": [ { "type": "CVSS_V3", @@ -25,7 +25,7 @@ "type": "ECOSYSTEM", "events": [ { - "introduced": "11.0.0-ALPHA1" + "introduced": "11.2.0" }, { "fixed": "11.2.3" @@ -33,6 +33,25 @@ ] } ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "pimcore/pimcore" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "11.0.0-ALPHA1" + }, + { + "fixed": "11.1.6.5" + } + ] + } + ] } ], "references": [ diff --git a/advisories/github-reviewed/2024/05/GHSA-299q-3p96-5898/GHSA-299q-3p96-5898.json b/advisories/github-reviewed/2024/05/GHSA-299q-3p96-5898/GHSA-299q-3p96-5898.json index 64c57ec4452..8f10d7d7477 100644 --- a/advisories/github-reviewed/2024/05/GHSA-299q-3p96-5898/GHSA-299q-3p96-5898.json +++ b/advisories/github-reviewed/2024/05/GHSA-299q-3p96-5898/GHSA-299q-3p96-5898.json @@ -1,13 +1,13 @@ { "schema_version": "1.4.0", "id": "GHSA-299q-3p96-5898", - "modified": "2024-05-07T16:53:40Z", + "modified": "2024-05-08T14:01:40Z", "published": "2024-05-07T15:30:36Z", "aliases": [ "CVE-2024-28148" ], "summary": "Apache Superset Incorrect Authorization vulnerability", - "details": "An authenticated user could potentially access metadata for a datasource they are not authorized to view by submitting a targeted REST API request. This issue affects Apache Superset before 4.0.0.\n\nUsers are recommended to upgrade to version 4.0.0, which fixes the issue.\n\n", + "details": "An authenticated user could potentially access metadata for a datasource they are not authorized to view by submitting a targeted REST API request. This issue affects Apache Superset before 3.1.2.\n\nUsers are recommended to upgrade to version 3.1.2 or above, which fixes the issue.\n\n", "severity": [ { "type": "CVSS_V3", @@ -28,7 +28,7 @@ "introduced": "0" }, { - "fixed": "4.0.0" + "fixed": "3.1.2" } ] }