Repository navigation
docs(oauth): clarify code-injection ATO is code-grant-specific and PKCE's role - #18
Merged
Merged
Conversation
…w PKCE affects it Attack technique 4 (leaking codes/tokens through a lax AS) didn't state which grant type it applies to, or how PKCE changes the outcome once a code has leaked -- both real gaps an interviewer would probe. Clarifies: the attack is code-grant-specific (implicit leaks the token itself, no replay step needed, so it's not exempt, just a more direct version); and that the replay succeeds unconditionally against a confidential client (secret lives server-side) but is blocked against a correctly PKCE-bound public client, since the attacker's browser won't hold the matching code_verifier. Ties this back to why RFC 9700 recommends PKCE for confidential clients too, not just public ones -- it's the independent fix for the replay, where redirect_uri re-validation at /token is the fix for the leak.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
14-oauth-oidc.md("Leaking codes/tokens through a lax AS, the classic ATO") didn't state which grant type it applies to, or what actually determines whether the replay succeeds once a code has leaked.code_verifiergenerated by whichever browser called/authorize.redirect_urire-validation at/tokenis the fix for the leak — an AS needs both.Test plan
python -m pytest tests/— 11/11 passed.ref1RFC 9700,ref9RFC 7636) reused, no new sources needed.https://claude.ai/code/session_011f1KhQCYiUUPFKco7pguLC