View Issue Details

IDProjectCategoryView StatusLast Update
0012249Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012249: KYC: the `Account-Owner-Signature` of `/kyc-check` is the same for every request and account, and can be replayed forever
Description`Account-Owner-Signature` is a signature over the purpose `TALER_SIGNATURE_KYC_AUTH` alone (exchange `kyc_signatures.c`, `TALER_KycQueryPS`): the same value for every request, every account bound to the key, and all time. Whoever observes it once (a proxy that terminates TLS, a log, a support dump) obtains the access token of every account bound to that key, including accounts bound later, and with it uploads KYC forms and starts KYC processes in the holder's name.

The documentation calls the signature "merely a simple authentication mechanism"; the consequence, a permanent bearer credential, is not stated.

The ProVerif model `models/proverif/kyc-auth.pv` finds the replay trace for an account bound after the observation. If the signature names the account (`models/proverif/kyc-auth-bound.pv`), such accounts are safe; if it covers the account and a fresh challenge of the exchange (`models/proverif/kyc-auth-fresh.pv`), all accounts are.

**Proposed change:** sign over `h_payto` and a timestamp, and accept only recent timestamps; a replay then works only within the accepted window, and an exchange challenge closes it at the cost of a round trip. At least sign over `h_payto`. Until then, state the consequence in the documentation.

**Found by:** the formalization of the Taler protocols; the ProVerif model of KYC authentication (`kyc-auth.pv`), against KY4 in `spec/kyc.md`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012253 new KYC: whether a bank account has one KYC key or several is not stated 

Activities

bot-oec [agent]

2026-11-21 23:38

reporter   ~0030738

Proposed patch, the interim part (taler-docs master b3970cce): state the consequence of Account-Owner-Signature covering the purpose only. The protocol fix needs a decision: sign over h_payto and a timestamp and accept only recent timestamps (replays then work only within the window; an exchange challenge would close it at the cost of a round trip), or at least sign over h_payto. That changes TALER_KycQueryPS and every client (wallet, merchant backend), so it needs a protocol version.

diff --git a/core/exchange/get-kyc-check-H_NORMALIZED_PAYTO.rst b/core/exchange/get-kyc-check-H_NORMALIZED_PAYTO.rst
index a7fc7250..4a7d5f24 100644
--- a/core/exchange/get-kyc-check-H_NORMALIZED_PAYTO.rst
+++ b/core/exchange/get-kyc-check-H_NORMALIZED_PAYTO.rst
@@ -29,6 +29,12 @@
     request are not protected by the signature. The ``$ACCOUNT_PRIV`` is
     either the (wallet long-term) reserve private key or the merchant instance
     private key.
+ The signature covers the purpose ``TALER_SIGNATURE_KYC_AUTH`` only, so it
+ is the same for every request, every account bound to the key and all
+ time: whoever observes it once (for example a proxy terminating TLS, or a
+ log) obtains the access token of every account bound to that key, also of
+ accounts bound later, and can upload KYC data and start KYC processes for
+ them. Clients must therefore keep it as confidential as the access token.
 
   *Account-Owner-Pub*:
     The client must provide the Base-32 encoded EdDSA public key of

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecImplementer => Emmanuel
2026-11-21 10:27bot-oecReviewer => bernaalp
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => vlada.svirsh
2026-11-21 10:27bot-oecVerifier => Amoui NGoran
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 16:03oecImplementerEmmanuel =>
2026-11-21 16:03oecReviewerbernaalp => Christian Grothoff
2026-11-21 16:03oecRelease signed byAntoine A => Florian Dold
2026-11-21 16:03oecDeployed byvlada.svirsh => Florian Dold
2026-11-21 16:03oecVerifierAmoui NGoran => Florian Dold
2026-11-21 22:43Christian GrothoffSeveritymajor => text
2026-11-21 23:38bot-oecNote Added: 0030738
2026-11-29 15:59Christian GrothoffView Statusprivate => public