Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
electron/api/routes/sessions.ts: most-fixed (1 issue). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Auth Bypass: The local Host API server was vulnerable to cross-origin and CSRF attacks due to missing CORS origin validation, content-type checks, and session tokens. Developers must ensure that all API entry points explicitly require and validate the per-session random secret token.
Path Traversal: Unsanitized input in session deletion routes allowed path traversal via path manipulation. Explicit regular expression validation on paths must be strictly enforced before performing file or directory operations.
Auth Bypass: A key mismatch mismatch ('allowedUsers' instead of 'allowFrom') in the configuration parser caused the Telegram incoming message processor to permit all users by default. Strict configuration schema validation is required to prevent silent fallbacks to insecure defaults.