AI Security AI安全 3h ago Updated 1h ago 更新于 1小时前 41

FreeIPA Flaw Chain Lets Anonymous Clients Create Reusable Administrator Credentials FreeIPA漏洞链允许匿名客户端创建可复用的管理员凭据

A critical flaw chain (CVE-2026-76578, CVSS 9.8) allows unauthenticated clients to create arbitrary Kerberos identities and inject themselves into the administrators group in FreeIPA deployments The attack exploits a combination of FreeIPA's overly permissive ACI rule and a 389 Directory Server access-control engine bug (CVE-2026-76560, CVSS 7.5) where empty client names match empty stored ownership values A second independent flaw (CVE-2026-79678, CVSS 8.1) exposes environment variables through FreeIPA存在严重漏洞链(CVE-2026-76578 + CVE-2026-76560),CVSS 9.8,匿名客户端无需认证即可创建自定义Kerberos身份并加入管理员组 攻击利用FreeIPA ACI规则缺陷与389 Directory Server访问控制引擎漏洞的组合,后者空名称匹配空存储值导致权限绕过 独立漏洞CVE-2026-79678(CVSS 8.1)涉及idp-add命令的Python eval()调用,虽无法直接代码执行,但可泄露环境变量(容器部署风险更高) FreeIPA项目已发布4.13.4修复两个FreeIPA侧漏洞,389-ds-base同步发布补丁(RHS

58
Hot 热度
65
Quality 质量
52
Impact 影响力

Analysis 深度分析

TL;DR

  • A critical flaw chain (CVE-2026-76578, CVSS 9.8) allows unauthenticated clients to create arbitrary Kerberos identities and inject themselves into the administrators group in FreeIPA deployments
  • The attack exploits a combination of FreeIPA's overly permissive ACI rule and a 389 Directory Server access-control engine bug (CVE-2026-76560, CVSS 7.5) where empty client names match empty stored ownership values
  • A second independent flaw (CVE-2026-79678, CVSS 8.1) exposes environment variables through a Python eval() call in the idp-add command, potentially leaking container deployment credentials
  • The FreeIPA project has released version 4.13.4 addressing both FreeIPA-side issues, while Red Hat published 14 advisories for 389-ds-base covering multiple related flaws
  • No evidence of real-world exploitation has been reported, but the chain works against default installations with no prior authentication required

Why It Matters

This flaw chain demonstrates how seemingly minor access-control misconfigurations in identity management systems can cascade into full administrative compromise, a scenario directly relevant to any organization relying on FreeIPA for Linux domain authentication. The vulnerability affects default configurations out of the box, meaning organizations may be exposed without any custom hardening or misconfiguration on their part.

Technical Details

  • Flaw Chain Mechanism: FreeIPA's ACI rule allows users to manage one-time-password tokens without authentication and without restricting what else can be written alongside the token. Combined with a 389 Directory Server bug where the "authenticated owner" rule compares client names as plain text, an anonymous client (with an empty name) matches an empty stored ownership value, bypassing the access control check entirely.
  • Attack Execution: An unauthenticated client creates a token entry with blank ownership fields, passes the ownership check by virtue of being "nobody," and simultaneously writes a Kerberos identity and password under an attacker-chosen name, granting administrative group membership and reusable credentials.
  • CVE-2026-79678 (idp-add eval flaw): The idp-add command passes caller-supplied organization name and base URL values into a Python eval() call before the permission check runs, allowing any account to trigger it. While brackets are forbidden (preventing direct code execution), attackers can enumerate environment variables through error messages and cause memory exhaustion via arithmetic expressions.
  • Container-Specific Risk: Official FreeIPA server images often pass Directory Manager and administrator passwords as environment variables at first boot; if these persist post-setup, the eval flaw can leak them.
  • Patch Status: FreeIPA 4.13.4 fixes both FreeIPA-side flaws. Red Hat published 14 advisories for 389-ds-base on September 8, with RHSA-2026:64785 covering RHEL 10 (389-ds-base-3.2.0-10.el10_2). The directory server flaw was independently reproduced on a plain 389-ds build, confirming it resides in the access-control engine rather than FreeIPA-specific code.

