Dev.to Security 🔐 Cybersecurity 👁 0 📖 3 min read

CVE-2026-63672: CVE-2026-63672: User-Controlled Identity Provider Selection in EGroupware SAML Authentication

CVE-2026-63672: User-Controlled Identity Provider Selection in EGroupware SAML Authentication Vulnerability ID: CVE-2026-63672 CVSS Score: 6.1 Published: 2026-11-17 CVE-2026-63672 is an open redirect and insecure Id

CVE-2026-63672: User-Controlled Identity Provider Selection in EGroupware SAML Authentication

Vulnerability ID: CVE-2026-63672
CVSS Score: 6.1
Published: 2026-11-17

CVE-2026-63672 is an open redirect and insecure Identity Provider (IdP) selection vulnerability in the SAML Single Sign-On (SSO) authentication module of EGroupware. In affected versions, the login method in api/src/Auth/Saml.php accepts an unauthenticated HTTP request parameter (idp) and passes it to the underlying SimpleSAMLphp library after only verifying that the string begins with https://. Because the input is not validated against the application's configured whitelist of trusted identity providers, an attacker can construct a malicious link that redirects authenticating users to an arbitrary, attacker-controlled SAML Identity Provider.

TL;DR

EGroupware's SAML authentication handler fails to validate the user-supplied 'idp' HTTP parameter against its configured list of trusted Identity Providers, only checking for an 'https://' prefix. This allows unauthenticated attackers to redirect users to rogue Identity Providers for credential phishing or potential session spoofing if SimpleSAMLphp metadata validation is loosely configured.

Technical Details

  • CVE ID: CVE-2026-63672 (GHSA-pr4x-6fj4-gm4h)
  • Weakness Class: CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
  • Affected Component: EGroupware\Api\Auth\Saml::login() (api/src/Auth/Saml.php)
  • Attack Vector: Network (Unauthenticated HTTP GET/POST parameter 'idp')
  • CVSS v3.1 Score: 6.1 Medium (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
  • EPSS Score: 0.20% (9.86th percentile)
  • Primary Impact: Redirection to untrusted SAML Identity Provider / Credential Phishing
  • CISA KEV Status: Not Listed

Affected Systems

  • EGroupware Community Edition
  • EGroupware Enterprise Edition (EPL)
  • egroupware: < 23.1.20260601 (Fixed in: 23.1.20260601)
  • egroupware: >= 26.0.20251208, < 26.6.20260616 (Fixed in: 26.6.20260616)

Code Analysis

Commit: a87be9c

Validate requested IdP against configured saml_idp allowlist before initiating SAML authentication

diff --git a/api/src/Auth/Saml.php b/api/src/Auth/Saml.php
index 881fc36c1d3..0648df46266 100644
--- a/api/src/Auth/Saml.php
+++ b/api/src/Auth/Saml.php
@@ -125,6 +125,11 @@ function change_password($old_passwd, $new_passwd, $account_id=0)
     */
    function login()
    {
+       // check if one of the configured IdP's is requested, deny login if not
+       if (!in_array($_REQUEST['idp'], self::splitIdP($GLOBALS['egw_info']['server']['saml_idp'])))
+       {
+           return null;
+       }
        // login (redirects to IdP)
        $as = new SimpleSAML\Auth\Simple(self::$auth_source);
        $as->requireAuth(preg_match('|^https://|', $_REQUEST['idp']) ?

Commit: ec78ff4

Backport IdP allowlist validation check in api/src/Auth/Saml.php

diff --git a/api/src/Auth/Saml.php b/api/src/Auth/Saml.php
index 881fc36c1d3..0648df46266 100644
--- a/api/src/Auth/Saml.php
+++ b/api/src/Auth/Saml.php
@@ -125,6 +125,11 @@ function change_password($old_passwd, $new_passwd, $account_id=0)
     */
    function login()
    {
+       // check if one of the configured IdP's is requested, deny login if not
+       if (!in_array($_REQUEST['idp'], self::splitIdP($GLOBALS['egw_info']['server']['saml_idp'])))
+       {
+           return null;
+       }
        // login (redirects to IdP)
        $as = new SimpleSAML\Auth\Simple(self::$auth_source);
        $as->requireAuth(preg_match('|^https://|', $_REQUEST['idp']) ?

Mitigation Strategies

  • Upgrade EGroupware to a patched release containing strict IdP allowlist validation.
  • Implement reverse proxy or WAF rules to restrict the 'idp' HTTP parameter to explicitly trusted Identity Provider URIs.
  • Harden SimpleSAMLphp metadata configurations by pinning IdP X.509 certificates and disabling dynamic metadata resolution from untrusted endpoints.

Remediation Steps:

  1. Identify the currently deployed EGroupware version and determine if SAML authentication is active.
  2. For EGroupware 23.1.x deployments, upgrade packages or container images to version 23.1.20260601 or later.
  3. For EGroupware 26.x deployments, upgrade packages or container images to version 26.6.20260616 or later.
  4. Verify that the 'saml_idp' setting in the EGroupware server configuration contains only the exact entity IDs/URIs of authorized Identity Providers.
  5. Inspect web server access logs for historical requests containing unexpected 'idp=https://' query parameters to detect prior exploitation attempts.

References

Read the full report for CVE-2026-63672 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.