← Voltar ao feed

TrustedSec: Pre-auth RCE via unauthenticated gritty terminal in StarNet FastX 3.0.41–3.1.27; CVE requested, 3.2.27+ not affected

1 fonte(s) · 1 atualização(ões) · publicado 24/11/2026 02:00 · coletado há 1 semana

TrustedSec's Justin Bollinger describes a pre-authentication RCE in StarNet FastX, a remote desktop server. He found it on an engagement against FastX 3.0.47. The gritty web terminal is mounted on the public web server's HTTP listener with no auth callback. It also honors a client-supplied command, so an unauthenticated Socket.IO client can run commands. The post says the RCE affects builds 3.0.41 through 3.1.27 and stopped working by 3.2.27, when the terminal feature broke by accident. Builds 3.1.28 to 3.2.26 are unknown. A CVE request is pending. The author scored it CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N), a self-assessment, not a vendor rating. This is a researcher report only. No vendor advisory or exploitation in the wild is mentioned, and no web research was done for this record.

Entenda a falha

A vulnerabilidade

Pre-auth RCE in StarNet FastX (remote desktop server) builds 3.0.41 through 3.1.27: the gritty web terminal is attached to the public HTTP listener with no auth callback and honors a client-supplied command. An unauthenticated network client can run commands as the fastx account. 3.2.27 and later are not affected (the feature broke by accident); 3.1.28 to 3.2.26 are unknown. A CVE request is pending; the author's self-assessed CVSS 3.1 is 9.8. Separately, CVE-2025-57618 is an unauthenticated file read and token forgery (CWE-36) affecting builds before 3.3.71; the author says 3.3.69 is also affected (NVD says up to 3.3.67) and 3.3.71 is fixed.

Como funciona

The FastX web server starts a Socket.IO server on its own HTTP listener for the terminal, using gritty. The terminal page is admin-gated, but Express middleware never runs on the Socket.IO handshake, so a client can connect directly. The client completes an Engine.IO handshake over HTTP long polling and joins the /gritty namespace. gritty sees no auth callback and admits the client, then uses the command the client supplies instead of the configured one. The command runs in a terminal as the fastx user.

Por que é vulnerável

Two missing safeguards combine: gritty treats an absent auth callback as 'admit everyone', and FastX passes no auth option when attaching it; in addition gritty lets the client's command override the configured one. Relying on Express middleware for protection missed that it does not cover the Socket.IO handshake. In 3.2.27 and later gritty and node-pty are no longer packaged and the terminal moved to user-link, where socketIo(app.server) is undefined, so it is unreachable. The author warns that fixing that line would bring the bug back as a cross-user local issue.

Onde está

The terminal code is in www/server/terminal/, which calls io.listen(app.server) with gritty and no auth option. In later builds the terminal is in user-link (terminal/index.js, line 21: socketIo(app.server)). For CVE-2025-57618, the /error/assets/ route.

Como foi descoberta

Justin Bollinger of TrustedSec found it on an engagement against FastX 3.0.47. His first lab, with only the current builds 3.2.60 and 3.3.71, could not reproduce it, so he obtained older builds, inspected 23 and ran six in CentOS 7 containers to establish the affected range. A CVE request is pending. The articles mention no vendor advisory and no exploitation in the wild.

PoC pública

The author published tooling, fastx32shell, which can scan, do a dry run that completes the handshake and joins the namespace without running anything, and run a command. He ran a command once, on 3.1.27, to prove code execution as the fastx user without any session or credential. Because a public tool exists and the flaw needs no authentication, treat affected builds as urgent to upgrade or restrict.

Explicação gerada por IA a partir da matéria e dos artigos, em 24/11/2026 13:16.

