
CVE-2026-7070 PoC: 仮想チャネルインジェクションによるRDPクリップボードハイジャックを実証するPoC。データ窃取・認証情報傍受のためのシミュレートサーバーとエクスプロイトスクリプトを含む。
# rdp_server_sim.py - Simulated RDP server with trusted virtual channel
from http.server import HTTPServer, BaseHTTPRequestHandler
import json, threading
clipboard = ""
# Simulate an RDP virtual channel that any client can open and write to.
# In real RDP, the CLIPRDR channel is used for clipboard sync.
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()
RDP サーバーは、適切なアクセス制御なしにすべての仮想チャネル接続を信頼します。RDP セッションに接続できる攻撃者(低権限ユーザーであっても)は、悪意のある仮想チャネルを注入して共有クリップボードを改ざんし、データ窃取や資格情報の傍受につなげることができます。
python rdp_server_sim.py
python exploit_rdp_clipboard.py