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
nginx-shib/shibboleth/attribute-policy.xml
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
- Cross-IdP Identity Spoofing: Any federation member IdP (or an attacker controlling a compromised/malicious IdP in the federation) can forge scoped attributes for arbitrary domains.
- Administrative Privilege Escalation: When chained with CVE-2026-88916, an attacker can spoof an entry in
ADMIN_EPPNSand gain full administrative access to UlakPDF’s management and statistics APIs without legitimate admin credentials.
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.