Skip to content

Security: ArioMoniri/w-annotator

Security

SECURITY.md

Security

Reporting a vulnerability

Please do not open a public issue for a security problem.

Report it privately through GitHub: on the repository's Security tab, choose "Report a vulnerability". This opens a private advisory that only you and the maintainer can see.

Include what you found, the app version and operating system, and the steps to reproduce it. Do not include patient data. Use synthetic files.

This is a small project with one maintainer. You should get a reply as soon as the maintainer can manage, and you will be told when a fix is released. Please allow time for a fix before publishing details.

Supported versions

Only the latest release receives fixes. The app updates itself from GitHub Releases, and updates are verified against a signing key built into the app.

In scope

  • The desktop app: file parsing (NIfTI, MetaImage, NRRD, DICOM), file access, the Tauri commands and the updater.
  • The room relay in relay/, and room hosting on the local network.
  • The release workflow and the files it publishes.

Problems in third-party components, such as Cornerstone3D or Tauri, should be reported to those projects. If the problem is in how this project uses them, report it here.

What to know about rooms

  • A room is joined with a display name and an invite link. There are no accounts. A link works once and for 24 hours; whoever uses it first is in, so send links privately. The host sees who joined and can remove them.
  • What a room sends is encrypted between the apps (AES-256-GCM) with a room key that travels only in the part of the invite link after #. Whoever runs the relay sees addresses, times, message sizes, member keys and roles. It does not see display names, voxels, segment names or pictures.
  • Whoever runs the relay decides the order of edits and can drop or delay them, or stop delivering to someone. It cannot make up an edit, change one, repeat one, or pass one member's edit off as another's, as long as the apps in the room are newer than 0.1.2. An app does not take the relay's word for what kind of room it is in or who its host is.
  • Every member of a room holds the same room key, and keeps it. Anyone who has ever been given the key and can see the room's traffic can read it. So a member who works together with whoever runs the relay can read what other members send, or pose as one of them. Removing someone stops the relay delivering to them; the key is not changed, so a removed person who can still see the traffic (with the relay operator's help, or on a network without TLS, which includes a room hosted by the desktop app on a local network) can still read it. Start a new room after removing someone you no longer trust.
  • The project has reviewed rooms itself: docs/reviews/rooms-security.md lists what was found, what was fixed and what is accepted. There has been no independent security review.
  • A shared-copy room sends the image and the mask to everyone who joins. Removing a person does not delete the copy they already have.
  • A view-through-host room sends guests 8-bit pictures of the slices they look at and the labels on them, never the file, the stored values, file names or DICOM tags, and writes nothing on a guest's device. It cannot stop a guest photographing or recording their screen, and a guest who visits every slice has seen an 8-bit version of the whole image.
  • A room never carries file names, paths or DICOM tags. Voxel data can still identify a person; de-identify before sharing.
  • A device keeps, for each shared-copy room it is a member of, its member key and the room key in the app's local storage until the room is forgotten, deleted, or unused for 30 days. Rely on disk encryption for a device that may be lost.
  • Run the relay behind TLS, for example behind a reverse proxy that terminates HTTPS, so that clients connect over wss://. Without TLS the encrypted payloads cannot be read by anyone who was never given the room key, but who talks to whom can be seen, connections can be disturbed, and someone on the network path can do what the relay operator can.
  • Anyone who can reach a relay can create rooms on it. Keep a relay private or limit --max-rooms. After a relay restart, whoever first asks to make a room id again gets it; the real host and members are then turned away and need a new room.
  • A room hosted by the desktop app listens on every network the computer is connected to for as long as the room is open (on this computer only when it has no network address). People on those networks cannot read or join the room without a link; they can connect to the relay and use up its 8 rooms and 128 connections.

Not a medical device

W Annotator is not a medical device and must not be relied on for clinical decisions. Remove identifying information from data before sharing it with anyone.

There aren't any published security advisories