Non-destructive scanner for CVE-2026-105105, detecting unauthenticated ZeroMQ command/telemetry buses in NASA-AMMOS AIT-Core via ZMTP mechanism and canary publish checks.
This repository contains a responsible vulnerability scanner for CVE-2026-105105, a critical missing-authentication flaw (CWE-306) in the NASA-AMMOS AIT-Core (AMMOS Instrument Toolkit) telemetry and command server.
ait-server binds its ZeroMQ message bus to all network interfaces with no authentication and
no transport security. Any host that can reach TCP 5559 can publish onto the internal command
topic, which in the shipped default configuration is forwarded to the spacecraft command-uplink
port. Any host that can reach TCP 5560 can read every message on the ground bus.
The scanner confirms the exposure without ever publishing to the command topic, so nothing is forwarded toward a command uplink during a scan.
ait-core <= 3.1.13863f4c)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HThe broker creates an XSUB/XPUB proxy and binds both sockets without configuring any ZeroMQ security mechanism — no CURVE, no ZAP, no PLAIN, no TLS anywhere in the tree:
# ait/core/server/broker.py:54-58
self.frontend = self.context.socket(zmq.XSUB)
self.frontend.bind(self.XSUB_URL) # :55
self.backend = self.context.socket(zmq.XPUB)
self.backend.bind(self.XPUB_URL) # :58
Both URLs default to all interfaces:
# ait/core/__init__.py:47-48 (vulnerable, <= 3.1.1)
SERVER_DEFAULT_XSUB_URL = "tcp://*:5559" # tcp://* == 0.0.0.0
SERVER_DEFAULT_XPUB_URL = "tcp://*:5560"
The shipped config/config.yaml does not override server.xsub / server.xpub, so the defaults
apply to a stock deployment. That same config subscribes an outbound stream to the command topic
and emits it on the uplink UDP port:
# config/config.yaml:164-168
outbound-streams:
- stream:
name: command_stream
output: 3075 # UDP command-uplink port
command_subscriber: True
On startup the broker confirms this binding itself:
WARNING | No output stream was designated as the command subscriber, command_stream was selected as the default.
INFO | Subscribing <PortOutputStream name=command_stream> to topic __commands__
attacker PUB -> tcp://TARGET:5559 XSUB ingress broker.py:55
-> proxy forward broker.py:47
-> XPUB 5560
-> command_stream, subscribed to __commands__
-> PortOutputClient.publish client.py:143
-> UDP :3075 command uplink
The default command topic is __commands__ (ait/core/__init__.py:38) and the wire format is
msgpack. No plugin, credential, or user interaction is required.
This was an oversight, not a design choice: the inbound UDP telemetry listeners were
deliberately pinned to loopback (client.py:33-34), while the far more powerful ZeroMQ
command/telemetry bus was left on tcp://*.
Four checks, in increasing order of proof, none of which touch the command topic:
| # | Check | What it proves |
|---|---|---|
| 1 | TCP connect to 5559 / 5560 | the bus is bound to a non-loopback interface and remotely reachable |
| 2 | ZMTP greeting inspection | the socket negotiates the NULL mechanism, i.e. no authentication |
| 3 | SUB subscribe-all on 5560 | unauthenticated read of the live ground bus (telemetry exfiltration) |
| 4 | Canary publish on 5559 | unauthenticated write access to the bus |
Check 2 is the decisive non-invasive test. A ZMTP 3.x greeting is 64 bytes and advertises the
peer's security mechanism in bytes 12-31. NULL means the socket authenticates nobody; CURVE
means CurveZMQ keys are required. Reading that field costs one TCP connection and sends no
application data.
Check 4 publishes a random, single-use canary topic (__ait_scan_canary_<random>__) and reads
it back from the egress. A random topic matches no configured stream subscription, so the broker
forwards it to the scanner's own subscriber and to nobody else. This proves the injection primitive
while leaving __commands__ untouched — verified in the lab with a listener on UDP 3075, which
received nothing for the duration of a scan.
git clone https://github.com/Mothra-1/CVE-2026-105105.git
cd CVE-2026-105105
pip3 install -r requirements.txt # pyzmq, msgpack
python3 scanner.py -t 10.0.0.15
Useful flags:
# sample the bus for longer, while the ground system is actively passing telemetry
python3 scanner.py -t 10.0.0.15 --listen 30
# fully passive: skip the canary publish, read-only
python3 scanner.py -t 10.0.0.15 --no-write-test
# non-default broker ports
python3 scanner.py -t 10.0.0.15 --xsub-port 5559 --xpub-port 5560
Exit codes: 2 vulnerable, 1 exposed but unconfirmed, 0 no unauthenticated access confirmed.
Run the scanner from a remote vantage point, not on the server itself. The finding is that the bus is reachable from the network. A patched 3.1.2 host still binds loopback deliberately, so scanning
127.0.0.1on that host will connect and report the NULL mechanism — which is the intended configuration, not the vulnerability. Scan the host's routable address.
Verified against both versions:
ait-core | scanned from | result |
|---|---|---|
| 3.1.1 | the host's routable address | [ CRITICAL ] VULNERABLE, exit 2 |
| 3.1.1 | 127.0.0.1 | [ CRITICAL ] VULNERABLE, exit 2 |
| 3.1.2 | the host's routable address | [ RESULT ] NOT EXPOSED, exit 0 |
Against a stock ait-core 3.1.1 instance:
+---------------------------------------------------------------+
| CVE-2026-105105 - AIT-Core ZeroMQ Bus Scanner |
| Unauthenticated command/telemetry bus (CWE-306, 9.8) |
| (Responsible Check Only) |
+---------------------------------------------------------------+
[*] Target : 127.0.0.1 (XSUB 5559 / XPUB 5560)
[*] Mode : non-destructive - the command topic is never touched
[1/4] Broker reachability
[+] XSUB ingress tcp/5559 is OPEN and remotely reachable
[+] XPUB egress tcp/5560 is OPEN and remotely reachable
[2/4] ZMTP security mechanism
[+] tcp/5559: ZMTP 3.1, mechanism=NULL -> NO AUTHENTICATION required
[+] tcp/5560: ZMTP 3.1, mechanism=NULL -> NO AUTHENTICATION required