TOPIC 32/6214 MINNOT STARTED

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.

  1. Right code
  2. Wrong code
  3. Old code
  4. Used twice
Four codes

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A remembered door passwordSomething you know, the password
A changing code from a device you controlPossession of the OTP authenticator
A lock that stays shut after too many triesThe lock-out after wrong codes
A side door with no lockA 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.

What each part of the trick stands for
In the trickWhat it stands for
PasswordSomething you know
Codea code from the phone
Clockthe 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
  1. 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.

    Defines multifactor authentication, factor types, and advice on one-time password lifetime, single use and attempt limits. Practitioner guidance, not a standard. · Checked 2026-11-08

    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.

  2. 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.

    Defines time-based one-time password (TOTP) as HMAC-based one-time password (HOTP) with a time-based value in place of the counter. · Checked 2026-11-08

    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.

  3. 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)

    Explains that visual puzzles exclude many people with disabilities and lists alternatives. · Checked 2026-10-18

    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.

  4. Market practiceSP 800-63B-4, final July 2025

    NIST SP 800-63B-4 Digital 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.

    Federal digital-authentication guidance. Distinguishes phishable OTPs from phishing-resistant cryptographic protocols, allows scoped syncable authenticators, limits biometric use and treats PSTN out-of-band authentication as restricted. Authentication intent does not decide legal payment consent. · Checked 2026-11-06

    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.

  5. 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.

    Vendor page: a Completely Automated Public Turing test to tell Computers and Humans Apart (CAPTCHA) provider that publishes test keys for use in test environments only. Practitioner guidance, not a standard. · Checked 2026-11-08

    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.

  6. Market practiceSP 800-63B-4, final July 2025

    NIST SP 800-63B-4 Digital 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.

    Federal digital-authentication guidance. Distinguishes phishable OTPs from phishing-resistant cryptographic protocols, allows scoped syncable authenticators, limits biometric use and treats PSTN out-of-band authentication as restricted. Authentication intent does not decide legal payment consent. · Checked 2026-11-06

    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.

  7. 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.

    Defines time-based one-time password (TOTP) as HMAC-based one-time password (HOTP) with a time-based value in place of the counter. · Checked 2026-11-08

    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.

  8. 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.

    Informative explanation of Web Content Accessibility Guidelines (WCAG) 2.2 Success Criterion (SC) 3.3.8 (AA): assistance or an allowed alternative for cognitive tests, support for password managers and paste, and compliance across all authentication steps. Split code fields must support whole-code paste without transcription. · Checked 2026-11-08

    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.

  9. 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. · Checked 2026-11-08

    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.

  10. 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.

    Per the search excerpt, WCAG 2.2 is the W3C Recommendation of Web Content Accessibility Guidelines. It adds nine success criteria to 2.1, and content that meets 2.2 also meets 2.0 and 2.1. The four principles are perceivable, operable, understandable and one more beginning with R; levels are A, AA and AAA. · Checked 2026-10-18

    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.