The sabia ui token was SystemTime::now() in nanoseconds. Another user or process on the same machine could guess it by trying values around the startup time, then control the API: captures, deauthentication, Evil Twin.
The token is now 32 bytes from getrandom, the OS CSPRNG, which also works on the Windows CLI.
The 3 checks compare in constant time (token_ok).
Version 1.0.6, with CHANGELOG in EN and PT-BR. The desktop app does not use this token.
Verified
scripts/check.sh passes, and so do the new unit tests.
I ran sabia ui for real: the printed link returns 200, and requests with no token or a wrong token return 401.
## What
The `sabia ui` token was `SystemTime::now()` in nanoseconds. Another user or process on the same machine could guess it by trying values around the startup time, then control the API: captures, deauthentication, Evil Twin.
- The token is now 32 bytes from `getrandom`, the OS CSPRNG, which also works on the Windows CLI.
- The 3 checks compare in constant time (`token_ok`).
- Version 1.0.6, with CHANGELOG in EN and PT-BR. The desktop app does not use this token.
## Verified
- `scripts/check.sh` passes, and so do the new unit tests.
- I ran `sabia ui` for real: the printed link returns 200, and requests with no token or a wrong token return 401.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The token was the startup time in nanoseconds, guessable by another local
user or process within a small window, which would hand over the API
(captures, deauth, Evil Twin). It is now 32 random bytes from getrandom,
checked in constant time. Release 1.0.6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
The
sabia uitoken wasSystemTime::now()in nanoseconds. Another user or process on the same machine could guess it by trying values around the startup time, then control the API: captures, deauthentication, Evil Twin.getrandom, the OS CSPRNG, which also works on the Windows CLI.token_ok).Verified
scripts/check.shpasses, and so do the new unit tests.sabia uifor real: the printed link returns 200, and requests with no token or a wrong token return 401.🤖 Generated with Claude Code