
CVE-2026-75650(StyleSmuggler):通过 Magento Open Source / Adobe Commerce 2.4.4–2.4.9 中的模板注入实现未认证 RCE——b63 展示,经实验室验证并包含已修补版本的阴性测试
[b63] b63 -- Agentic Exploit Foundry
cve=CVE-2026-75650 class=未认证远程代码执行(模板指令链,CWE-1336 风格的流程进入 include) verification=VERIFIED -- 已在真实 Magento Open Source 实验孪生环境上演示;已修补的孪生环境因果性地拒绝 tested=2.4.8-p5(本仓库的实验环境)和 2.4.9(跨轨道实验构建)
Magento Open Source / Adobe Commerce 中的未认证远程代码执行:
一条贯穿模板/邮件子系统的三缺口链,最终使攻击者的 PHP 被
include 并在 Web 进程中执行,命令标准输出在
HTTP 响应中返回。Adobe 将其分配为 VULN-39341 / APSB26-146;CISA 将其列入
KEV。完整分析:05_deliver/writeup.md。
uid=33(www-data) 执行攻击者 PHP,并在 HTTP 响应中返回标准输出和
app/etc/env.php 内容,在标准 Magento Open
Source 2.4.8-p5 孪生环境上;已修补的孪生环境(相同代码树 + Adobe VULN-39341 /
APSB26-146 补丁,恰好一个变量)完成请求链但
拒绝执行。证据:04_verify/(以 INDEX 为准;被取代和
无效的捕获受治理,而非删除)。<?php exit; ?> 开头,载荷
被中和为 < ?=system(...);存在漏洞:6226 字节响应,包含
uid=33(www-data)。可靠性:10/10 + 10/10(漏洞,opt/可读)vs 5/5 +
5/5 显式拒绝(已修补)。参见
04_verify/11-11-reliability-postfix-10x10-negatives.txt 和
04_verify/crosstrack-b/(第二个独立实验环境,Magento 2.4.9)。02_lab/lab/ lab recipe tree: compose + twin installers + Adobe patch set
03_exploit/exploit_opt/ minimal 5-request driver (stdlib Python 3)
03_exploit/exploit_readable/ same chain, named stages, commented path by path
04_verify/ captured evidence transcripts + INDEX.txt (governance)
04_verify/crosstrack-b/ A/B causality transcript from the second lab build
05_deliver/ writeup, usage (this repo's command reference), lab recipe
MANIFEST.txt sha256 over every shipped file (frozen after the scrub)
前置条件:Docker + compose、Python 3(仅标准库——无需 pip 安装)。该实验室
仅绑定回环地址(127.0.0.1:18085 为易受攻击版本 / 18086 为已修补版本)。启动过程需要
约 15-25 分钟,两个孪生实例才能以 200 响应 /graphql。
# 1. build the twin lab (vulnerable + patched, from the Mage-OS mirror)
cd 02_lab/lab && docker compose -p cve-2026-75650-lab up -d
# readiness probe for both twins is in 05_deliver/lab-recipe.md
# 2. vulnerable twin -- RCE captured (exit 0, stdout in the response)
python3 03_exploit/exploit_opt/exploit.py --target http://127.0.0.1:18085
python3 03_exploit/exploit_opt/exploit.py --target http://127.0.0.1:18085 --cmd 'uname -a'
# 3. patched twin -- same request, causal refusal (exit 1, no execution receipt)
python3 03_exploit/exploit_opt/exploit.py --target http://127.0.0.1:18086; echo "exit=$?"
退出码约定(两个驱动均适用):0 表示捕获到 RCE | 1 表示链路完成,但无执行回执(已修补/非易受攻击) | 2 表示用法错误 | 3 表示传输失败。
完整命令参考:05_deliver/README.md;
实验环境搭建/拆除与门禁检查:05_deliver/lab-recipe.md。
| 状态 | 预期结果 |
|---|---|
| 易受攻击的 2.4.8-p5 / 2.4.9 孪生版本 | 退出码 0,HTTP 响应中包含 uid=33(www-data) 和命令标准输出 |
| 已修补的孪生版本(Adobe VULN-39341 / APSB26-146,同一代码树) | 退出码 1,五个修复门禁均存在,阶段 1 日志投毒仍然生效(唯一差异在于防护机制) |
setTemplateStyles 与未经验证的调用点)
依据厂商补丁文本记录,并未作为独立单元单独验证;端到端链路和门禁 grep
结果已捕获(04_verify/04-03b-gate-d-settemplate-styles-context.txt)。04_verify/INDEX.txt 管理,以便更正轨迹保持可见;只有 CURRENT 行承载主张。本仓库仅出于教育和防御研究目的发布,须在经授权的实验室环境中、在您拥有或明确签约测试的系统上使用。该漏洞利用针对回环地址上的实验室孪生版本。未经书面授权,对任何第三方或生产环境的 Magento 实例运行此程序在大多数司法管辖区均属违法。作者以无诱饵的技术记录形式发布此内容:不提供基础设施,不提供实验室之外的载荷投递,不支持任何攻击用途。
MIT -- 参见 LICENSE。
仓库根目录下的 MANIFEST.txt 列出了发布时冻结的每个随附文件的 sha256(在身份信息清理后生成;它取代运行时的 BUNDLE.sha256,后者不随附发布)。