# StarNet FastX pre-auth RCE via unauthenticated gritty Socket.IO namespace (builds 3.0.41–3.1.27) and public file read / token forgery CVE-2025-57618

> TrustedSec reports a pre-authentication remote code execution in the StarNet FastX web terminal (gritty) affecting every build from 3.0.41 through 3.1.27; a CVE request for it is pending. A separate unauthenticated file read and JWT token forgery, CVE-2025-57618, has a public exploit and affects builds before 3.3.71.

- **Published:** 2026-11-24T18:37:51Z
- **Last reviewed:** 2026-11-24T18:37:51Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6812
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6812.png
- **ID:** TL-2026-6812
- **Severity:** CRITICAL (CVSS 9.8)
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 11
- **CVEs:** CVE-2025-57618

## Description

StarNet FastX is a remote desktop / web terminal server widely used in HPC and university lab environments, with its web server listening on TCP/3300 by default. TrustedSec (Justin Bollinger, 2026-11-24) analysed 23 builds (3.0.32 through 3.3.71, plus 5.1.7) in Docker and documented two distinct issues.

Pre-auth RCE (CVE pending): in builds 3.0.41 through 3.1.27 (live-tested on 3.0.47 and 3.1.27) the web terminal is mounted on the public web server's own HTTP listener (www/server/terminal/). The terminal page is admin-gated, but the Socket.IO /gritty namespace behind it is not: Express middleware never runs on a Socket.IO handshake because Socket.IO attaches to the underlying HTTP server. The embedded gritty library admits every connection when no auth callback is supplied, and the client-requested command overrides the server-configured one, so the shipped dologin.sh is never executed and whatever the client sends in the 'terminal' event runs. The attack works entirely over Engine.IO HTTP long polling (GET /socket.io/?EIO=3&transport=polling followed by a 40/gritty namespace connect) and needs no WebSocket upgrade. Commands execute as the unprivileged 'fastx' service account (uid 999, gid 998). The author scores it CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N). Builds 3.2.27 through 3.3.71 are not affected only by accident (the terminal moved to loopback user-link and socketIo(app.server) evaluates to undefined, not an authentication fix); 5.1.7 removed the terminal; 3.1.28–3.2.26 could not be tested and are unknown.

CVE-2025-57618 (published 2025-10-14, CWE-24 on the NVD record; TrustedSec argues CWE-36): an unauthenticated absolute-path file read through /error/assets/:myfile, e.g. /error/assets/%2fetc%2fpasswd, works because path.resolve discards earlier segments when a later one is absolute, so a '../' filter does not stop it. NVD states affected 'through 3.3.67'; TrustedSec found 3.3.69 also affected and 3.3.71 fixed. Reading the JWT signing key and token identifiers from FastX configuration allows API token forgery (aggregators report impersonation of root and potential code execution in a privileged context via authenticated endpoints; this chain was not confirmed from the vendor advisory). A public tool, fastx32shell (github.com/bandrel/fastx32shell), implements read, forge, rce and scan subcommands plus four nuclei templates. Build fingerprinting is possible with GET /v3/api/ (result.build).

The sources do not state in-the-wild exploitation or attribution of either issue. Defenders should upgrade, restrict access to the FastX web port, filter /socket.io/ at the proxy, and alert on the request patterns listed in the IOCs. Blanket blocking of WebSocket upgrades is not recommended (it breaks /client/protocol and /client/bridge and does not stop this long-polling attack).

## MITRE ATT&CK

- T1595 Active Scanning
- T1190 Exploit Public-Facing Application
- T1059 Command and Scripting Interpreter
- T1552 Unsecured Credentials
- T1606 Forge Web Credentials
- T1078 Valid Accounts
- T1005 Data from Local System
- T1071 Application Layer Protocol

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**FastX Pre-Auth RCE - Unauthenticated gritty Socket.IO Long-Polling Handshake (TL-2026-6812)** (`TL-2026-6812-SPL-001`)

