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
CVE-2026-18782-TREX-MES-Uygulamalarinda-SQL-Zafiyeti — Advisory and technical write-up for CVE-2026-18782, a critical SQL injection in TREX MES web API endpoints enabling auth bypass, data theft, and RCE via xp_cmdshell. | Kitploit
Tools/GitHubGitHub/hasanuyarrr/cve-2026-18782-trex-mes-uygulamalarinda-sql-zafiyeti
Privilege EscalationVulnerability AnalysisExploitationLateral MovementWeb Application ExploitationWeb SecurityPenetration TestingAuthentication
Share
GitHub
hasanuyarrr/cve-2026-18782-trex-mes-uygulamalarinda-sql-zafiyeti

CVE-2026-18782-TREX-MES-Uygulamalarinda-SQL-Zafiyeti

Advisory and technical write-up for CVE-2026-18782, a critical SQL injection in TREX MES web API endpoints enabling auth bypass, data theft, and RCE via xp_cmdshell.

View Repository
341 month agoNot yet reviewed

SQLi Vulnerability in TREX-MES-Applications (CVE-2026-18782)

Overview

TREX MES is a commercial Manufacturing Execution System (MES) / Industry 4.0 platform used to collect and manage data from the production floor. The application's web API executes the client-supplied sql parameter directly on the backend Microsoft SQL Server and returns the result set as JSON.

Impact

A low-privileged authenticated user — or any attacker who obtains a session token through the authentication bypass described below — can:

  • Read, modify, or delete data in all databases on the SQL Server instance. This is not limited to the application's own database; it also covers production, finance, and personnel databases.
  • Obtain stored user credentials. Passwords are not hashed; they are stored with a character-based and trivially reversible shift, so all account passwords can be recovered in plaintext.
  • Execute arbitrary operating system commands in the context of the SQL Server service account via xp_cmdshell. In the tested installation, this account holds the SeImpersonatePrivilege privilege, which allows escalation to NT AUTHORITY\SYSTEM and full compromise of the server, providing a foothold for lateral movement into the internal network.

Since the affected system is a manufacturing execution platform, the ability to silently alter production and quality records carries an operational and business continuity risk beyond conventional IT impact.

Related Weaknesses

The same API's login flow selects the Password column and returns it to the browser, and the password comparison is performed client-side. Combined with the query vulnerability above, a UNION-based statement sent through the username field makes it possible to inject a synthetic record with an attacker-chosen password and admin flag, resulting in a full authentication bypass without knowledge of any valid credentials. This behavior was verified in the tested installation.

  • CWE-89 — Improper Neutralization of Special Elements used in an SQL Command
  • CWE-602 — Client-Side Enforcement of Server-Side Security
  • CWE-522 — Insufficiently Protected Credentials
  • CWE-250 — Execution with Unnecessary Privileges

Severity

Critical — CVSS 3.1 Base Score 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)

Affected Versions

trex MES v.6.07.17.00090 and earlier

TrexDCAS MES v.6.05.14.00074 and earlier

Affected Component

/api/GetDataJSON3 and /api/GetDataJSONCrypto3 — the client-supplied sql parameter handling logic in the web service layer

Mitigations

Until the vendor releases a fix, operators are advised to implement the following:

  1. Block both endpoints at the reverse proxy or WAF layer. The vulnerability is architectural and cannot be remediated through input filtering.
  2. Disable the xp_cmdshell feature (sp_configure 'xp_cmdshell', 0) and review other components that enable command execution, such as OLE Automation Procedures and CLR integration.
  3. Remove the sysadmin role from the application's database account and grant only the minimum required object-level permissions.
  4. Reset the passwords of all application users; stored credentials must be considered recoverable.
  5. Restrict network access to the application and database ports to only the systems that require it.

For a permanent fix, the vendor must move query construction to the server side using parameterized statements, perform authentication on the server, and store passwords using a salted, computationally expensive hash algorithm.

CVE ID

CVE-2026-18782

Month

Hasan Hüseyin UYAR – Netlore Security

Disclosure Timeline

DateEvent
2026-07-30The vulnerability was detected and verified during an authorized penetration test
2026-08-04CVE-2026-18782 ID was assigned.
2026-09-30Published with the ID https://www.cve.org/CVERecord?id=CVE-2026-18782.
Download Tool

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    647
  • 3

    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.

    421
  • 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.

    389
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    333
  • 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.

    331

Explore all tools

Browse our collection of tools

View all tools →