Detalhes técnicos

  • The terminal lives in www/server/terminal/ and uses io.listen(app.server) with gritty and no auth option. The terminal page is admin-gated, but Express middleware never runs on the Socket.IO handshake.
  • gritty treats a missing auth callback as "admit everyone", and the client's command overrides the configured one.
  • The exploit runs over Engine.IO HTTP long polling (not WebSocket upgrade). The signature is GET /socket.io/?EIO=3&transport=polling followed by a 40/gritty, namespace connect.
  • Code execution runs as the fastx account (gid=998 on a real install). The gid=0 seen in the lab was an artifact of the container launch shell.
  • In 3.2.27 and later, gritty and node-pty are no longer packaged. The terminal moved to user-link, where socketIo(app.server) is undefined, so it is unreachable. The author warns that fixing that line would bring the bug back, as a cross-user local issue.
  • The unauthenticated file read and token forgery are a separate flaw, CVE-2025-57618. The author confirms 3.3.69 is also affected (NVD says up to 3.3.67), that 3.3.71 is the fix, and that it is CWE-36 via the /error/assets/%2fetc%2fpasswd absolute path.
  • The author inspected 23 builds and ran six live in CentOS 7 containers. The tooling is github.com/bandrel/fastx32shell.

Remediação

  • Upgrade off 3.0.41–3.1.27. Go to 3.3.71 specifically, because earlier builds still have the file read. FastX 5.1.x is unaffected but requires a full migration.
  • Restrict access to the web port and filter the /socket.io/ path. Do not block WebSocket upgrades, as the FastX client needs them and the exploit does not use them. The author corrected his CVE request on this point.
  • Detect on HTTP long-polling traffic to /socket.io/ with the /gritty namespace. Use fastx32shell scan, or rce --dry-run to confirm without running anything.
  • If you ship gritty yourself, validate auth and stop honoring a client-supplied command, cwd or env.

Linha do tempo

  1. trustedsec.com ↗ · pub. 24/11/2026 02:00 · coletado 24/11 13:00 primeiro registro

    TrustedSec: Pre-auth RCE via unauthenticated gritty terminal in StarNet FastX 3.0.41–3.1.27; CVE requested, 3.2.27+ not affected

    ler a análise desta fonte

    TrustedSec's Justin Bollinger describes a pre-authentication RCE in StarNet FastX, a remote desktop server. He found it on an engagement against FastX 3.0.47. The gritty web terminal is mounted on the public web server's HTTP listener with no auth callback. It also honors a client-supplied command, so an unauthenticated Socket.IO client can run commands. The post says the RCE affects builds 3.0.41 through 3.1.27 and stopped working by 3.2.27, when the terminal feature broke by accident. Builds 3.1.28 to 3.2.26 are unknown. A CVE request is pending. The author scored it CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N), a self-assessment, not a vendor rating. This is a researcher report only. No vendor advisory or exploitation in the wild is mentioned, and no web research was done for this record.

    Technical Details

    • The terminal lives in www/server/terminal/ and uses io.listen(app.server) with gritty and no auth option. The terminal page is admin-gated, but Express middleware never runs on the Socket.IO handshake.
    • gritty treats a missing auth callback as "admit everyone", and the client's command overrides the configured one.
    • The exploit runs over Engine.IO HTTP long polling (not WebSocket upgrade). The signature is GET /socket.io/?EIO=3&transport=polling followed by a 40/gritty, namespace connect.
    • Code execution runs as the fastx account (gid=998 on a real install). The gid=0 seen in the lab was an artifact of the container launch shell.
    • In 3.2.27 and later, gritty and node-pty are no longer packaged. The terminal moved to user-link, where socketIo(app.server) is undefined, so it is unreachable. The author warns that fixing that line would bring the bug back, as a cross-user local issue.
    • The unauthenticated file read and token forgery are a separate flaw, CVE-2025-57618. The author confirms 3.3.69 is also affected (NVD says up to 3.3.67), that 3.3.71 is the fix, and that it is CWE-36 via the /error/assets/%2fetc%2fpasswd absolute path.
    • The author inspected 23 builds and ran six live in CentOS 7 containers. The tooling is github.com/bandrel/fastx32shell.

    Remediation

    • Upgrade off 3.0.41–3.1.27. Go to 3.3.71 specifically, because earlier builds still have the file read. FastX 5.1.x is unaffected but requires a full migration.
    • Restrict access to the web port and filter the /socket.io/ path. Do not block WebSocket upgrades, as the FastX client needs them and the exploit does not use them. The author corrected his CVE request on this point.
    • Detect on HTTP long-polling traffic to /socket.io/ with the /gritty namespace. Use fastx32shell scan, or rce --dry-run to confirm without running anything.
    • If you ship gritty yourself, validate auth and stop honoring a client-supplied command, cwd or env.