oliver-zehentleitner / maity

web e2e: wrong-TOTP check must not use fixed '000000'

Sign in to report

tsk-4hn9nv7dbxw4 Done An agent

web-e2e on #1567 (run 42669997951 attempt 1) failed because "000000" was the real TOTP code in the accepted window (analysis: kg22, seq 99428). e2e.py:2170 and :2288 send a fixed "000000" as the wrong code; the hub accepts now ± 1 step, so roughly 3 in a million runs fail by chance.
Fix: pick a wrong code that is none of totp_code(secret, step-1..step+1). Test-only change, no hub code.