{
  "id": 22104371,
  "title": "CBOR Web Tokens: make cnf validation a proof test, not a claim lookup",
  "url": "https://urgent.news/2026/11/27/cbor-web-tokens-make-cnf-validation-a-proof-test-not-a-claim-lookup",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T03:07:45.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/andreagomez/cbor-web-tokens-make-cnf-validation-a-proof-test-not-a-claim-lookup-5c65"
  },
  "original_language": "en",
  "account": "CBOR Web Tokens necessitate treating confirmation claim validation as a rigorous test rather than a mere claim lookup. The issuer embeds a cnf key within a CBOR Web Token, and the recipient must confirm the presenter holds the corresponding key. However, parsing the relevant RFCs alone is insufficient for comprehensive enforcement. The recipient must authenticate the CWT signature, issuer, audience, expiration, intended use, and subsequently process the cnf as a CBOR map adhering to the expected member types.\n\nThe confirmation method dictates the subsequent actions, which must not rely solely on a bare key identifier to verify possession. The recipient should require a fresh proof, such as a signed request or challenge, tied to the ongoing transaction. Parsing the map's key types with caution is crucial, as two encodings yielding similar values may not represent identical wire formats. Mature COSE libraries should be employed, with unexpected confirmation members rejected, and a strict type and length policy enforced.\n\nAudience binding is equally important, as a presenter may possess a legitimate key for one service but attempt to utilize it at another. The verifier must bind the proof to its own origin, method, path, and request body, where permitted. Employing signatures over generic bodies without specifying a service audience can lead to token replay at different endpoints.\n\nFreshness controls, like nonce, timestamp, or a server-issued challenge, should remain separate from the CWT's expiration time. Following cryptographic success, a potential second failure mode arises: application developers may inadvertently extract permissions from the sub claim without realizing the presenter is now utilizing a distinct confirmation key. The optimal approach is to derive the authorization subject from both the validated token and the validated presenter proof. If key rotation is underway, only keys belonging to the token issuer's current policy should be accepted, and the used key should be documented.\n\nOperational checks should extend beyond the ideal scenario, encompassing scenarios such as tokens with missing cnf, incorrect CBOR types, proofs signed by disparate keys, and valid proofs replayed to alternative audiences. Logs must be inspected to verify that the raw CWT and proof are not fully logged. Metrics ought to monitor proof failures by reason but refrain from exposing key identifiers to broad log consumers. The implementation record must specify the supported confirmation methods, accepted proof formats, clock skew handling, and nonce replay policies. Ultimately, the security decision resides with the service that comprehends the key's authorized proof, and this decision should be explicit in the implementation record.",
  "summary": "CBOR Web Tokens: make cnf validation a proof test, not a claim lookup A confirmation claim can look deceptively simple. The issuer places a cnf key in a CBOR Web Token (CWT), and the receiver is supposed to know that the presenter has a particular key. RFC 8747 defines this proof-of-possession pattern for CWTs, while RFC 8392 defines the base token format. Parsing both specifications correctly is…",
  "key_points": [
    "Confirm confirmation claim validation as rigorous test, not claim lookup",
    "Authenticate CWT signature, issuer, audience, expiration, intended use",
    "Bind proof to verifier's origin, method, path, request body"
  ],
  "editors_take": "Treating confirmation claims as active proof tests rather than passive lookups prevents token replay attacks and ensures that authorization is strictly bound to the specific presenter and transaction.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}