Skip to content

Browser GUI autofill re-used in folder encryption #10341

Closed

Description

@ProactiveServices

Oddly I can't recreate this on some of my systems, but can reproduce it on one affected system.

  • Create new syncthing install and Firefox profile
  • From syncthing's Web GUI warning about setting a login, click Settings and set a login , e.g. "username" / "password"
  • Save changes, accept browser prompt to save to autofill
  • Connect with a remote device
  • On the remote device share a folder that does not use encryption
  • Accept GUI prompt to accept folder. Notice that the "path" has been autofilled with the chosen GUI username
  • Notice will appear that "remote expects to exchange plain data, but local data is encrypted", and in folder settings the encryption padlock is set
  • config.xml entry for the folder has "password" as the encryptionPassword

It appears this has been sporadically reported on the forum multiple times over the years:

https://forum.syncthing.net/t/syncthing-carries-on-making-specific-folder-encrypted-when-i-dont-want-it-to-be/22897
https://forum.syncthing.net/t/solved-error-new-device-remote-expects-to-exchange-encrypted-data-but-is-configured-for-plain-data/24652
https://forum.syncthing.net/t/first-install-remote-expects-to-exchange-plain-data-but-local-data-is-encrypted-folder-type-receive-encrypted/24381

Syncthing version

2.0.4

Platform & operating system

Linux AMD64

Browser version

Firefox 142.0.1

Relevant log output

Activity

  1. added
    bug
    needs-triage
    on Sep 2, 2025
  2. bt90 commented on Sep 2, 2025

    @bt90
    Contributor

    I've noticed that we don't really tell the browser how the deal with the input regarding autocomplete. Maybe #10342 might solve this?

  3. Charlie-Ramirez-Animation-Studios-de-MX commented on Dec 2, 2025

    @Charlie-Ramirez-Animation-Studios-de-MX

    I confirm on Windows 11 for v2.0.12 "Hafnium Hornet" Build 2025-11-24 using Firefox with Saved Pasword or autofill for the Web GUI

    When trying to add a folder from another device in Firefox, the latest update causes folders to be created in a "drunk state," marked as "Receive encrypted" even though the user and the GUI show "Send and Receive".

    Image

    Logs shows:

    2025-12-02 06:26:34 INF Ready to synchronize (folder.label=InternaE60Neo folder.id=kcgrr-rbnkm folder.type=sendreceive log.pkg=model)
    2025-12-02 06:26:34 INF Completed initial scan (folder.label=InternaE60Neo folder.id=kcgrr-rbnkm folder.type=sendreceive log.pkg=model)
    2025-12-02 06:26:49 ERR Failed to verify encryption consistency (folder.label=InternaE60Neo folder.id=kcgrr-rbnkm folder.type=sendreceive device=XCKJL6I error="remote expects to exchange plain data, but local data is encrypted (folder-type receive-encrypted)" log.pkg=model)
    2025-12-02 06:26:49 INF Lost device connection (kind=primary device=XCKJL6I connection=[There is an IP LOL] error="handling cluster-config: remote expects to exchange plain data, but local data is encrypted (folder-type receive-encrypted)" remaining=10 log.pkg=model)
    

    Also , several fields when accepting the folder are "autofilled" by Firefox with the username in the Folder Route and GUI password on the Sharing tab.

    Image Image

    The problem doesn't seem to affect folders that were previously in use with earlier versions of Syncthing, only those that were recently created or added.

    As a temporary solution to prevent the creation of these folders with "drunken encryption," simply delete the autofilled password in the sharing field and continue as usual. This creates a "normal" folder with proper send/receive functionality,

    Image Image and the padlock icon disappears from the device name.

    Now everything works fine

    Image

    Alternatively, you could use incognito mode or simply not save the password or username in Firefox's autofill (but for many, this is neither a solution nor the desired outcome).

  4. Charlie-Ramirez-Animation-Studios-de-MX commented on Dec 2, 2025

    @Charlie-Ramirez-Animation-Studios-de-MX

    Additionally, I could suggest changing the bug name to:
    "Browser GUI autofill is reused in folder sharing tab Causes a bugged "receive-encrypted folder"
    [I don't know if this is valid, not all GitHub communities do it, but this would describe the problem better] - And in fact, I almost created a duplicate if I hadn't come in looking to see if anyone else had already experienced this.

    -It might be useful to add a check so that if the sharing field is not empty, the alternative modes (send or receive) cannot be chosen, or to force the selection of encrypted mode to avoid creating folders with broken modes that cannot be modified later with the GUI settings.

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

    bugneeds-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions