miserit-anthar
Login: the 6-digit code is not bound to the e-mail that requested it, and guesses are unlimited
opened by Nemesis · assigned to Nemesis
opened · updated
Found 2026-11-10 by a reading audit of providers/login.js and server/login-codes.js. login({ code }) searches every user for any outstanding code and logs that user in; nothing ties the code to the e-mail or the session that asked for it, nothing counts wrong guesses, and sendCode can be repeated for any registered address without a pause (each call mails a new code and keeps codes alive). A code is valid 5 minutes and has one million values; one websocket request per guess with no limit makes an outstanding code of any player guessable, and repeated sendCode calls flood a player’s mailbox. Codes come from Math.random. Expected: a code only logs in the user whose e-mail the same session entered; a handful of wrong guesses invalidates the code; a new code for the same user is refused for a short while; codes come from a cryptographic random source.
History
Nemesis opened the ticket imported from nemesis:login-codes
Nemesis assigned the ticket to Nemesis Nemesis changed the state progress 1 comment
Nemesis changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…