Update review · December 5, 2026
OOB Auth Codes -01 Fixes the Interop Gaps, Not the Phishing Problem
The previous review raised two groups of concerns. The first was interoperability: no default INFO, iss dropped, PKCE never mentioned. The second was phishing: this brings back a pattern the ecosystem deliberately shut down, and the AS can't see it.
The -01 does a good job on the first group. It mostly skips the second, and the new security text argues the opposite of what the phishing threat model shows.
What got fixed
PKCE is now a MUST. Section 2 requires PKCE, and a new Section 4.1 says why: it prevents injection of an unrelated code. That was the main gap in -00.
INFO has defined values. A new flag bit in the prefix tells the client which INFO the helper page used. It's either the iss value or the fixed string oauth-out-of-band-authorization-code. A generic helper page shared by many clients is now possible.
iss is back, and it does real work. The previous review suggested carrying iss in the combined code. The draft does something better. If iss is present, the helper page MUST use it as the HKDF INFO. A client that decodes with the wrong expected issuer gets garbage and a checksum failure. A client that expects iss and sees the fixed-string flag MUST reject it, so an attacker can't strip iss to downgrade. That brings back RFC 9207 mix-up defense for multi-AS clients like MCP clients.
This also changes the earlier "remove the HKDF" argument. In -00, the HKDF and XOR did the same job as PKCE. In -01 they also bind the issuer. That's a real reason to keep them, though a plaintext iss plus a comparison would get the same result.
Example code. Appendix A adds a JavaScript encoder and a Go decoder. Both are short and match the pseudocode. Implementers will copy these, which is good, because the bit-packing is now fiddly.
Editorial fixes. "parmeters" is fixed. The XOR step now correctly names E and K instead of "the combined code."
What's new
The combined code now starts with a 3-byte prefix: a version bit, an INFO flag bit, and a 22-bit checksum. That's down from 24 bits in -00. A 1-in-4-million false match is fine for catching paste errors.
Version 0 is defined. Version 1 is reserved. With only one version bit, that's one future version ever, unless version 1 defines more bits itself. The draft should say which.
Section 3.4 points out that you can read the version and flag from the first base64 character without decoding:
A–P: version 0,issusedQ–Z,a–f: version 0, fixed string usedg–z,0–9,-,_: reserved
This is the better method, and the Go example uses it. The primary algorithm in Section 2.3 decodes CC[0..1] as two base64 characters, which leaves 4 non-zero trailing bits. Strict decoders reject that. Go's Strict() mode does, and Rust's base64 crate does by default. Make the first-character check the normative method and drop the two-character decode.
Section 4.2 compares security against the device grant. More on that below.
New interop problem: when does the client "know" iss?
Section 2.3 has two different conditions that read alike:
- "If the client knows the issuer value of the AS from discovery or configuration, it uses that as
iss." - "If the client expects the
issfield to be sent by the AS," and the flag says it wasn't, reject.
Every client that uses discovery knows the issuer. Not every AS returns iss in the authorization response. The Go example takes one issuer input for both. A client that passes its discovered issuer to an AS without RFC 9207 support rejects every valid code with "issuer expected but not used."
The fix is to tie the expectation to authorization_response_iss_parameter_supported in the AS metadata. The other direction breaks too. A manually configured client with no issuer can't decode anything from an AS that does send iss. In -00 that client worked. The Section 3.3 fallback, pasting the whole URL, still works for both cases. It's worth saying so.
Section 4.2 gets the phishing comparison backwards
The new section argues that the device grant is "inherently phishable" per the cross-device security BCP (now RFC 10027), and that this flow isn't, because PKCE protects the code.
PKCE protects against a different attack. It stops someone from injecting a code into the victim's waiting client. It does nothing when the attacker starts the flow. The attack that got OOB deprecated at Google still works step for step:
- The attacker runs the CLI with a legitimate
client_idand holds thestateandcode_verifier. - The attacker sends the victim the authorization URL.
- The victim logs in and sees a combined code on the vendor's real helper page.
- "Paste that code here to finish verification." The attacker decodes it with their own
stateand redeems it with their own verifier.
That's the same shape as device code phishing. The difference is that in the device grant, the AS knows it's a cross-device flow. It can show warnings and apply the BCP's mitigations. Here the AS sees an ordinary redirect. The BCP is now cited, but only to criticize the device grant. None of its guidance is applied to this flow.
The new helper page requirement helps a little. The page MUST "direct the user to enter the code exactly as is to their waiting client." Good. It should go further and say plainly that the code belongs in a terminal the user started themselves, and nowhere else. That's the one mitigation available without AS involvement.
Still open from the previous review
- No mention of
urn:ietf:wg:oauth:2.0:oob. A draft that brings back a deprecated pattern should say so and explain what's different. - No AS visibility. The client metadata flag idea wasn't picked up. ASes using Dynamic Client Registration or Client ID Metadata Documents still can't tell an OOB helper page from a normal redirect URI.
- AI agents. Still not addressed. Pasting codes into chat windows is exactly the habit phishing depends on.
- Codes in query strings. Section 4 still acknowledges CDN and access log exposure. It still doesn't recommend
response_mode=fragmentor clearing the URL withhistory.replaceState. The JavaScript example reads from "query arguments." - Flow diagram step 2. Rewording "the authorization URI" as "the request to the authorization URI" doesn't cover the user copying a URL out of an SSH session. That leg is out of band too.
- Intro sentence still has no verb. "Instead of using a different grant type, an out-of-band mechanism, such as ..., to deliver the authorization code and state value from the AS to the client."
- Indexing notation. Ranges are now consistently inclusive. They still switch between bytes (
SHA256(C)[0..2]) and characters (CC[0..3]) without saying which. Creation step 8's comment still says "concatenate the checksum" when it now means the prefix.
Writing quality
The draft grew from 9 pages to 15, mostly from the bit-packing and Appendix A. The step-by-step blocks are still easy to follow. Section 2.1 is the weakest new text. It calls the 2-bit value F the "version flag" in one place, then splits it into a version bit and a separate INFO flag in another. Pick one name for each bit.
Background of the author
No change. Justin Richer is still the sole author. See the previous review for his background. The acknowledgments now thank Pieter Kasselman, an author of the cross-device BCP, for early review. That makes Section 4.2's reading of the BCP more surprising.
Suggested feedback
- Rewrite Section 4.2. Cover the attacker-initiated flow, admit that PKCE doesn't stop it, and apply the cross-device BCP's guidance to the helper page.
- Fix the
issexpectation logic. Base it onauthorization_response_iss_parameter_supported, not on whether the client knows the issuer. Point clients without an issuer to the Section 3.3 fallback. - Make first-character version detection normative. Drop the two-character base64 decode.
- Say what the deprecated OOB URN was and why this is different.
- Recommend
response_mode=fragmentwhere the AS supports it.
The open question for the mailing list is the same as before. Does the working group want to document client-hosted OOB at all, and if so, should it live next to the cross-device security BCP's phishing guidance?