Briefing · Article · source · published · Boston Identity
DPoP token binding depends on checks at the resource server
The IETF's September 2023 DPoP standard binds OAuth tokens to a client-held key and requires the resource server to validate a proof with the token. Its migration rules permit Bearer fallback, and its security analysis warns that hostile code inside the client can still use the signing key.
RFC Editor · Daniel Fett, Brian Campbell, John Bradley, Torsten Lodderstedt, Michael Jones, David Waite · Sep 2023 · read
What's happening
Finding4RFC 9449 requires a DPoP-protected resource server to validate a signed proof and confirm its key matches the token's bound key before granting access.
RFC 9449 requires a DPoP-protected resource server to receive the access token and a signed proof, validate the proof, and confirm its key matches the token's bound key before granting access. The validation includes the request method and URI, proof freshness, and the ath hash of that access token. DPoP proves possession of a key; it does not authenticate the client, and a proof alone cannot authorize access. HTTPS remains mandatory.
flag a problem with BI-FIND-2023-0040
Figure steps
- The client sends a token request with a signed DPoP proof.
- For a DPoP token response, the authorization server binds the access token to the proof’s public key.
- The client presents the access token with a new signed proof whose ath claim hashes that token.
- The resource server validates the proof, matches its key to the token’s bound key, and checks ath against the presented token. Access requires all checks to succeed.
The authorization server binds the token to a key; the resource server separately checks that key and the proof’s hash of the presented token before allowing access.
Drawn from RFC 9449, Figure 1 and sections 4.3, 6 and 7.1Source dated Sep 2023Passage: Protected Resource Access (§7)
Swipe for the full figure →
Under RFC 9449, a token request with a valid DPoP proof may still receive a Bearer access token.
A token request with a valid DPoP proof may still receive a Bearer access token under RFC 9449. If the authorization server also issues a refresh token to a public client in that exchange, it must bind the refresh token to the proof's key. The client must discard a non-DPoP response if that protection is important to the application's security. Resource servers supporting both schemes must reject a DPoP-bound token presented as Bearer; the RFC says servers unaware of DPoP would most likely accept it as a bearer token during a phased upgrade.
flag a problem with BI-FIND-2023-0041
Under RFC 9449, servers must accept DPoP proofs only for a limited time after creation, and must reject proofs that omit a nonce they have supplied.
Servers must accept DPoP proofs only within a limited time after creation. They may require a server nonce, but once they have supplied one they must reject proofs that omit it; the nonce must match a recently issued value. RFC 9449 permits jti tracking to reject reused proofs and warns that a single-use check may be impractical across servers without shared state. Deployments that omit the nonce mechanism should avoid long-lived DPoP access tokens.
RFC 9449 warns that hostile code running inside the client's execution context can use a non-extractable private key to produce DPoP proofs.
With a non-extractable private key, DPoP makes stolen tokens alone unusable. RFC 9449 also warns that hostile code running inside the client's execution context can use that key to produce proofs, so DPoP's security is no longer guaranteed. The proof covers the HTTP method and URI, excluding query and fragment, but does not ensure the integrity of the request body or general headers.
flag a problem with BI-FIND-2023-0043
In pictures
Section by section
6showing 6 of 6
[1]Introduction, Objectives, and Concept (§§1–3)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Standards
Introduction, Objectives, and Concept (§§1–3)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
DPoP binds OAuth tokens to a key held by the client and ties each proof to a request method and URI. It works alongside client authentication, and HTTPS is required. A non-extractable key prevents an attacker using stolen tokens alone, but hostile code running inside the client can still use that key to sign proofs.
technical artifactfrom published text
[2]DPoP Proof JWTs (§4)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Standards
DPoP Proof JWTs (§4)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Each request gets a signed JWT proof. Servers check the signature, algorithm, key, method, URI, freshness and any required nonce. Resource requests also need the access-token hash and key-binding check. The URI excludes query and fragment; the proof supplies no general request-body or header integrity and cannot authorize access by itself.
technical artifactfrom published text
[3]DPoP Access Token Request and Public Key Confirmation (§§5–6)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Standards
DPoP Access Token Request and Public Key Confirmation (§§5–6)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
A token request carries a DPoP proof, and token_type DPoP signals a bound access token. Public-client refresh tokens must bind to that key; confidential-client refresh tokens rely on client authentication. The server may return Bearer instead, which the client must reject if DPoP access-token protection is important. The resource server can obtain the key thumbprint from the token or introspection and checks the binding locally.
technical artifactfrom published text
[4]Protected Resource Access (§7)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Standards
Protected Resource Access (§7)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
A protected-resource request carries both the bound token and a proof with its ath hash. The resource server must refuse access unless proof and key-binding checks pass. Servers supporting DPoP and Bearer must reject bound tokens presented as Bearer; servers unaware of DPoP may accept them during migration. Clients should generate new proofs on retries, and ath alone does not prevent proof replay.
technical artifactfrom published text
[5]Server-Provided Nonces and Authorization Code Binding (§§8–10)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Standards
Server-Provided Nonces and Authorization Code Binding (§§8–10)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Servers may require unpredictable nonces; after issuing one, they must reject proofs that omit it or fail the match check. Authorization and resource servers issue separate nonces. Optional dpop_jkt binds authorization codes to keys, but PKCE-like protection requires a unique key per authorization request. Servers supporting both PAR and DPoP must support the body-parameter and proof-header binding mechanisms.
technical artifactfrom published text
[6]Security Considerations and IANA Considerations (§§11–12)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Standards
Security Considerations and IANA Considerations (§§11–12)
Daniel Fett, Authlete · Brian Campbell, Ping Identity · John Bradley, Yubico · Torsten Lodderstedt, Tuconic · Michael Jones, Self-Issued Consulting · David Waite, Ping Identity
Servers must limit proof acceptance after creation. They can track jti values to reject reuse, though shared replay state may be impractical across replicas. Without server nonces, deployments should avoid long-lived access tokens. Hostile code in the client can use its signing key, and DPoP does not ensure request-body or general-header integrity. Client authentication and DPoP lack a direct cryptographic binding.
technical artifactfrom published text