Detects the Engine.IO long-polling handshake (GET /socket.io/?EIO=3&transport=polling) followed by session-bound polling requests that drive the unauthenticated /gritty Socket.IO namespace (40/gritty) in StarNet FastX 3.0.41-3.1.27. TrustedSec states no legitimate traffic on a shipped build looks like this, and the whole attack works over HTTP long polling with no WebSocket upgrade, so it is visible in reverse-proxy or web-server access logs. A hit means a client reached the pre-auth terminal path; commands then run as the fastx service account.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1059
- **Data sources:** web:access_combined, reverse_proxy_access_logs
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=web sourcetype=access_combined (uri_path="/socket.io/" OR uri_path="/socket.io") uri_query="*EIO=3*" uri_query="*transport=polling*"
| eval src=coalesce(clientip, src)
| eval is_handshake=if(method="GET" AND NOT like(uri_query, "%sid=%"), 1, 0), is_session_io=if(like(uri_query, "%sid=%"), 1, 0), gritty_marker=if(like(_raw, "%/gritty%"), 1, 0)
| stats min(_time) as first_seen max(_time) as last_seen sum(is_handshake) as handshakes sum(is_session_io) as session_requests sum(gritty_marker) as gritty_markers values(useragent) as user_agents values(host) as fastx_hosts by src
| where handshakes>=1
| eval stage=if(session_requests>0, "handshake_plus_session_io", "handshake_only"), first_seen=strftime(first_seen, "%Y-%m-%dT%H:%M:%SZ"), last_seen=strftime(last_seen, "%Y-%m-%dT%H:%M:%SZ")
| table first_seen last_seen src fastx_hosts handshakes session_requests gritty_markers stage user_agents
```

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where RequestURL has '/socket.io/' and RequestURL has 'transport=polling' and RequestURL has 'EIO=3'
| extend IsSessionIO = RequestURL has 'sid=', IsHandshake = (RequestMethod =~ 'GET' and RequestURL !has 'sid=')
| summarize FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated), Handshakes=countif(IsHandshake), SessionRequests=countif(IsSessionIO), SampleUrls=make_set(RequestURL, 5) by SourceIP, DestinationIP, DestinationPort, DeviceVendor
| where Handshakes >= 1
| extend Stage = iff(SessionRequests > 0, 'handshake_plus_session_io', 'handshake_only')
| project FirstSeen, LastSeen, SourceIP, DestinationIP, DestinationPort, Handshakes, SessionRequests, Stage, SampleUrls, DeviceVendor
```

### Sigma

```yaml
title: FastX Pre-Auth RCE gritty Socket.IO Long-Polling Handshake
id: 3f9a1c52-8d47-4e2b-b6a1-5c0d9e7f1a11
status: experimental
description: Detects Engine.IO v3 long-polling requests to /socket.io/ on a FastX web server, the transport used to reach the unauthenticated /gritty terminal namespace (40/gritty) in FastX 3.0.41 through 3.1.27.
references:
    - https://trustedsec.com/blog/fastx-in-a-box
    - https://github.com/bandrel/fastx32shell
author: Threadlinqs Team
date: 2026-11-24
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.004
logsource:
    category: webserver
detection:
    selection_path:
        cs-uri-stem|startswith: '/socket.io'
    selection_query:
        cs-uri-query|contains|all:
            - 'EIO=3'
            - 'transport=polling'
    condition: selection_path and selection_query
falsepositives:
    - Other Socket.IO v2 applications (Engine.IO protocol 3) published behind the same reverse proxy
    - Authorized vulnerability scanning of FastX hosts
level: high
```

**Known false positives:**

- Other Socket.IO v2 (Engine.IO protocol 3) applications published behind the same proxy or host
- Authorized internal vulnerability scans or red-team tests against FastX hosts

**Tuning notes:** Scope the search to the hosts and vhosts that front FastX (TCP/3300 or the proxy route). If the access log is a different sourcetype (nginx:plus:access, iis), map clientip/uri_path/uri_query accordingly. Exclude documented scanner source IPs via a lookup. If your proxy logs request bodies, add a search for 40/gritty to raise confidence.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- CVE-2025-57618 FastX Unauthenticated Absolute-Path File Read via [indicator] (locked: unlock with TL Creds)
- FastX File Read Followed by API Access From Same Source (Token Forgery Chain) (locked: unlock with TL Creds)
- FastX Reconnaissance - Build Fingerprinting and Exploit Probing From Single Source (locked: unlock with TL Creds)
- fastx32shell or nuclei FastX Template Execution on Endpoint (locked: unlock with TL Creds)
- FastX Child Process Accessing Credential or Key Material (locked: unlock with TL Creds)
- Reverse Shell Command Patterns Spawned by FastX Web Server (locked: unlock with TL Creds)
- FastX Web Server Spawning Shell or Interpreter Child Process ([indicator] RCE Execution) (locked: unlock with TL Creds)
- FastX Service Account Process Opening Outbound Connection to Public IP (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [TrustedSec - FastX in a Box: Using Docker to Find Where a Pre-Auth RCE Lived (and How It Died)](https://trustedsec.com/blog/fastx-in-a-box)
- [bandrel/fastx32shell - replay tooling and nuclei templates for FastX 3 issues](https://github.com/bandrel/fastx32shell)
- [NVD - CVE-2025-57618](https://nvd.nist.gov/vuln/detail/CVE-2025-57618)
- [Debian Security Tracker - CVE-2025-57618](https://security-tracker.debian.org/tracker/CVE-2025-57618)
- [Positive Technologies dbugs - PT-2025-42163 (Fastx3)](https://dbugs.ptsecurity.com/vulnerability/PT-2025-42163)
- [INCIBE-CERT early warning - CVE-2025-57618](https://www.incibe.es/en/incibe-cert/early-warning/vulnerabilities/cve-2025-57618)
- [Vulners - EUVD-2025-34260](https://vulners.com/euvd/EUVD-2025-34260)
- [Feedly CVE - CVE-2025-57618](https://feedly.com/cve/CVE-2025-57618)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6812
