diff --git a/advisories/github-reviewed/2024/02/GHSA-3qpq-6w89-f7mx/GHSA-3qpq-6w89-f7mx.json b/advisories/github-reviewed/2024/02/GHSA-3qpq-6w89-f7mx/GHSA-3qpq-6w89-f7mx.json new file mode 100644 index 00000000000..deb1d8a6c36 --- /dev/null +++ b/advisories/github-reviewed/2024/02/GHSA-3qpq-6w89-f7mx/GHSA-3qpq-6w89-f7mx.json @@ -0,0 +1,65 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-3qpq-6w89-f7mx", + "modified": "2024-02-20T23:44:20Z", + "published": "2024-02-20T23:44:20Z", + "aliases": [ + "CVE-2024-25625" + ], + "summary": "Pimcore Host Header Injection in user invitation link", + "details": "## Overview\n\nA potential security vulnerability discovered in `pimcore/admin-ui-classic-bundle` version up to v1.3.3 . The vulnerability involves a Host Header Injection in the `invitationLinkAction` function of the UserController, specifically in the way `$loginUrl` trusts user input. \n\n## Details\n\nThe host header from incoming HTTP requests is used unsafely when generating URLs. An attacker can manipulate the HTTP host header in requests to the /admin/user/invitationlink endpoint, resulting in the generation of URLs with the attacker's domain. \n\nIn fact, if a host header is injected in the POST request, the $loginURL parameter is constructed with this unvalidated host header. It is then used to send an invitation email to the provided user.\n\nHere is an excerpt from the affected section of UserController.php file:\n```\n// /src/Controller/Admin/UserController.php \n public function invitationLinkAction(Request $request, TranslatorInterface $translator): JsonResponse\n {\n // ..snip..\n $token = Tool\\Authentication::generateTokenByUser($user);\n $loginUrl = $this->generateCustomUrl([\n 'token' => $token,\n 'reset' => true,\n ]);\n\n try {\n $mail = Tool::getMail([$user->getEmail()], 'Pimcore login invitation for ' . Tool::getHostname());\n $mail->setIgnoreDebugMode(true);\n $mail->text(\"Login to pimcore and change your password using the following link. This temporary login link will expire in 24 hours: \\r\\n\\r\\n\" . $loginUrl);\n $mail->send();\n // ..snip..\n }\n // ..snip..\n private function generateCustomUrl(array $params, string $fallbackUrl = 'pimcore_admin_login_check', int $referenceType = UrlGeneratorInterface::ABSOLUTE_URL): string\n {\n try {\n $adminEntryPointRoute = $this->getParameter('pimcore_admin.custom_admin_route_name');\n\n //try to generate invitation link for custom admin point\n $loginUrl = $this->generateUrl($adminEntryPointRoute, $params, $referenceType);\n } catch (\\Exception $e) {\n //use default login check for invitation link\n $loginUrl = $this->generateUrl($fallbackUrl, $params, $referenceType);\n }\n\n return $loginUrl;\n }\n```\nThe $loginUrl variable is constructed using the generateCustomUrl function. If an attacker injects a malicious host header into a POST request, the resulting $loginUrl will include the malicious domain, and this link is then sent via email to the user.\n\n## Proof of Concept\n\nHere is an example of a request that exploits this vulnerability:\n```\nPOST /admin/user/invitationlink HTTP/1.1 \nHost: attacker-domain.evil \nCookie: PHPSESSID=test\nX-pimcore-extjs-version-major: 7\nX-pimcore-extjs-version-minor: 0\nX-Requested-With: XMLHttpRequest\nX-pimcore-csrf-token: 961c37cf60edfdc2eec5a705cb048aaa8c32804d\n\nusername=[username of a valid user]\n```\n\n\nThe URL in the email will look like: `http://attacker-domain.evil/admin/login/login?token=[TOKEN]`\n\n## Impact\n\nThis vulnerability can be used to perform phishing attacks by making the URLs in the invitation links emails point to an attacker-controlled domain.\n\n## Remediation\n\nWe recommend validating the host header and ensuring it matches the application's domain. It would also be beneficial to use a default trusted host or hostname if the incoming host header is not recognized or is absent.\n\nSimilar vulnerability (CVE-2024-23648) has been fixed in this project (https://github.com/pimcore/admin-ui-classic-bundle/commit/70f2205b5a5ea9584721d4f3e803f4d0dd5e4655)\n\n## Credit\n\nDiscovered by @v0lck3r (Oussama RAHALI), Feb 2024.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "pimcore/admin-ui-classic-bundle" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.3.4" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/pimcore/admin-ui-classic-bundle/security/advisories/GHSA-3qpq-6w89-f7mx" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25625" + }, + { + "type": "WEB", + "url": "https://github.com/pimcore/admin-ui-classic-bundle/commit/b9fee9d383fc73dbd5e1d98dbb0ff3266d6b5a82" + }, + { + "type": "PACKAGE", + "url": "https://github.com/pimcore/admin-ui-classic-bundle" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-74" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-02-20T23:44:20Z", + "nvd_published_at": "2024-02-19T16:15:52Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/02/GHSA-7496-fgv9-xw82/GHSA-7496-fgv9-xw82.json b/advisories/github-reviewed/2024/02/GHSA-7496-fgv9-xw82/GHSA-7496-fgv9-xw82.json new file mode 100644 index 00000000000..bdf6262153b --- /dev/null +++ b/advisories/github-reviewed/2024/02/GHSA-7496-fgv9-xw82/GHSA-7496-fgv9-xw82.json @@ -0,0 +1,69 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-7496-fgv9-xw82", + "modified": "2024-02-20T23:44:45Z", + "published": "2024-02-20T23:44:45Z", + "aliases": [ + "CVE-2024-25630" + ], + "summary": "Unencrypted ingress/health traffic when using Wireguard transparent encryption", + "details": "### Impact\n\nFor Cilium users who are using CRDs to store Cilium state (the default configuration) and [Wireguard transparent encryption](https://docs.cilium.io/en/stable/security/network/encryption-wireguard/#encryption-wg), responses from pods to the Ingress and health endpoints are not encrypted. Traffic from the Ingress and health endpoints to pods is not affected by this issue. The health endpoint is only used for Cilium's internal health checks.\n\n### Patches\n\nThis issue affects Cilium v1.14 before v1.14.7.\n\nThis issue has been patched in Cilium v1.14.7.\n\n### Workarounds\n\nThere is no workaround to this issue - affected users are encouraged to upgrade.\n\n### Acknowledgements\n\nThe Cilium community has worked together with members of Isovalent to prepare these mitigations. Special thanks to @gandro for their work on triaging and remediating this issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please reach out on [Slack](https://docs.cilium.io/en/latest/community/community/#slack).\n\nIf you think you have found a vulnerability affecting Cilium, we strongly encourage you to report it to our security mailing list at [security@cilium.io](mailto:security@cilium.io). This is a private mailing list where only members of the Cilium internal security team are subscribed to, and your report will be treated as top priority.\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Go", + "name": "github.com/cilium/cilium" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.14.7" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/cilium/cilium/security/advisories/GHSA-7496-fgv9-xw82" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25630" + }, + { + "type": "WEB", + "url": "https://docs.cilium.io/en/stable/security/network/encryption-wireguard/#encryption-wg" + }, + { + "type": "PACKAGE", + "url": "https://github.com/cilium/cilium" + }, + { + "type": "WEB", + "url": "https://github.com/cilium/cilium/releases/tag/v1.14.7" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-311" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-02-20T23:44:45Z", + "nvd_published_at": "2024-02-20T18:15:52Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2024/02/GHSA-x989-52fc-4vr4/GHSA-x989-52fc-4vr4.json b/advisories/github-reviewed/2024/02/GHSA-x989-52fc-4vr4/GHSA-x989-52fc-4vr4.json new file mode 100644 index 00000000000..dc961a5d014 --- /dev/null +++ b/advisories/github-reviewed/2024/02/GHSA-x989-52fc-4vr4/GHSA-x989-52fc-4vr4.json @@ -0,0 +1,73 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-x989-52fc-4vr4", + "modified": "2024-02-20T23:45:16Z", + "published": "2024-02-20T23:45:16Z", + "aliases": [ + "CVE-2024-25631" + ], + "summary": "Unencrypted traffic between pods when using Wireguard and an external kvstore", + "details": "### Impact\n\nFor Cilium users who have enabled [an external kvstore](https://docs.cilium.io/en/stable/installation/k8s-install-external-etcd/#when-do-i-need-to-use-a-kvstore) and [Wireguard transparent encryption](https://docs.cilium.io/en/stable/security/network/encryption-wireguard/#encryption-wg), traffic between pods in the affected cluster is not encrypted.\n\n### Patches\n\nThis issue affects Cilium v1.14 before v1.14.7.\n\nThis issue has been patched in Cilium v1.14.7.\n\n### Workarounds\n\nThere is no workaround to this issue - affected users are encouraged to upgrade.\n\n### Acknowledgements\n\nThe Cilium community has worked together with members of Isovalent to prepare these mitigations. Special thanks to @giorio94 and @gandro for their work on triaging and remediating this issue.\n\n### For more information\n\nIf you have any questions or comments about this advisory, please reach out on [Slack](https://docs.cilium.io/en/latest/community/community/#slack).\n\nIf you think you found a related vulnerability, we strongly encourage you to report security vulnerabilities to our private security mailing list at [security@cilium.io](mailto:security@cilium.io). This is a private mailing list where only members of the Cilium internal security team are subscribed to, and your report will be treated as top priority.\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Go", + "name": "github.com/cilium/cilium" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.14.7" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/cilium/cilium/security/advisories/GHSA-x989-52fc-4vr4" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25631" + }, + { + "type": "WEB", + "url": "https://docs.cilium.io/en/stable/installation/k8s-install-external-etcd/#when-do-i-need-to-use-a-kvstore" + }, + { + "type": "WEB", + "url": "https://docs.cilium.io/en/stable/security/network/encryption-wireguard/#encryption-wg" + }, + { + "type": "PACKAGE", + "url": "https://github.com/cilium/cilium" + }, + { + "type": "WEB", + "url": "https://github.com/cilium/cilium/releases/tag/v1.14.7" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-311" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-02-20T23:45:16Z", + "nvd_published_at": "2024-02-20T18:15:53Z" + } +} \ No newline at end of file