G5 Password step and login CSRF
Security of the password step: a login-CSRF attack that silently signs the victim into an attacker account is defeated by the password step, plus wrong password, login lockout shared with the login form, a forged confirm form, and the "not you, sign out" line.
A22 Login-CSRF attack is defeated
attack story, one victim video: victim signed in to own account W (name VICTIM), then signed out (the core login ignores a POST while someone is signed in) -> attacker page (fake origin attacker.example.test, served by page.route) auto-POSTs the login of attacker account X (same email as the victim's guest order, name ATTACKER) -> victim is now silently signed in as ATTACKER -> victim opens the genuine link: only the password step "You're signed in as ATTACKER (V)", order stays unlinked. DB/DOM manipulation: both accounts renamed via UPDATE oc_customer.firstname for readability (spec uses E2E), link row inserted directly instead of read from a mail




A23 Wrong password
same victim video: wrong password gives "The password is incorrect. Please try again.", state stays confirm, link unused, order unlinked, 1 failed attempt counted
A24 Lockout shared with the login form
same victim video: failed-login counter set to 1000 by DB manipulation (oc_customer_login); right password refused with "Too many incorrect password attempts. Please try again in 1 hour."; counter then set to 2 by DB and the right password links 1 order (success shot is in this prefix)
A25 Forged confirm form
DOM manipulation (hidden csrf set to "forged" before submit, simulating a cross-site/stale form) with the right password: error "Your session has expired. Please try again.", data-state stays confirm, link unused, order unlinked; reopening the step and submitting the genuine form links 1 order. Link row inserted via DB




A26 "If this isn't your account, sign out"
password step -> click "sign out" -> logout page -> reopening the confirm route leads to the login page (token kept in session, not re-tested past login here). Link row inserted via DB






