Skip to content
~/ahmedeaygoren.dev
← Back to Advisories
CVE-2026-88907•TÜBİTAK ULAKBİM UlakPDF•High · CVSS 7.4PatchedCWE-863•2026-09-24

Missing SAML Attribute Scope Validation in UlakPDF Shibboleth SP (Cross-IdP Identity Spoofing)

Permissive xsi:type='ANY' attribute policy in Shibboleth SP allows any YETKİM federation IdP to spoof arbitrary scoped identities (eppn, affiliation, subject-id, pairwise-id) without domain validation.

CNA
T.C. Cumhurbaşkanlığı Siber Güvenlik Başkanlığı (USOM TR-26-1170)
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Overview

UlakPDF, an open-source PDF processing platform developed under TÜBİTAK ULAKBİM, integrates with the Turkish Academic and Public Identity Federation (YETKİM) via Shibboleth Service Provider (SP). Because its SP attribute filter accepted scoped SAML attributes unconditionally using xsi:type="ANY", any Identity Provider (IdP) within the federation could assert identities belonging to unrelated institutions or administrative domains.

Affected Component

Root Cause

In a multi-organization SAML 2.0 federation, each IdP must be restricted to issuing scoped attributes (such as eppn, affiliation, subject-id, and pairwise-id) only for domains declared in its <shibmd:Scope> federation metadata.

In UlakPDF’s SP configuration, a permissive policy intended for a local development SimpleSAMLphp IdP remained enabled in production:

Before (Vulnerable)

<!-- nginx-shib/shibboleth/attribute-policy.xml -->
<AttributeFilterPolicyGroup id="ShibbolethFilterPolicy"
        xmlns="urn:mace:shibboleth:2.0:afp"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AttributeFilterPolicy>
    <PolicyRequirementRule xsi:type="ANY" />

    <AttributeRule attributeID="eppn">
      <PermitValueRule xsi:type="ANY" />
    </AttributeRule>

    <AttributeRule attributeID="affiliation">
      <PermitValueRule xsi:type="ANY" />
    </AttributeRule>

    <AttributeRule attributeID="mail">
      <PermitValueRule xsi:type="ANY" />
    </AttributeRule>
  </AttributeFilterPolicy>
</AttributeFilterPolicyGroup>

Without ScopeMatchesShibMDScope, Shibboleth SP accepts any eduPersonPrincipalName (eppn) value regardless of whether the issuing IdP is authoritative for that domain.

After (Patched)

<!-- nginx-shib/shibboleth/attribute-policy.xml -->
<AttributeRule attributeID="eppn">
  <PermitValueRule xsi:type="ScopeMatchesShibMDScope" />
</AttributeRule>

<AttributeRule attributeID="affiliation">
  <PermitValueRule xsi:type="ScopeMatchesShibMDScope" />
</AttributeRule>

<AttributeRule attributeID="subject-id">
  <PermitValueRule xsi:type="ScopeMatchesShibMDScope" />
</AttributeRule>

<AttributeRule attributeID="pairwise-id">
  <PermitValueRule xsi:type="ScopeMatchesShibMDScope" />
</AttributeRule>

Impact

Remediation

Enforce ScopeMatchesShibMDScope across all scoped SAML attributes (eppn, affiliation, subject-id, pairwise-id) in nginx-shib/shibboleth/attribute-policy.xml and remove permissive xsi:type="ANY" rules from production deployments.

References