Testing one-time codes, two-factor sign-in and CAPTCHA
Test factor independence, code acceptance windows, recovery and bot-check integration against the chosen assurance policy.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a door with a remembered password and a token. One check needs something you know, the password. The other needs control of a device that produces a changing code. A physical key plus an ordinary device-generated code would both be possession proofs, so that picture alone would not establish two different factors.
Daily List is a to-do list app. Nina, the product owner, wants a second step at sign-in. After the password, Lily types a short code from her phone. Tom, the tester, tests the key, the code and the clock.
He tries the right code. He tries a wrong one. He tries a code that is a minute old. He tries the same good code twice. He tries many wrong codes in a row. Each case should end in a clear, calm reply.
This second step is two-factor sign-in. The code is a one-time code. Some pages add a bot-mitigation check; it does not prove a person’s identity or stop every program. It is called a Completely Automated Public Turing test to tell Computers and Humans Apart ().
The picture has a limit. A real door has one lock and one display. An app has resend buttons, lost phones and codes sent by text or email, and each of those needs tests.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
An old code means one outside the configured acceptance window, not simply any code the display no longer shows. Two steps alone do not establish two independent factor kinds.
PLAIN WORDS · 2 in this section
- resend
- send it again
- configured
- set up with chosen settings
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Treating a second sign-in step as a lock whose code, tries and doors a tester checks.
- Right code
- Wrong code
- Old code
- Used twice
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A remembered door password | Something you know, the password |
| A changing code from a device you control | Possession of the OTP authenticator |
| A lock that stays shut after too many tries | The lock-out after wrong codes |
| A side door with no lock | A way in that skips the second step |
WHERE THIS PICTURE STOPS
- A real door has one lock, but an app has resend buttons and lost phones.
- A display is read by eye, but a code is typed and can be pasted.
- A door lock never needs a clock, but a time-based code depends on one.
HOOK
Right, wrong, old, twice.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
Test the password, device code and clock against the declared sign-in and recovery policy.
| In the trick | What it stands for |
|---|---|
| Password | Something you know |
| Code | a code from the phone |
| Clock | the code changes with the clock |
TELL A FRIEND
A door with a remembered password and a device code. Test the password, device code, clock and each ordinary/recovery route against its assurance policy.
OFTEN MIXED UP WITH Log-in and session testing. Login and sessions covers the first step of signing in. This lesson covers the second step and the puzzle.
PRACTISE AND KEEP
Sources for this topic — 10 sources
- Market practice
Multifactor Authentication Cheat Sheet (OWASP) ↗ — Open Worldwide Application Security Project · 8November2026 actual OWASPMFA Intro/factorindependence,OTPHandling/Storage,riskbasedauth and ResettingMFA selectedsections read. Context-specific lifecycle/recovery; no jurisdiction/compliance or fullpage claim.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: 8November2026 actual OWASPMFA Intro/factorindependence,OTPHandling/Storage,riskbasedauth and ResettingMFA selectedsections read. Context-specific lifecycle/recovery; no jurisdiction/compliance or fullpage claim.
- Market practice
RFC 6238: TOTP: Time-Based One-Time Password Algorithm ↗ — Internet Engineering Task Force · RFC6238 May2011 Informational: selected5.2validation/time-step,6resynchronisation and AppendixB selectedSHA1vector read8November2026. Window/clock policy and successful-use replay state differ;30s defaultrecommendation, not universalexpiry. Earlier000000zero-padding history retained.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: May 2011. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: RFC6238 May2011 Informational: selected5.2validation/time-step,6resynchronisation and AppendixB selectedSHA1vector read8November2026. Window/clock policy and successful-use replay state differ;30s defaultrecommendation, not universalexpiry. Earlier000000zero-padding history retained.
- Market practice
Inaccessibility of CAPTCHA (W3C Working Group Note) ↗ — World Wide Web Consortium · A visual puzzle can shut out people with disabilities, so a person needs another way through (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Note, 23 August 2019. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practiceSP 800-63B-4, final July 2025
NIST SP 800-63B-4Digital Identity Guidelines: Authentication and Authenticator Management ↗ — National Institute of Standards and Technology (NIST) · NISTSP800-63B-4 finalJuly2025 original129pagePDF: selected3.1.3email/OOB vs confirmation/recovery,3.1.4OTP,3.2.2throttling,3.2.3biometrics and4.2recovery passages actually read8November2026 via normalwebsearch and officialHTML. No fullPDF/installedimplementation or universalprivate-sector obligation claim.Final primary authentication chapter operative sections read on 6 November 2026. US federal digital-identity guidance; no universal bank-payment obligation inferred. Voice comparison is prohibited in this standard; face PAD and non-biometric alternative requirements are scoped accordingly.
- Market practice
Test Site Keys (Prosopo documentation) ↗ — Prosopo · 8November2026 completecurrent substantive ProsopoTestkeys section119–180 read. Passkey emits token, failkey emitsnone/frontendfailure; reservedpassverification bypassessecretmatching and producesnoscore. Not normalkey expiry/replay/secretvalidation certification.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: 8November2026 completecurrent substantive ProsopoTestkeys section119–180 read. Passkey emits token, failkey emitsnone/frontendfailure; reservedpassverification bypassessecretmatching and producesnoscore. Not normalkey expiry/replay/secretvalidation certification.
- Market practiceSP 800-63B-4, final July 2025
NIST SP 800-63B-4Digital Identity Guidelines: Authentication and Authenticator Management ↗ — National Institute of Standards and Technology (NIST) · NISTSP800-63B-4 finalJuly2025 original129pagePDF: selected3.1.3email/OOB vs confirmation/recovery,3.1.4OTP,3.2.2throttling,3.2.3biometrics and4.2recovery passages actually read8November2026 via normalwebsearch and officialHTML. No fullPDF/installedimplementation or universalprivate-sector obligation claim.Final primary authentication chapter operative sections read on 6 November 2026. US federal digital-identity guidance; no universal bank-payment obligation inferred. Voice comparison is prohibited in this standard; face PAD and non-biometric alternative requirements are scoped accordingly.
- Market practice
RFC 6238: TOTP: Time-Based One-Time Password Algorithm ↗ — Internet Engineering Task Force · RFC6238 May2011 Informational: selected5.2validation/time-step,6resynchronisation and AppendixB selectedSHA1vector read8November2026. Window/clock policy and successful-use replay state differ;30s defaultrecommendation, not universalexpiry. Earlier000000zero-padding history retained.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: May 2011. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary update: RFC6238 May2011 Informational: selected5.2validation/time-step,6resynchronisation and AppendixB selectedSHA1vector read8November2026. Window/clock policy and successful-use replay state differ;30s defaultrecommendation, not universalexpiry. Earlier000000zero-padding history retained.
- Market practice
Understanding Success Criterion (SC) 3.3.8: Accessible Authentication (Minimum) ↗ — World Wide Web Consortium (W3C) · WCAG2.2 Understanding3.3.8 informativecriterion/intent/cognitive/pasteexamples read8November2026. Audio transcription not Alternative; whole-codepaste/passwordmanagers; existinguserauthentication scope, not fullWCAGaudit.
Primary page opened and read on 2026-10-21. Scope is the claim described here; this does not upgrade earlier citations to other pages. Examples in Daily List are synthetic teaching examples.
Verification supplement, 6 November 2026: Actual WCAG2.2 Understanding SC3.3.8 opened: audio transcription CAPTCHA does not meet Alternative exception. Informative guidance, not itself the normative Recommendation.
8 November2026 bounded primary update: WCAG2.2 Understanding3.3.8 informativecriterion/intent/cognitive/pasteexamples read8November2026. Audio transcription not Alternative; whole-codepaste/passwordmanagers; existinguserauthentication scope, not fullWCAGaudit.
- Market practice
Prosopo — Server-side verification, selected response semantics ↗ — Prosopo · 8November2026 primary ProsopoSerververification APIintro/selectedSDK and response/errorsoftfailure sections read. HTTP200 alone not verifiedtrue; normalmalformed/expired/reused/sessionmismatch cases differ from reservedtestkeys. Currentprovider-timeout fail-open described; not universalproductpolicy or SDKexecution.
8November2026 primary ProsopoSerververification APIintro/selectedSDK and response/errorsoftfailure sections read. HTTP200 alone not verifiedtrue; normalmalformed/expired/reused/sessionmismatch cases differ from reservedtestkeys. Currentprovider-timeout fail-open described; not universalproductpolicy or SDKexecution.
- Market practice
Web Content Accessibility Guidelines (WCAG) 2.2 ↗ — World Wide Web Consortium (W3C) · WCAG2.2 Recommendation normativeSC3.3.8 (AA) criterion actuallyopened8November2026. Cognitive-test alternatives/mechanisms/exceptions; not blanketCAPTCHA prohibition or accountcreation certification.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Version 2.2, W3C Recommendation, October 2023. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.