Metadata: require issuer to match the URL it was fetched from#17
Open
rohanharikr wants to merge 1 commit into
Open
Metadata: require issuer to match the URL it was fetched from#17rohanharikr wants to merge 1 commit into
rohanharikr wants to merge 1 commit into
Conversation
Adds a normative MUST that verifiers check metadata.issuer matches the
URL they retrieved the document from (less the /.well-known/{dwk}
suffix). Rejects mismatch.
Prevents host-poisoned metadata: an attacker hosting metadata at one
domain claiming an issuer of another. Parallels RFC 8414's analogous
requirement for OAuth Authorization Server Metadata.
Closes dickhardt#12
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.
Closes #12
Adds a normative MUST in the Metadata Documents section: when fetching a metadata document, implementations MUST verify that
issuermatches the URL the document was retrieved from (less the/.well-known/{dwk}suffix). Mismatch → reject.Why
Without this check, a "host-poisoned metadata" attack is possible against permissive verifiers — an attacker hosts a metadata document at their own domain claiming a different
issuer, and a verifier that followsjwks_urifrom such a document could end up trusting attacker-controlled keys for tokens claiming the impersonated issuer.RFC 8414 (OAuth Authorization Server Metadata) makes the analogous check normative for OAuth. Bringing the AAuth metadata spec into alignment.
Diff scope
Two paragraphs added at the top of
## Metadata Documents. Applies uniformly across agent server, resource, PS, and AS metadata since they all share the same well-known fetch pattern.