Skip to content

Sharing the first folder to an untrusted device on an established connection sends plain-text #7509

Closed

Description

@imsodin

Was discovered in https://forum.syncthing.net/t/problem-adding-second-trusted-device-connected-to-untrusted-device/16538

Prerequisites

Devices A+B: Discovery and nat traversal deactivated, Relaying on (Windows x32)
Device U: Discovery, nat traversal and relaying deactivated (Ubuntu 20.04 64bit)
All Devices on v1.15.0-rc.5, Windows machines using SyncTrayzor
Devices A and B are connected to U. Status: Connected (unused)

Steps to reproduce

Add new Folder to Device A and share it with encryption password
Receive Folder on U and add it.

=> U will now show “Up to date” but will not receive any data. A will show “Syncing” for the device and “up to date” for the folder while not sending any data.

Pause the new Folder on A and resume it

=> A and U will now sync but U will now have the unencrypted data at the chosen path.

A connection handles multiple folders, every single can be encrypted or not. Which folders are or not encrypted is set when the connection is created. At the time the code was written that was ok, as we dropped a connections when any folder changed. Now we don't anymore, thus adding an encrypted folder doesn't make that connection encrypted until the connection is dropped (restart, device pause, ...).

Should this go into the changelog? It's definitely a "note-worthy" bug, but the untrusted feature is still in testing/preview. Not sure.

The point about having to pause and resume the folder to make anything happen is unrelated (did repro but don't yet know why it happens).

Activity

  1. added
    bug
    needs-triage
    on Mar 21, 2021
  2. added 2 commits that reference this issue on Mar 21, 2021
    19f65b0
    45565c6
  3. added a commit that references this issue on Mar 22, 2021
    924b968
  4. added this to the v1.15.0 milestone on Mar 23, 2021
  5. added a commit that references this issue on Apr 5, 2021
    d1011dc
  6. added
    frozen-due-to-age
    on Aug 11, 2022
  7. locked and limited conversation to collaborators on Aug 11, 2022
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

    bugfrozen-due-to-ageneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions