CVE-2026-92744 · 披露报告 株式会社CyberCrew (CyberCrew Inc.)
| 字段 | 值 |
|---|---|
| CVE ID | CVE-2026-92744(CNA:Delinea, Inc.) |
| 标题 | Delinea Privilege Manager 代理未认证远程代码执行漏洞 |
| 类别 | CWE-306 关键功能缺失认证(主要);CWE-295 证书验证不当(机制) |
| 受影响 | Privilege Manager Windows Core 代理 10.1.0 → 12.0.5796 及 13.0.0 → 13.0.1058 |
| 修复于 | 代理 12.0.5804(v12)及 13.0.2064(v13);随 Privilege Manager 13.0.2 于 2026 年 10 月 28 日发布 |
| 公布 CVSS | 8.7 高(CVSS 4.0)— CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| 我们的评估 | 9.8 严重(网络,推断)/ 7.8 高(本地,已演示)— 见 §6 |
| 研究人员 | Isuka Sanuj(负责人)· Ishan Nim(贡献者)— 均为 株式会社CyberCrew |
| 厂商案例 | #01416021(相关:01418441) |
| 测试版本 | 13.0.1041.338(PMAgents_13_0_1041.exe),SHA-256 9ED7660B9D994620B3ECADC524EB10122C42E3A932CCFD2988F16A5D76FF0457,Authenticode 有效(CN=Delinea Inc.) |
| 状态 | 2026 年 9 月 14 日报告 · 已修复、已发布,且厂商已应用研究人员致谢 — 已关闭 |
Privilege Manager Windows 代理在 TCP 5593 上暴露了一个 WCF 双工回调端点,绑定到所有接口,并且安装程序为其打开了入站防火墙规则,覆盖域、专用和公用配置文件。该端点名义上要求客户端证书,但本应验证该证书的验证器——AmsServerCertValidator.Validate()——函数体为空,且契约声明了 ProtectionLevel.None,移除了消息层签名。最终效果是,契约上的每个操作都接受调用者出示其在数秒前自行生成的证书。
其中两个操作可串联实现完全入侵:
OnRegistrationComplete 将攻击者提供的证书写入 LocalMachine\Ams——即代理用于验证策略签名的存储——并移除合法证书。OnClientTaskQueued 驱使代理从其配置的服务器获取命令,并在 PowerShell 运行空间中以 nt authority\system 身份、显式设置 ExecutionPolicy.Bypass 执行该命令。完整攻击链于 2026 年 9 月 12 日在 Windows Sandbox(Windows 11 版本 26200)中的干净默认安装上端到端复现,产生了捕获的 nt authority\system 执行证明。无需凭据、先前的本地访问或用户交互。
由于该产品的全部用途就是决定哪些进程可以提权运行,这不仅仅是主机上的代码执行——而是对安全决策本身的控制。
该发现于 2026 年 9 月 14 日报告给 Delinea,在 2026 年 10 月 28 日的版本中修复,并被分配为 CVE-2026-92744(2026 年 10 月 29 日发布)。在提出致谢请求后,Delinea 将约定的研究人员致谢添加到公开记录中。该披露现已关闭。见 §8–§10。
| 产品 | 受影响 | 修复于 |
|---|---|---|
| Privilege Manager Windows Core 代理(v12) | 10.1.0 → 12.0.5796 | 12.0.5804 |
| Privilege Manager Windows Core 代理(v13) | 13.0.0 → 13.0.1058 | 13.0.2064 |
该修复随 Privilege Manager 13.0.2 于 2026 年 10 月 28 日发布。对于无法立即升级的客户,Delinea 记录的缓解措施是阻止入站 TCP 5593(据称不会导致功能损失;代理会回退为按计划从服务器拉取更新)。
该代理以 System 身份运行,并在所有接口上托管回调监听器,安装程序创建的防火墙规则覆盖公用配置文件:
--- listeners ---
:::5593 pid=4 proc=System <- all interfaces (http.sys)
--- firewall ---
[Domain, Private, Public] Arellia Agent (SSTP-In) | dir=Inbound action=Allow port=5593 prog=System
测试所用的配置是安装程序的原始默认配置——没有做任何削弱:
HKLM\SOFTWARE\Policies\Arellia\AMS
BaseUrl = https://localhost/TMS/
InstallCode = testinstallcode
BaseUrlOverride = https://localhost/TMS/
ValidateServerCertificate 和 ValidateCertChain 均不存在(采用安装时的默认设置)。该端点提供了一个以主机名命名的自签名证书(CN=7D20AF86-E474-4)。
一个带有空 Validate() 方法的验证器类控制着三项信任决策:
internal class AmsServerCertValidator : X509CertificateValidator
{
public override void Validate(X509Certificate2 certificate)
{
}
}
| 站点 | 受管控的路径 |
|---|---|
_serviceHost.Credentials.ClientCertificate.Authentication.CustomCertificateValidator | 入站回调调用方 |
AgentRegistration2Client.CreateClient(...) | 出站注册 |
ClientBaseFactory.CreateClient<ClientItems2Client, ...> | 出站策略获取 |
入站主机将该验证器接入为自定义验证模式,从而用空方法替换 WCF 的默认链验证:
wSHttpBinding.Security.Message.ClientCredentialType = MessageCredentialType.Certificate;
wSHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
wSHttpBinding.Security.Message.EstablishSecurityContext = false;
...
_serviceHost.Credentials.ClientCertificate.Authentication.CertificateValidationMode
= X509CertificateValidationMode.Custom;
_serviceHost.Credentials.ClientCertificate.Authentication.CustomCertificateValidator
= new AmsServerCertValidator();
[ServiceContract(Namespace = "http://schemas.arellia.com/agent/services/",
Name = "IAgentRegistration",
SessionMode = SessionMode.NotAllowed,
ProtectionLevel = ProtectionLevel.None)]
public interface IAgentRegistrationCallback
{
void OnRegistrationComplete(PlatformRegistration platformDetails);
void OnApplicablePolicyChange(ClientItemDigest[] applicablePolicyDigests);
void OnClientTaskQueued(PendingTaskExecutionInstance[] pendingTasks);
void OnBadRegistration(Guid suggestedNewId);
}
ProtectionLevel.None 会移除消息签名,仅将客户端证书作为唯一的调用方校验——而该校验正是上面那个空方法。已确认自签名调用方可访问全部四个声明的操作(OnRegistrationComplete、OnClientTaskQueued、OnApplicablePolicyChange、OnBadRegistration——均为 accepted=True)。
OnRegistrationComplete)在注册完成时,代理会接收服务器响应中的每一个证书,并将其保存到 Ams 存储中,既不构建证书链,也不进行固定,也不与先前已知的证书进行比较:
foreach (string serverCertificate in platformDetails.ServerCertificates)
{
byte[] raw = Convert.FromBase64String(serverCertificate);
ICertificate2 certificate2 = _cert2Factory.Create(raw);
list.Add(certificate2);
}
_certMgr.SaveServerCertificates(list);
唯一的 catch 只处理格式错误的 base64。SaveServerCertificates 以读写方式打开 LocalMachine\Ams,并在添加攻击者的证书之前删除所有不在攻击者列表中的证书。在两次独立的干净安装上均复现:
[16:21:46] LocalMachine\Ams before: 0 cert(s):
[16:21:52] attacker cert: 13E298FDE814B0B34B1BBB83631BF54276FCF2FC CN=attacker.invalid
[16:21:53] --- INVOKING OnRegistrationComplete with our certificate ---
[16:21:54] call returned without exception
[16:22:06] LocalMachine\Ams after: 1 cert(s): 13E298FDE814B0B34B1BBB83631BF54276FCF2FC
植入的证书是自签名的,CN=attacker.invalid,在调用前几秒生成,与代理、其服务器或任何受信任的 CA 均无关联。这使得攻击者成为权威机构,代理将在策略上信任其签名——这正是下一阶段击败 RequireSignedClientItems 的原因。
OnClientTaskQueued → AgentController.RunTask)使用运行时编造的 CommandId GUID 将任务排队,会驱使代理从其配置的服务器获取该命令。该 GUID 不存在于任何数据库、配置或文件中——代理获知它的唯一途径就是这次未经身份验证的调用:
[18:03:10] --- calling OnClientTaskQueued (unauthenticated) ---
[18:03:12] call returned without exception
[18:03:22] MARKER SEEN after 10s
在监听器上观察到的请求序列:
18:03:10 POST /TMS/Agent/AgentRegistration4.svc
18:03:17 POST /TMS/Agent/AgentRegistration4.svc
18:03:17 POST /TMS/Agent/ClientItems2.svc <- went to fetch the command
18:03:22 POST /TMS/Agent/AgentRegistration4.svc <- reported the result
AgentController.RunTask 中的执行原语——代理回传的异常在标记行抛出,紧随其后的语句构建 PowerShell 运行空间:
if (!ClientItemManager.RegisterInterest(taskInstance.CommandId))
ClientItemManager.RefreshClientItems();
clientItem = ClientItemManager.GetRawClientItem(taskInstance.CommandId);
...
if (clientItem == null)
throw new Exception($"Failed to get ClientCommand {taskInstance.CommandId}"); // <-- reached here
RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration);
runspace.Open();
...
runspaceDispatcher.SetExecutionPolicy(ExecutionPolicy.Bypass, ExecutionPolicyScope.Process);
runspaceDispatcher.ImportModule("Arellia.Agent");
...
AgentPowershellScriptContract agentPowershellScriptContract =
(AgentPowershellScriptContract)clientItem.InnerContract;
pSCommand.AddScript(agentPowershellScriptContract.Script);
端到端复现完全通过代理自身的协议驱动代理执行了以下操作:
Register → 响应在 ServerCertificates 中携带了攻击者证书 → 代理执行了 OnRegistrationComplete 并将其安装到 LocalMachine\Ams;OnClientTaskQueued 推送的任务(实时回调地址);GetClientItems 获取命令;AgentPowershellScriptContract;AddScript(...) 并以 LocalSystem 身份执行,产生捕获的证明:EXECUTED as: nt authority\system at 2026-09-12T20:30:02
*** UNAUTHENTICATED CODE EXECUTION AS SYSTEM - CONFIRMED ***
该演示载荷是无害的——它将执行身份和时间戳写入本地文件,未采取任何破坏性或持久性操作。
有两种情况可使某些部署中的攻击成本更低,甚至完全无需植入证书:
中继连接的代理会跳过签名强制实施。 对于针对 Azure Service Bus 中继配置的代理,ClientItem 签名强制实施默认处于关闭状态:
internal static bool GetRequireSignedClientItems()
{
bool result = true;
if (IsInternetClientUri(GetAmsBaseUrl()))
result = false;
...
}