Skip to content
IAM Insights

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

share
13,430 words. With Daniel Fett, author, Authlete; Brian Campbell, author, Ping Identity; John Bradley, author, Yubico; Torsten Lodderstedt, author, Tuconic; Michael Jones, author, Self-Issued Consulting; David Waite, author, Ping Identity.
01

What's happening

Finding4
BI-FIND-2023-0040Lead finding

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

high confidencebest source: independent researchobserved Sep 2023EvidenceIntroduction, Objectives, and Concept (§§1DPoP Proof JWTs (§4)Section 3+1
flag a problem with BI-FIND-2023-0040
Figure steps
  1. The client sends a token request with a signed DPoP proof.
  2. For a DPoP token response, the authorization server binds the access token to the proof’s public key.
  3. The client presents the access token with a new signed proof whose ath claim hashes that token.
  4. 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.
Fig. 1

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 →

BI-FIND-2023-0041

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.

high confidencebest source: independent researchobserved Sep 2023EvidenceSection 3Protected Resource Access (§7)
flag a problem with BI-FIND-2023-0041
BI-FIND-2023-0042

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.

high confidencebest source: independent researchobserved Sep 2023EvidenceSection 5Section 6
flag a problem with BI-FIND-2023-0042
BI-FIND-2023-0043

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.

high confidencebest source: independent researchobserved Sep 2023EvidenceIntroduction, Objectives, and Concept (§§1DPoP Proof JWTs (§4)Section 6
flag a problem with BI-FIND-2023-0043
02

In pictures

DPoP access requires the resource server to validate the proof and the token binding.RFC 9449 / September 2023 / sections 4, 6, 7.1
The resource server checks the proof, its key binding and the hash of the presented access token.RFC 9449 / sections 4.3, 6, 7.1
Clients that require DPoP access-token protection must reject a Bearer token response.RFC 9449 / sections 5, 7.2
Once a server issues a nonce, it must reject proofs that omit it or fail the match check.RFC 9449 / sections 8, 9, 11.2
Hostile code inside the client can use even a non-extractable key to sign DPoP proofs.RFC 9449 / sections 2, 11.4, 11.7
Test missing proofs, wrong keys and stale proofs; read the full DPoP briefing for the requirements and limits.IAM Insights / Boston Identity / Full briefing
03

Section by section

6

showing 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

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

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

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

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

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

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

Terms used

IETF
The body that writes the internet's protocol standards, including OAuth, JWT, and the workload-identity work known as WIMSE.
DPoP
A way to bind an OAuth access token to the specific key that requested it: the client signs a fresh proof for every call, so a stolen bearer token is useless to whoever steals it without also holding the matching private key.
OAuth
The web's standard framework for delegated authorization — letting one application act at another on a user's (or machine's) behalf without sharing passwords.
Resource server
In OAuth, the API that holds the protected data and accepts access tokens.
Access token
An OAuth 2.0 credential, usually an opaque string, representing a specific scope and lifetime of access that the resource server enforces when a client presents it.
URI
Uniform Resource Identifier, the general form of a web address. Identity specs use URIs to name things unambiguously: an issuer, an audience, a resource, or a workload's identity in SPIFFE.
Refresh token
An OAuth 2.0 credential issued with an access token that the client presents only to the authorization server to get a new access token of identical or narrower scope.
Public client
An OAuth client that cannot keep a secret, such as a single-page app or mobile app, so it cannot prove who it is with a client secret.

Cited in our columns

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity