From 87ada42239100119e95d35cfabde4c5736f3e8c8 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 19:44:40 +0000 Subject: [PATCH] Publish Advisories GHSA-cff8-x7jv-4fm8 GHSA-cm22-4g7w-348p GHSA-m6fv-jmcg-4jfg GHSA-pw44-4h99-wqff --- .../GHSA-cff8-x7jv-4fm8.json | 134 ++++++++++++++++++ .../GHSA-cm22-4g7w-348p.json | 92 ++++++++++++ .../GHSA-m6fv-jmcg-4jfg.json | 69 +++++++++ .../GHSA-pw44-4h99-wqff.json | 74 ++++++++++ 4 files changed, 369 insertions(+) create mode 100644 advisories/github-reviewed/2024/09/GHSA-cff8-x7jv-4fm8/GHSA-cff8-x7jv-4fm8.json create mode 100644 advisories/github-reviewed/2024/09/GHSA-cm22-4g7w-348p/GHSA-cm22-4g7w-348p.json create mode 100644 advisories/github-reviewed/2024/09/GHSA-m6fv-jmcg-4jfg/GHSA-m6fv-jmcg-4jfg.json create mode 100644 advisories/github-reviewed/2024/09/GHSA-pw44-4h99-wqff/GHSA-pw44-4h99-wqff.json diff --git a/advisories/github-reviewed/2024/09/GHSA-cff8-x7jv-4fm8/GHSA-cff8-x7jv-4fm8.json b/advisories/github-reviewed/2024/09/GHSA-cff8-x7jv-4fm8/GHSA-cff8-x7jv-4fm8.json new file mode 100644 index 00000000000..aa1fcf77164 --- /dev/null +++ b/advisories/github-reviewed/2024/09/GHSA-cff8-x7jv-4fm8/GHSA-cff8-x7jv-4fm8.json @@ -0,0 +1,134 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-cff8-x7jv-4fm8", + "modified": "2024-09-10T19:43:00Z", + "published": "2024-09-10T19:43:00Z", + "aliases": [ + "CVE-2024-45596" + ], + "summary": "Session is cached for OpenID and OAuth2 if `redirect` is not used", + "details": "### Summary\nUnauthenticated user can access credentials of last authenticated user via OpenID or OAuth2 where the authentication URL did not include `redirect` query string.\n\nFor example:\n- Project is configured with OpenID or OAuth2\n- Project is configured with cache enabled\n- User tries to login via SSO link, but without `redirect` query string\n- After successful login, credentials are cached\n- If an unauthenticated user tries to login via SSO link, it will return the credentials of the other last user\n\nThe SSO link is something like `https://directus.example.com/auth/login/openid/callback`, where `openid` is the name of the OpenID provider configured in Directus\n\n### Details\nThis happens because on that endpoint for both OpenId and Oauth2 Directus is using the `respond` middleware, which by default will try to cache GET requests that met some conditions. Although, those conditions do not include this scenario, when an unauthenticated request returns user credentials.\nFor OpenID, this can be seen here:\nhttps://github.com/directus/directus/blob/main/api/src/auth/drivers/openid.ts#L453-L459\nAnd for OAuth2 can be seen here\nhttps://github.com/directus/directus/blob/main/api/src/auth/drivers/oauth2.ts#L422-L428\n\n### PoC\n- Create a new Directus project\n- Set `CACHE_ENABLED` to true\n- Set `CACHE_STORE` to `redis` for reliable results (if using memory with multiple nodes, it may only happen sometimes, due to cache being different for different nodes)\n- Configure `REDIS` with redis string or redis host, port, user, etc.\n- Set `AUTH_PROVIDERS` to `openid`\n- Set `PUBLIC_URL` to the the main URL of your project . \tFor example, `PUBLIC_URL: http://localhost:8055`\n- Configure `AUTH_OPENID_CLIENT_ID`, `AUTH_OPENID_CLIENT_SECRET`, `AUTH_OPENID_ISSUER_URL` with proper OpenID configurations\n- Be sure that on OpenID external app you have configured Redirect URI to `http://localhost:8055/auth/login/openid/callback`\n- Run Directus\n- Open the SSO link like `http://localhost:8055/auth/login/openid/callback`\n- Do the authentication on the OpenID external webpage\n- Verify that it you got redirected to a page with a JSON including `access_token` property\n- Be sure all anonymous mode windows are closed\n- Open an anonymous window and go to the SSO Link `http://localhost:8055/auth/login/openid/callback` and see you have the same credentials, even though you don't have any session because you are in anonymous mode\n\n### Impact\nAll projects using OpenID or OAuth 2, that does not include `redirect` query string on loggin in users.\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "directus" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "10.13.3" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "directus" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "11.0.0-rc.1" + }, + { + "fixed": "11.1.0" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@directus/api" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "21.0.1" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "@directus/api" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "22.0.0" + }, + { + "fixed": "22.2.0" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/directus/directus/security/advisories/GHSA-cff8-x7jv-4fm8" + }, + { + "type": "WEB", + "url": "https://github.com/directus/directus/commit/4aace0bbe57232e38cd6a287ee475293e46dc91b" + }, + { + "type": "WEB", + "url": "https://github.com/directus/directus/commit/769fa22797bff5a9231599883b391e013f122e52" + }, + { + "type": "PACKAGE", + "url": "https://github.com/directus/directus" + }, + { + "type": "WEB", + "url": "https://github.com/directus/directus/blob/main/api/src/auth/drivers/oauth2.ts#L422-L428" + }, + { + "type": "WEB", + "url": "https://github.com/directus/directus/blob/main/api/src/auth/drivers/openid.ts#L453-L459" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-384" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-09-10T19:43:00Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/09/GHSA-cm22-4g7w-348p/GHSA-cm22-4g7w-348p.json b/advisories/github-reviewed/2024/09/GHSA-cm22-4g7w-348p/GHSA-cm22-4g7w-348p.json new file mode 100644 index 00000000000..22e3d2afdf1 --- /dev/null +++ b/advisories/github-reviewed/2024/09/GHSA-cm22-4g7w-348p/GHSA-cm22-4g7w-348p.json @@ -0,0 +1,92 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-cm22-4g7w-348p", + "modified": "2024-09-10T19:42:33Z", + "published": "2024-09-10T19:42:33Z", + "aliases": [ + "CVE-2024-43800" + ], + "summary": "serve-static vulnerable to template injection that can lead to XSS", + "details": "### Impact\n\npassing untrusted user input - even after sanitizing it - to `redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in serve-static 1.16.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "serve-static" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.0" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "serve-static" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.0.0" + }, + { + "fixed": "2.1.0" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/expressjs/serve-static/security/advisories/GHSA-cm22-4g7w-348p" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-43800" + }, + { + "type": "WEB", + "url": "https://github.com/expressjs/serve-static/commit/0c11fad159898cdc69fd9ab63269b72468ecaf6b" + }, + { + "type": "WEB", + "url": "https://github.com/expressjs/serve-static/commit/ce730896fddce1588111d9ef6fdf20896de5c6fa" + }, + { + "type": "PACKAGE", + "url": "https://github.com/expressjs/serve-static" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-09-10T19:42:33Z", + "nvd_published_at": "2024-09-10T15:15:17Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/09/GHSA-m6fv-jmcg-4jfg/GHSA-m6fv-jmcg-4jfg.json b/advisories/github-reviewed/2024/09/GHSA-m6fv-jmcg-4jfg/GHSA-m6fv-jmcg-4jfg.json new file mode 100644 index 00000000000..e3694465fac --- /dev/null +++ b/advisories/github-reviewed/2024/09/GHSA-m6fv-jmcg-4jfg/GHSA-m6fv-jmcg-4jfg.json @@ -0,0 +1,69 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-m6fv-jmcg-4jfg", + "modified": "2024-09-10T19:42:41Z", + "published": "2024-09-10T19:42:41Z", + "aliases": [ + "CVE-2024-43799" + ], + "summary": "send vulnerable to template injection that can lead to XSS", + "details": "### Impact\n\npassing untrusted user input - even after sanitizing it - to `SendStream.redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in send 0.19.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "send" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.19.0" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/pillarjs/send/security/advisories/GHSA-m6fv-jmcg-4jfg" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-43799" + }, + { + "type": "WEB", + "url": "https://github.com/pillarjs/send/commit/ae4f2989491b392ae2ef3b0015a019770ae65d35" + }, + { + "type": "PACKAGE", + "url": "https://github.com/pillarjs/send" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-09-10T19:42:41Z", + "nvd_published_at": "2024-09-10T15:15:17Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/09/GHSA-pw44-4h99-wqff/GHSA-pw44-4h99-wqff.json b/advisories/github-reviewed/2024/09/GHSA-pw44-4h99-wqff/GHSA-pw44-4h99-wqff.json new file mode 100644 index 00000000000..6d27ad2917e --- /dev/null +++ b/advisories/github-reviewed/2024/09/GHSA-pw44-4h99-wqff/GHSA-pw44-4h99-wqff.json @@ -0,0 +1,74 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-pw44-4h99-wqff", + "modified": "2024-09-10T19:42:56Z", + "published": "2024-09-10T19:42:56Z", + "aliases": [ + "CVE-2024-45595" + ], + "summary": "D-Tale vulnerable to Remote Code Execution through the Query input on Chart Builder", + "details": "### Impact\nUsers hosting D-Tale publicly can be vulnerable to remote code execution allowing attackers to run malicious code on the server.\n\n### Patches\nUsers should upgrade to version 3.14.1 where the \"Custom Filter\" input is turned off by default. You can find out more information on how to turn it back on [here](https://github.com/man-group/dtale#custom-filter)\n\n### Workarounds\nThe only workaround for versions earlier than 3.14.1 is to only host D-Tale to trusted users.\n\n### References\nSee \"Custom Filter\" [documentation](https://github.com/man-group/dtale#custom-filter)\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "dtale" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "3.14.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/man-group/dtale/security/advisories/GHSA-pw44-4h99-wqff" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-45595" + }, + { + "type": "WEB", + "url": "https://github.com/man-group/dtale/commit/b6e30969390520d1400b55acbb13e5487b8472e8" + }, + { + "type": "PACKAGE", + "url": "https://github.com/man-group/dtale" + }, + { + "type": "WEB", + "url": "https://github.com/man-group/dtale#custom-filter" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-74", + "CWE-79" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-09-10T19:42:56Z", + "nvd_published_at": "2024-09-10T16:15:21Z" + } +} \ No newline at end of file