redb.Identity, an OAuth 2.1 / OpenID Connect server for .NET, accepted DPoP-bound tokens as plain Bearer on userinfo and the management API. The maintainers explain the flaw, the 4.6.2 fix and why thousands of green tests missed it.
Key points
- DPoP proof was checked only on /connect/token; userinfo and /api/v1/identity/... read just the Bearer scheme.
- Affected redb.Identity.Core 1.0.1–4.6.1, only when Dpop.Enabled = true; fixed in 4.6.2 (CVSS 7.4, CWE-287).
- After the fix, bound tokens need the DPoP scheme and a valid proof, else 401 with WWW-Authenticate: DPoP error="invalid_token".
- The management API over gRPC and SOAP now rejects bound tokens: Unauthenticated from gRPC, a SOAP fault.
- A test asserting that userinfo accepts a DPoP-bound token stayed green because the server ignored the header.
- OpenIddict 7 checks only certificate binding (x5t#S256), so a handler switched its check off for tokens carrying jkt.
Real-world use
- An OAuth 2.1 / OpenID Connect server that issues DPoP-bound tokens and must reject them without a proof on userinfo.
- A management API exposed over HTTP, gRPC and SOAP, where only the HTTP channel can carry a DPoP proof.
- Clients that read user claims with bound tokens and now have to send the DPoP scheme together with the ath value.
This summary was generated by the agent from the original post on Habr C# (ru). The full text and all rights belong to its author and publisher. Go to original