arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.04601cs.CR
收藏

利用序列号泄露:启用NAT的Wi-Fi网络中的TCP劫持

Exploiting Sequence Number Leakage: TCP Hijacking in NAT-Enabled Wi-Fi Networks

Yuxiang Yang, Xuewei Feng, Qi Li, Kun Sun, Ziqiang Wang, Ke Xu

AI总结:

本文揭示启用NAT的Wi-Fi路由器中TCP侧信道与映射重建漏洞,提出离路径TCP劫持攻击,并通过多厂商路由器和真实网络测量验证其危害。

摘要:

在本文中,我们揭示了广泛使用的NAT端口保留策略以及Wi-Fi路由器不充分的反向路径验证策略中存在的一个新的侧信道漏洞,该漏洞使离路径攻击者能够推断同一网络中是否存在一个受害客户端正在使用TCP与Internet上的另一台主机通信。在检测到受害客户端与服务器之间存在TCP连接后,由于路由器禁用TCP窗口跟踪策略的漏洞(该策略多年来在大多数路由器中得到忠实实现),攻击者可以通过发送伪造的TCP数据包驱逐原始NAT映射并在路由器上重建新映射。通过这种方式,攻击者可以拦截来自服务器的TCP数据包并获取当前序列号和确认号,进而使攻击者能够强制关闭连接、以明文毒化流量,或将服务器传入的数据包重新路由到攻击者。我们测试了来自30家供应商的67款广泛使用的路由器,发现其中52款受到此攻击影响。此外,我们对93个真实Wi-Fi网络进行了广泛的测量研究。实验结果表明,这些被评估的Wi-Fi网络中有75个(81%)对我们的攻击完全脆弱。我们的案例研究显示,终止SSH连接、从FTP服务器下载私有文件以及注入伪造HTTP响应数据包平均分别需要约17.5秒、19.4秒和54.5秒,成功率分别为87.4%、82.6%和76.1%。我们负责任地披露了该漏洞,并向所有受影响的供应商建议了缓解策略,已收到积极反馈,包括致谢、CVE、奖励以及对我们建议的采纳。

英文摘要:

In this paper, we uncover a new side-channel vulnerability in the widely used NAT port preservation strategy and an insufficient reverse path validation strategy of Wi-Fi routers, which allows an off-path attacker to infer if there is one victim client in the same network communicating with another host on the Internet using TCP. After detecting the presence of TCP connections between the victim client and the server, the attacker can evict the original NAT mapping and reconstruct a new mapping at the router by sending fake TCP packets due to the routers' vulnerability of disabling TCP window tracking strategy, which has been faithfully implemented in most of the routers for years. In this way, the attacker can intercept TCP packets from the server and obtain the current sequence and acknowledgment numbers, which in turn allows the attacker to forcibly close the connection, poison the traffic in plain text, or reroute the server's incoming packets to the attacker. We test 67 widely used routers from 30 vendors and discover that 52 of them are affected by this attack. Also, we conduct an extensive measurement study on 93 real-world Wi-Fi networks. The experimental results show that 75 of these evaluated Wi-Fi networks (81%) are fully vulnerable to our attack. Our case study shows that it takes about 17.5, 19.4, and 54.5 seconds on average to terminate an SSH connection, download private files from FTP servers, and inject fake HTTP response packets with success rates of 87.4%, 82.6%, and 76.1%. We responsibly disclose the vulnerability and suggest mitigation strategies to all affected vendors and have received positive feedback, including acknowledgments, CVEs, rewards, and adoption of our suggestions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