George0Papasotiriou/CVE-2026-7070-RDP-Clipboard-Hijacking-via-Virtual-Channel-Injection

GitHub: George0Papasotiriou/CVE-2026-7070-RDP-Clipboard-Hijacking-via-Virtual-Channel-Injection

该项目通过 Python 模拟环境复现 CVE-2026-7070 漏洞,演示了攻击者如何利用不受限的 RDP virtual channel 注入劫持共享剪贴板。

Stars: 0 | Forks: 0

## CVE-2026-7070 – 通过 Virtual Channel Injection 进行 RDP Clipboard 劫持 ### **程序代码(Python – 模拟 RDP clipboard)** ``` # rdp_server_sim.py - 带有 trusted virtual channel 的模拟 RDP 服务器 from http.server import HTTPServer, BaseHTTPRequestHandler import json, threading clipboard = "" # 模拟任何客户端都可以打开并写入的 RDP virtual channel。 # 在真实的 RDP 中,CLIPRDR channel 用于剪贴板同步。 class RDPHandler(BaseHTTPRequestHandler): def do_POST(self): global clipboard if self.path == '/clipboard': data = json.loads(self.rfile.read(int(self.headers['Content-Length']))) # Vulnerability: accepts clipboard updates from any channel without auth clipboard = data['content'] self.send_response(200) self.end_headers() self.wfile.write(b"Clipboard updated") else: self.send_response(404) self.end_headers() def do_GET(self): if self.path == '/clipboard': self.send_response(200) self.end_headers() self.wfile.write(clipboard.encode()) else: self.send_response(404) self.end_headers() server = HTTPServer(('0.0.0.0', 3389), RDPHandler) # using HTTP for simulation print("RDP clipboard simulator on :3389") server.serve_forever() ``` # CVE-2026-7070 – 通过 Virtual Channel Injection 进行 RDP Clipboard 劫持 ![严重性:中](https://img.shields.io/badge/severity-medium-yellow) ## 概述 RDP 服务器信任所有 virtual channel 连接,且缺乏适当的访问控制。能够连接到 RDP 会话的攻击者(即使是低权限用户)可以注入恶意的 virtual channel 并修改共享 clipboard,从而导致数据被盗或凭据被截获。 ## 漏洞详情 - **类型:** 信息泄露 / 篡改 - **影响:** Clipboard 劫持,数据外泄。 - **根本原因:** RDP 协议栈未限制哪些会话可以注册 clipboard channel,从而允许并行连接进行干扰。 ## 漏洞利用演示 1. 启动模拟的 RDP clipboard 服务: python rdp_server_sim.py 2. 运行漏洞利用: python exploit_rdp_clipboard.py
标签:Homebrew安装, meg, PoC, Python, RDP, 信息安全, 无后门, 暴力破解, 漏洞验证代码, 逆向工具