F-01LowFixedLocal attack surface
Desktop local proxy accepts connections without authentication
- CVSS
- Not scored
- Retest
- · version commit 71156e1
Summary
On macOS and Windows the app starts the core's local proxy with only a link and a listen address, so the SOCKS5/HTTP port on 127.0.0.1 never requires credentials.
Details
lib/core/singlink_service.dart:97-101 sends {"link","listen"} to SingLinkStart; core/ffi/main.go:100-108 maps an absent "auth" field to engine.Options{Auth:false}. The protocol engine documents that Auth exists "so other local users and apps cannot use the tunnel" (singlink-protocol engine/engine.go:52-55, socks5/socks5.go:34-36). The listen address is restricted to loopback, so remote hosts cannot connect, and browsers cannot use the port because origin-form HTTP requests are rejected. Any local process, including processes of another local user account, can relay TCP and UDP traffic through the user's server and token while the app is connected. Leaving authentication off is a deliberate choice for system proxy mode, but it is also off when the system proxy setting is disabled. Not exercised on a desktop app build. Retest at commit 71156e1 (2026-11-19), fixed in commit 99bfbee: the app always sends "auth" (lib/core/singlink_service.dart:139) and asks for authentication whenever the system proxy is not used (lib/core/client_controller.dart:119). SingLinkStart treats a missing field as true and stops the engine when no credentials come back (core/ffi/main.go:118-133). Settings shows host, port, username and a masked password, and with the system proxy on it states that the port is open to every local app and user account (lib/ui/settings_page.dart:349-400). In protocol 23bf613 the engine generates the credentials from crypto/rand, compares them in constant time and clears them on stop. The Go and C ABI tests for refused and accepted logins passed (E-25). With the system proxy on, the default (lib/core/app_store.dart:68), the port stays open to local processes; the app now says so, as recommended.
Recommendation
Enable engine authentication whenever the system proxy is not used, show the generated credentials to the user for manual proxy configuration, and state in the UI that the local port is open to every local process when authentication is off.
Retest result
Fixed: the local proxy requires a per-session login whenever the system proxy is not used, and the app states when the port is open.