Security update (bridge and driver 2026-11-02b)
I looked at the bridge the way an attacker would. Until now any device on the LAN, and even a web page opened in a browser at home (DNS rebinding), could send commands to the bridge. Fixed:
- The LAN API refuses requests from web pages (Origin header), hostnames instead of an IP, and anything that is not JSON.
- Pairing: press Koppelen on the bridge setup page and the hub pairs by itself within 5 minutes. From then on every request from the hub is signed (HMAC SHA512 over method, path, time and body) and every answer is signed back. Replays, changed or old requests are refused, and a device that pretends to be the bridge cannot fool the hub. The token never crosses the LAN again after pairing.
- Until you pair, everything keeps working as before; the setup page warns about it.
install-remote.batnow runs the bridge as LOCAL SERVICE (no admin rights), allows PowerShell remoting only from the managing pc, and installs Python packages with exact versions and hashes.
Update: copy the new files and run update-remote.bat (or install.bat / Docker), the driver updates itself from the channel, then press Koppelen. Details in the README.