{"id":"CVE-2026-77433","aliases":["CVE-2026-77433","GHSA-gcwf-c25f-p9rv"],"related":[],"kind":"vulnerability","state":"published","title":"Kiwi TCMS : Incomplete fix for CVE-2026-54724: open redirect bypass via protocol-relative URL in account confirmation","summary":"Kiwi TCMS is an open source test management system. From 16.1 until 16.2, the account confirmation page’s incomplete validation of the next parameter accepts protocol-relative URLs because the version 16.1 fix for CVE-2026-54724 only requires the value to start with a slash. An unauthenticated attacker can craft a confirmation URL on a trusted Kiwi TCMS hostname that redirects a user to an external site, enabling phishing and related downstream confidentiality or integrity impacts when the user follows the link. This issue is fixed in version 16.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Kiwi TCMS is an open source test management system. From 16.1 until 16.2, the account confirmation page’s incomplete validation of the next parameter accepts protocol-relative URLs because the version 16.1 fix for CVE-2026-54724 only requires the value to start with a slash. An unauthenticated attacker can craft a confirmation URL on a trusted Kiwi TCMS hostname that redirects a user to an external site, enabling phishing and related downstream confidentiality or integrity impacts when the user follows the link. This issue is fixed in version 16.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nIn Kiwi TCMS version 16.1, the fix for CVE-2026-54724 (open redirect via unvalidated `next` parameter) in the account confirmation endpoint is incomplete. The validation uses `startswith(\"/\")` to check if the redirect URL is local, but this is bypassed by protocol-relative URLs like `//evil.com` which start with `/` but redirect the browser to an external attacker-controlled domain. 16.1’s incomplete mitigation still allows protocol-relative destinations and earlier releases lack the mitigation.\n\n## Vulnerable Code\n\nIn `tcms/kiwi_auth/views.py`, the `Confirm` view (line ~113):\n\n    def get_redirect_url(self, *args, **kwargs):\n        self.url = self.request.GET.get(\"next\", reverse(\"core-views-index\"))\n        if not self.url.startswith(\"/\"):\n            self.url = reverse(\"core-views-index\")\n\nThe check `startswith(\"/\")` passes for `//evil.com` because it begins with `/`, but browsers interpret `//evil.com` as a protocol-relative URL that redirects to `https://evil.com` (or `http://evil.com` depending on the current page's protocol).\n\n## Proof of Concept\n\n    GET /confirm/<activation_key>/?next=//evil.com/phishing HTTP/1.1\n    Host: kiwi.example.com\n\nResponse:\n\n    HTTP/1.1 302 Found\n    Location: //evil.com/phishing\n\nThe browser follows the redirect to `https://evil.com/phishing`.\n\nVerification:\n\n    >>> url = \"//evil.com/phishing\"\n    >>> url.startswith(\"/\")\n    True  # passes the check!\n\n## Impact\n\nAn attacker can craft a confirmation link that, after the user confirms their account, redirects them to a phishing page. This is useful for:\n\n- Credential phishing (fake login page on attacker domain)\n- Malware delivery after trusted action\n- Social engineering (user trusts the link because it's from the legitimate Kiwi TCMS instance)\n\nThe attack requires sending a crafted activation link to a user who is registering, or intercepting/predicting the activation key.\n\n## Suggested Fix\n\nUse Django's `url_has_allowed_host_and_scheme()` utility instead of a simple `startswith` check:\n\n    from django.utils.http import url_has_allowed_host_and_scheme\n\n    def get_redirect_url(self, *args, **kwargs):\n        self.url = self.request.GET.get(\"next\", reverse(\"core-views-index\"))\n        if not url_has_allowed_host_and_scheme(\n            self.url,\n            allowed_hosts={self.request.get_host()},\n            require_https=self.request.is_secure(),\n        ):\n            self.url = reverse(\"core-views-index\")\n\nThis properly rejects protocol-relative URLs, absolute URLs to other hosts, and other bypass patterns.\n\nFixed in Version 16.2","format":"markdown","source":"ghsa"}],"published":"2026-11-09T23:24:14.000Z","modified":"2026-11-17T23:17:59.303Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":">= 16.1, < 16.2","status":"affected"}],"vendor":"kiwitcms","product":"kiwitcms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"12.4"}],"ecosystem":"PyPI","package":"kiwitcms","purl":"pkg:pypi/kiwitcms","source":"ghsa"}],"references":[{"url":"https://github.com/kiwitcms/kiwitcms/security/advisories/GHSA-gcwf-c25f-p9rv","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kiwitcms/kiwitcms/pull/4458","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kiwitcms/kiwitcms/commit/65d8f7c2743d7f06a4fca77c060b9d561f02f948","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kiwitcms/kiwitcms/releases/tag/v16.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-gcwf-c25f-p9rv","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-hmj5-jm8h-h9fh","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kiwitcms/Kiwi/pull/4458","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kiwitcms/Kiwi/commit/65d8f7c2743d7f06a4fca77c060b9d561f02f948","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kiwitcms/Kiwi","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/kiwitcms/Kiwi/releases/tag/v16.2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-17T22:16:30.647Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77433","url":"https://www.cve.org/CVERecord?id=CVE-2026-77433","licence":"CVE Terms of Use","modified":"2026-11-17T22:25:14.496Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gcwf-c25f-p9rv","url":"https://github.com/advisories/GHSA-gcwf-c25f-p9rv","licence":"CC-BY-4.0","modified":"2026-11-09T23:30:04.658Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77433","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77433","licence":"Public domain","modified":"2026-11-17T23:17:59.303Z"}],"updatedAt":"2026-11-25T22:59:51.074Z","epss":{"score":0.00244,"percentile":0.16636,"date":"2026-12-02T12:00:21.000Z"}}