Industry Insight

  • Organizations running FreeIPA should prioritize patching to version 4.13.4 immediately, especially those using containerized deployments where credential leakage via the eval flaw is a compounding risk.
  • The incident highlights the importance of reviewing default access control configurations in identity management systems; the FreeIPA ACI rule shipped by default was sufficiently permissive to enable the attack chain without any administrator customization.
  • Security teams should audit container images for lingering environment variables post-deployment, as the idp-add flaw makes this a practical defense-in-depth measure beyond just patching the software.

TL;DR

  • FreeIPA存在严重漏洞链(CVE-2026-76578 + CVE-2026-76560),CVSS 9.8,匿名客户端无需认证即可创建自定义Kerberos身份并加入管理员组
  • 攻击利用FreeIPA ACI规则缺陷与389 Directory Server访问控制引擎漏洞的组合,后者空名称匹配空存储值导致权限绕过
  • 独立漏洞CVE-2026-79678(CVSS 8.1)涉及idp-add命令的Python eval()调用,虽无法直接代码执行,但可泄露环境变量(容器部署风险更高)
  • FreeIPA项目已发布4.13.4修复两个FreeIPA侧漏洞,389-ds-base同步发布补丁(RHSA-2026:64785等)
  • 漏洞由Gia Bui(Calif)报告,Calif与Anthropic合作发现第二个漏洞,目前无公开利用记录

为什么值得看

该漏洞链揭示了身份管理系统中权限模型与目录服务引擎之间的深层交互风险,对使用FreeIPA/RHEL的Linux域环境构成直接威胁。容器化部署场景下环境变量泄露风险进一步放大了攻击面,运维人员需立即评估补丁状态。

技术解析

  • 漏洞链机制:FreeIPA的ACI规则允许未认证用户管理一次性密码令牌,且未限制可写入的其他属性;389 Directory Server的"仅认证所有者"规则在比较客户端名称时存在缺陷——未登录客户端名称为空字符串,与空存储值匹配,从而绕过所有权检查
  • 攻击路径:匿名客户端创建令牌条目(所有权字段留空)→ 通过空名称匹配绕过389-ds权限检查 → 在令牌条目旁写入自定义Kerberos身份和密码 → 获得管理员组成员资格和可重用凭据
  • CVE-2026-79678技术细节:idp-add命令将组织名称和基础URL传入Python eval(),该调用在权限检查之前执行;括号禁止模式阻止函数调用(无代码执行),但可通过观察服务器返回的错误逐字节读取环境变量,并用短算术表达式耗尽内存
  • 修复版本:FreeIPA 4.13.4修复两个FreeIPA侧漏洞;RHEL 10需更新389-ds-base-3.2.0-10.el10_2(RHSA-2026:64785),该公告同时涵盖另外三个389-ds漏洞
  • Windows SID部署扩展风险:使用Windows风格安全标识符的部署中,攻击者可获得包含授权数据的Kerberos票据,进而访问HTTP服务和Dogtag证书颁发机构

行业启示

  • 身份管理系统安全需端到端审视:单一组件漏洞(如389-ds访问控制引擎)与上层应用配置(FreeIPA ACI规则)的组合可能产生远超各自CVSS评分的连锁风险,安全评估应覆盖完整技术栈
  • 容器化部署的身份管理风险被低估:FreeIPA官方容器镜像在首次启动时将Directory Manager和管理员密码作为环境变量传入,若部署后未清理则可通过CVE-2026-79678泄露,云原生环境需强化密钥生命周期管理
  • 漏洞披露与修复的协调复杂性:本次漏洞涉及FreeIPA项目、Red Hat、389-ds-base三个维护方,补丁发布时间分散(9月8日集中发布14条公告),组织需建立跨组件依赖的补丁追踪机制以避免修复盲区

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Open Source 开源