693 B
693 B
Remaining Security Issues
No rate limiting on✅/reauth— brute-force possible via export dialogNo Content Security Policy (CSP) header — XSS could leak crypto key from sessionStorage✅- Crypto key in sessionStorage (extractable) — necessary for refresh persistence, but XSS can steal it. HttpOnly cookie + service worker is more secure but complex
No session rotation — same token until logout; if leaked, valid for 24h✅- No 2FA — opted out of TOTP implementation
Password generator modulo bias —✅c.charAt(arr[i] % c.length)has slight bias when c.length does not divide 2^32; not practically exploitable