Repository navigation
v2.0.0
Bridge 2.0.0
A security release. Please update all of your devices — 2.0.0 cannot sync with 1.x.
What was wrong
In 1.x, to prove that each sync request came from a trusted device, Bridge put your sync key itself in a request header, sent over plain HTTP. The key used to encrypt your data was derived from that same sync key.
That meant anyone who could observe the traffic between your devices on the same network could read the sync key from the very first request, decrypt everything that was synced (text, images, files), and pretend to be one of your devices.
Our privacy policy and README said that someone who doesn't know the sync key can't read the traffic. For someone who can observe the traffic, that was not true, and we are sorry for the inaccurate claim. Both documents have been corrected.
How likely was it to matter? An attacker needed to be able to see the traffic between your devices. On a typical home Wi-Fi with WPA2/WPA3 that is difficult, but on public or shared networks it can be possible. We have always asked you to use Bridge only on networks you trust, but that does not change the fact that we told you the traffic could not be read by others when it could.
What changed
- The sync key is never sent over the network anymore. Each request carries only a keyed proof (an HMAC that includes a timestamp and a one-time value). Replayed requests and tampered request bodies are rejected.
- Separate keys for authentication and encryption, both derived from your sync key. The encryption of your data (AES-256-GCM) is unchanged.
- Clearer error messages when devices cannot connect: “The other device is on an old version”, “The clocks on the two devices differ” (devices more than 1 minute apart will not connect, for safety), or “Sync keys do not match”.
- A warning when you enter a short sync key, because short keys are easy to guess. The key Bridge generates for you (64 characters) is fine.
- Automated tests now cover replays, tampering, wrong keys, and the old 1.x header.
Nothing else about how Bridge works has changed.
What you should do
- Update every device to 2.0.0 or later. A device on 1.x will not connect, and you will see “The other device is on an old version” or “The other device is old, or the sync key differs”.
- If you used 1.x on a network you do not fully trust, change your sync key. In Settings, replace the sync key on one device with a new long random one (at least 24 characters is recommended; a password manager can generate it), then use “Copy” on that device and “Paste” on the others.
Updating
Download the installer for your OS from the assets below and install it over your current copy. Your settings and history are kept. Because the app is not signed, macOS may ask for Open Anyway again (System Settings → Privacy & Security), and Windows may show the “Windows protected your PC” screen again.
There is no automatic update. Pressing “Check for updates” only tells you whether a newer version exists and opens the release page.
More help: Support · Privacy Policy
Bridge 2.0.0(日本語)
セキュリティの修正版です。すべての端末をアップデートしてください。2.0.0 は 1.x と同期できません。
何が問題だったか
1.x では、同期のリクエストが、信頼できる端末からのものだと確かめるために、同期キーそのものをリクエストのヘッダーに入れて、暗号化されていない HTTP で送っていました。しかも、データを暗号化する鍵も、同じ同期キーから作っていました。
そのため、同じネットワークで、端末どうしの通信を観察できる人は、最初のリクエストから同期キーを読み取り、同期された内容(文字・画像・ファイル)をすべて復号し、端末になりすますことができました。
プライバシーポリシーと README には、「同期キーを知らない人は、通信の内容を読み取れません」と書いていましたが、通信を観察できる人に対しては、成り立っていませんでした。不正確な記載をしていたことを、おわびします。記載は、どちらも訂正しました。
どれくらい起こりえたか: 攻撃者が、端末どうしの通信を見ることができる必要があります。WPA2/WPA3 の一般的な家庭用 Wi-Fi では難しいですが、公共の Wi-Fi や、共有のネットワークでは、起こりえます。これまでも、「信頼できるネットワークでお使いください」とお願いしていましたが、その前提においても、「他の人は読み取れない」とお伝えしていたことと相違していたことについては変わりません。
変更点
- 同期キーを、通信に流さなくなりました。各リクエストには、キーを知っている証明(時刻と使い捨ての値を含む HMAC)だけを載せます。再送されたリクエストと、すり替えられた本文は、拒否します。
- 認証用と暗号化用の鍵を分けました(どちらも同期キーから作ります)。データの暗号化(AES-256-GCM)は、変わりません。
- つながらないときの表示が、分かりやすくなりました。「相手のバージョンが古いです」「2 台の時計がずれています」(1 分以上ずれると、安全のため、つながりません)「同期キーが一致しません」。
- 短い同期キーを入れたとき、警告を出すようにしました。短いキーは推測されやすいためです。Bridge が自動で作るキー(64 文字)は、問題ありません。
- 再送、改ざん、キー違い、1.x の古い形式を、自動テストで確かめるようにしました。
ほかの動きは、変わっていません。
やっていただきたいこと
- すべての端末を、2.0.0 以上にアップデートしてください。1.x のままの端末とは、「相手のバージョンが古いです」または「相手が古いか、同期キーが違います」と表示されて、つながりません。
- 信頼できないネットワークで、1.x を使っていた場合は、同期キーを新しいものに変えてください。設定で、1 台の同期キーを、新しい長いランダムな文字列(24 文字以上推奨。パスワード管理アプリで作れます)に書き換え、その端末で「コピー」、ほかの端末で「貼り付け」を押します。
アップデートの方法
下のファイルから、お使いの OS のインストーラーをダウンロードして、いまのアプリの上から、そのまま入れてください。設定と履歴は、引き継がれます。アプリは署名されていないため、macOS では、もう一度「このまま開く」(「システム設定」→「プライバシーとセキュリティ」)が必要になることがあります。Windows でも、「WindowsによってPCが保護されました」の画面が、もう一度出ることがあります。
自動更新はありません。「アップデートを確認」は、新しいバージョンがあるかを知らせて、リリースのページを開くだけです。
困ったときは: サポート · プライバシーポリシー