From 5538076bbd95a0239a83ab7f06ade0fd846bea63 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:39:13 +0000 Subject: [PATCH] Publish Advisories GHSA-5f4x-hwv2-w9w2 GHSA-hxgm-ghmv-xjjm --- .../GHSA-5f4x-hwv2-w9w2.json | 35 ++++++++-- .../GHSA-hxgm-ghmv-xjjm.json | 68 +++++++++++++++++++ 2 files changed, 99 insertions(+), 4 deletions(-) rename advisories/{unreviewed => github-reviewed}/2024/07/GHSA-5f4x-hwv2-w9w2/GHSA-5f4x-hwv2-w9w2.json (62%) create mode 100644 advisories/github-reviewed/2024/07/GHSA-hxgm-ghmv-xjjm/GHSA-hxgm-ghmv-xjjm.json diff --git a/advisories/unreviewed/2024/07/GHSA-5f4x-hwv2-w9w2/GHSA-5f4x-hwv2-w9w2.json b/advisories/github-reviewed/2024/07/GHSA-5f4x-hwv2-w9w2/GHSA-5f4x-hwv2-w9w2.json similarity index 62% rename from advisories/unreviewed/2024/07/GHSA-5f4x-hwv2-w9w2/GHSA-5f4x-hwv2-w9w2.json rename to advisories/github-reviewed/2024/07/GHSA-5f4x-hwv2-w9w2/GHSA-5f4x-hwv2-w9w2.json index ab8179f2937..868811ebf03 100644 --- a/advisories/unreviewed/2024/07/GHSA-5f4x-hwv2-w9w2/GHSA-5f4x-hwv2-w9w2.json +++ b/advisories/github-reviewed/2024/07/GHSA-5f4x-hwv2-w9w2/GHSA-5f4x-hwv2-w9w2.json @@ -1,20 +1,43 @@ { "schema_version": "1.4.0", "id": "GHSA-5f4x-hwv2-w9w2", - "modified": "2024-07-05T00:31:07Z", + "modified": "2024-07-08T18:38:39Z", "published": "2024-07-05T00:31:07Z", "aliases": [ "CVE-2024-39943" ], + "summary": "rejetto HFS vulnerable to OS Command Execution by remote authenticated users", "details": "rejetto HFS (aka HTTP File Server) 3 before 0.52.10 on Linux, UNIX, and macOS allows OS command execution by remote authenticated users (if they have Upload permissions). This occurs because a shell is used to execute df (i.e., with execSync instead of spawnSync in child_process in Node.js).", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N" } ], "affected": [ - + { + "package": { + "ecosystem": "npm", + "name": "hfs" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.10" + } + ] + } + ] + } ], "references": [ { @@ -25,6 +48,10 @@ "type": "WEB", "url": "https://github.com/rejetto/hfs/commit/305381bd36eee074fb238b64302a252668daad1d" }, + { + "type": "PACKAGE", + "url": "https://github.com/rejetto/hfs" + }, { "type": "WEB", "url": "https://github.com/rejetto/hfs/compare/v0.52.9...v0.52.10" @@ -40,8 +67,8 @@ "CWE-78" ], "severity": "CRITICAL", - "github_reviewed": false, - "github_reviewed_at": null, + "github_reviewed": true, + "github_reviewed_at": "2024-07-08T18:38:39Z", "nvd_published_at": "2024-07-04T23:15:09Z" } } \ No newline at end of file diff --git a/advisories/github-reviewed/2024/07/GHSA-hxgm-ghmv-xjjm/GHSA-hxgm-ghmv-xjjm.json b/advisories/github-reviewed/2024/07/GHSA-hxgm-ghmv-xjjm/GHSA-hxgm-ghmv-xjjm.json new file mode 100644 index 00000000000..4f7add9ccaf --- /dev/null +++ b/advisories/github-reviewed/2024/07/GHSA-hxgm-ghmv-xjjm/GHSA-hxgm-ghmv-xjjm.json @@ -0,0 +1,68 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-hxgm-ghmv-xjjm", + "modified": "2024-07-08T18:37:54Z", + "published": "2024-07-08T18:37:54Z", + "aliases": [ + "CVE-2024-39701" + ], + "summary": "Directus incorrectly handles `_in` filter", + "details": "### Summary\nDirectus >=9.23.0, <=v10.5.3 improperly handles _in, _nin operators.\nIt evaluates empty arrays as valid so expressions like {\"role\": {\"_in\": $CURRENT_USER.some_field}} would evaluate to true allowing the request to pass.\n\n### Details\nThis results in Broken Access Control because the rule fails to do what it was intended to do: Pass rule if **field** matches any of the **values**. ref: https://docs.directus.io/reference/filter-rules.html#filter-operators\nIn my example this would translate to \"Pass rule if **.role** matches any of **[]**\". Which should fail. This instead passes in Directus <= v10.5.3, >=v9.23.0\n\n### PoC\n{\"role\": {\"_in\": $CURRENT_USER.some_field}} field validation would pass if $CURRENT_USER.some_field is null.\n\nReal scenario: Using https://github.com/u12206050/directus-extension-role-chooser with the specified versions of Directus (I tested on 10.0.0) allows users with access to this feature set their role to whatever role if they don't have any roles assigned (user_roles.role is left with the default value, null) despite the validation rule being \n```yaml\nvalidation:\n role:\n _in: $CURRENT_USER.user_roles.role\n```\nLatest version of Directus (v10.8.3 and above) handles the above validation rule correctly.\n\n### Impact\nPermissions fail to open for setups relying on this filter and can lead to users getting access to things they're not supposed to.\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "directus" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.23.0" + }, + { + "fixed": "10.6.0" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 10.5.3" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/directus/directus/security/advisories/GHSA-hxgm-ghmv-xjjm" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-39701" + }, + { + "type": "PACKAGE", + "url": "https://github.com/directus/directus" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-284" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-07-08T18:37:54Z", + "nvd_published_at": "2024-07-08T17:15:11Z" + } +} \ No newline at end of file