Resolve vulnerability VDP-3322

Aperta
#428 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker-compose, javascript

Direzione di ricerca

Start by reading the Mosquitto configuration and the MQTT service's port mapping in docker-compose.yml; the issue also points to mqtt_client.py as the path into PostgreSQL. The full reproduction details are in a PDF available from @mfarina1, and the issue relates to #426 and VDP-33156. Done means anonymous network clients can no longer read or publish broker messages under the shipped defaults.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug CRIT-4

In accordance with the findings from the NASA Vulnerability Disclosure Program, a summary of VDP 3322 can be found below, as well as suggestions for remediation. For more information like how to recreate the issue, contact @mfarina1 for the full PDF description. Note that this issue should is a low priority compared to VDP-33156, but they are interrelated and also related to #426.

Researcher Description
The ANMS Mosquitto MQTT broker ships with allow_anonymous true and zero ACLs. Port 1883 is
bound to the host in docker-compose.yml. Anyone on the network can subscribe to all topics (wildcard
#), read internal DTN agent messages, and publish arbitrary data into the ANMS pipeline. This is the
shipped default · not a deployment misconfiguration.
The entire Mosquitto config file is two lines:

listener 1883
allow_anonymous true

No password_file, no acl_file, no TLS. And docker-compose.yml exposes the port:

ports:
  • "${MQTT_PORT:-1883}:1883"

Business Impact
An attacker on the network can eavesdrop on all DTN agent telemetry and internal ANMS service
communication, publish poisoned data to any topic (which flows into PostgreSQL via mqtt_client.py),
and hijack MQTT client IDs to disconnect legitimate ANMS services from the message bus.

Remediation Advice

  1. API: Use security focused APIs to check for proper security controls.
  2. Session Management: Use proper session management checks to disallow unauthenticated users
    accessing protected and sensitive resources.
  3. Access Control: Use proper access control checks to disallow unprivileged users from accessing
    protected and sensitive resources.
Lingua principale
JavaScript
Stelle
3
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NASA-AMMOS/anms

Tutte le issue di NASA-AMMOS/anms

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.