Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/googlesky/cve-2026-103026
漏洞分析漏洞利用Web应用程序漏洞利用Web安全实验室与实践
GitHubgooglesky/cve-2026-103026

CVE-2026-103026

针对 CVE-2026-103026 的漏洞验证与差分实验环境,其中 Paymenter 的 HasConfirmation trait 允许攻击者以攻击者可控的参数调用任意 Livewire 组件方法。

查看仓库
1天前尚未审核
分享

CVE-2026-103026 — Paymenter:通过 HasConfirmation 实现任意 Livewire 方法调用

License: MIT Research status: validated

CVECVE-2026-103026
组件Paymenter — app/Livewire/Traits/HasConfirmation.php、app/Livewire/Component.php
受影响版本e0c04af 之前的版本
修复于提交 e0c04af(Merge commit from fork,GHSA-prhx-9q2h-ph2x)
CWECWE-470(使用外部可控输入选择类或代码)、CWE-862(缺少授权)
影响基础 Livewire Component 所使用的 HasConfirmation trait 暴露了公共操作 confirmAction() 和 executeConfirmedAction($action, $parameters)。后者会调用由调用方通过 method_exists() 选定的组件上的任意方法——参数由攻击者控制,没有授权检查,也未强制要求确认。攻击者可调用公共方法来覆盖锁定数据、作废发票或以其他方式篡改特权状态。该漏洞可通过 Livewire 的公共操作调度器触达,即任何能够访问受影响组件的调用方均可利用
向量Livewire 操作调用 executeConfirmedAction,携带任意方法名和参数
触发条件executeConfirmedAction('updateServerSettings', [...])

该 trait 的通用调度器:

// HasConfirmation.php — pre-fix (verbatim)
public function executeConfirmedAction($action, $parameters = [])
{
    if (method_exists($this, $action)) {
        return $this->{$action}(...$parameters);
    }
    throw new \Exception("Method {$action} does not exist");
}

该修复删除了该 trait,并将其从基础组件中移除:

// Component.php — fixed
-use Disabled, HasConfirmation, HasNotifications;
+use Disabled, HasNotifications;

1. 根本原因

Livewire 将组件的公共方法暴露为可调用的操作。通过将 HasConfirmation 混入基础 Component,Paymenter 中的每个组件 都继承了两个公共操作。executeConfirmedAction 从 请求中获取方法名,并以 method_exists() 作为唯一检查来调用它——没有 允许列表,没有授权检查,而“确认”步骤仅仅是 客户端分发。上游修复完全移除了该 trait,因此 通用分发器在任何组件上都不再可达。

2. 复现环境

服务镜像角色
py-vulncve-2026-103026:vuln逐字复制自 e0c04af^ 的 HasConfirmation trait
py-fixedcve-2026-103026:fixed已删除 trait(与 e0c04af 一致)
poccve-2026-103026-poc:local仅使用标准库的 Python 驱动程序

PHP 测试框架在易受攻击的一侧加载逐字删除的 trait,并在 修复后的一侧省略它。一个桩组件模拟特权方法 (updateServerSettings、voidInvoice),其副作用记录在 状态中;两种模式显示相同的操作调用成功或不可达。

3. 运行环境

./run-lab.sh build     # builds both sides (php:8.3-alpine + python3 service)
./run-lab.sh up        # cve103026lab network: py-vuln / py-fixed
./run-lab.sh sweep
./run-lab.sh down

4. PoC

poc/poc.py(仅使用标准库):

  • check — 当暴露的 action 会修改特权状态时退出码为 1,当该 action 不存在时为 0;3 表示无 worker,2 表示不可达/无法确定。
  • exploit — 叙述式攻击链:Livewire action 调用 → method_exists 分发 → 以攻击者参数调用特权方法 → 状态被覆盖。
  • probe — 两个方法目标及其产生的状态。
  • mitigation — 提交 e0c04af / 移除 trait。

一个独立的完整攻击链利用程序位于 exploit/exploit.py:

python3 exploit/exploit.py --host=py-vuln
# exit 1 on confirmed arbitrary invocation, 0 on a safe target

5. 预期结果

模式py-vuln (e0c04af^)py-fixed (e0c04af)
executeConfirmedAction('updateServerSettings', ...)action 暴露;settings_overwritten: true不存在该 Livewire action;无状态变更
executeConfirmedAction('voidInvoice', ...)action 暴露;invoice_voided: true不存在该 Livewire action

已捕获的运行:evidence/check-*-run.txt、evidence/exploit-*-run.txt、 evidence/probe-*-run.txt、evidence/mitigation-*-run.txt、 evidence/exploit-standalone-run.txt、evidence/exploit-standalone-fixed-run.txt、 evidence/versions.txt、evidence/0day-sweep.txt。

6. 环境前提条件

  • Podman(或 Docker);在隔离的 cve103026lab 网络上运行的有界容器;实验镜像中使用 PHP 8.3 CLI。
  • 真实环境利用需要能够访问到在受影响的 Paymenter 版本上使用 基类 Component 的 Livewire 组件。

7. 额外发现(针对修复版本的 0-day 排查)

从基础组件中删除该 trait 会一次性移除所有 Livewire 组件的两个公共分发 辅助方法;没有其他同级 trait 暴露可比的通用方法分发器。修复后的测试环境 确认,普通组件方法在被直接调用时仍然正常工作——仅移除了任意分发 面。

8. 仓库结构

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone full-chain exploit
lab/harness-*.php     verbatim trait (vuln) / trait removed (fixed)
lab/lab.Dockerfile    builds both sides from the pinned upstream source slices
lab/service.py        HTTP wrapper (POST /call), child-process isolation
evidence/             captured runs of every mode on both sides
TRACKING.md           excluded (working record)

9. 参考文献

  • CVE 记录 — https://www.cve.org/CVERecord?id=CVE-2026-103026
  • GitHub 安全公告 — https://github.com/Paymenter/Paymenter/security/advisories/GHSA-prhx-9q2h-ph2x
  • 修复提交 — https://github.com/Paymenter/Paymenter/commit/e0c04af1707a65d8fb91879883aa7eae3292cedc
下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    915
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    891
  • 3

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    678
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    454
  • 5

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    404
  • 6

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    388

探索所有工具

浏览我们的工具集合

查看所有工具 →