Skip to content

security(sync): let the host share on one chosen network instead of every interface #599

Closed as not planned

Description

@DeepDiver1975

Problem

Sharing an incident always binds the sync host to every interface: IncidentHostController.cs:60 calls host.StartAsync(IPAddress.Any). A laptop in the ELW that is on the vehicle WLAN, Tailscale and a hotel or Gerätehaus network at the same time offers the incident, and its PIN gate, on all of them. SECURITY.md lists "the host listens on every interface" as a known limit.

Proposal

Let the Lagebuchführer choose the network when starting to share.

  • The choice: "Alle Netzwerke", or one detected network.
    • The list comes from the adapters LocalNetwork already enumerates.
    • Each entry carries a readable label (Tailscale, WLAN/LAN name, address).
    • Tailscale and private RFC1918 addresses are marked as such.
  • Binding: IncidentHost.StartAsync already accepts a bind address and uses o.Listen(bindAddress, …) for anything that isn't Any (IncidentHost.cs:130, :164). Mostly this is plumbing plus a picker.
  • Memory: the last choice is remembered. If that network is gone next time, ask again; never fall back silently to all networks.
  • Address shown: ShareHint / the "ERREICHBAR UNTER" flyout shows the bound address, not the guessed DisplayAddress().
  • Platform: desktop only, since Android does not host.

Scope

  • No wire change, so no protocol bump.
  • Tests:
    • a view-model test that the picked address reaches StartAsync;
    • a test that a vanished remembered network re-prompts;
    • a host test that a peer on another interface cannot connect.
  • Screenshot of the picker in the PR.
  • Update the "listens on every interface" limit in SECURITY.md and docs/datenschutz-und-sicherheit.md.

Activity

  1. added
    enhancement
    security
    on Oct 16, 2026
  2. DeepDiver1975 commented on Oct 17, 2026

    @DeepDiver1975
    ContributorAuthor

    Closing as not planned, for the same reasons as #612 (see #618).

    • The threat doesn't fit the deployment. It needs an ELW laptop that is on a hotel or Gerätehaus network during an Einsatz, plus an attacker on that network who then still has to beat JoinGate's budget of ten wrong PINs per PIN, after which joins close. Someone in that position is already on a network the Einsatzdaten travel over.
    • It adds a step at the worst moment. Sharing starts at the beginning of an Einsatz or Übung. A picker there, plus "the remembered network is gone, choose again" exactly when the vehicle's network setup changed, adds a decision under stress that the Lagebuchführer can't judge any better than the default.
    • The limit is already documented honestly in SECURITY.md and docs/datenschutz-und-sicherheit.md ("Reichweite").

    If the exposure should be visible rather than configurable, a much smaller change would do it: list every address the host is reachable on in the "ERREICHBAR UNTER" flyout. That's a display change with no new step, and it can be its own issue if we want it.

    🤖 Generated with Claude Code

  3. added a commit that references this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions