Flux Finance's KYC signature replay: removal is not consumption
A valid EIP-712 approval can restore a removed KYC entry in historical Flux code. Trace the deadline, signer role and separate sanctions check before claiming a bypass.
TL;DR
- The historical registry accepts a signed group, user and deadline, then stores an approved bit. It does not consume that approval.
- Removing the user clears the bit and makes the same approval acceptable again while its deadline and signer authority remain valid.
- This restores registry approval; it does not bypass the separate sanctions-list check.
- Test the complete grant, removal and replay sequence. A missing nonce alone is a review prompt, not proof of unintended authorization.
Flux Finance's EIP-712 replay is a lifecycle bug
A holder of the group's role removes an approved user. Someone resubmits the signed approval used during onboarding and the removed user becomes approved again. The signature is genuine; the defect is that the removal did not make the earlier authorization unusable.
That is the sequence to investigate in the pinned KYCRegistry source. The concluded January 2023 Ondo report maps it to M-04. This is a historical training snapshot, not a statement about the present deployment.
EIP-712 standardizes typed-message hashing and domain separation. Replay prevention remains an application responsibility, as its specification explains. A domain can separate approvals for different registries while leaving reuse inside one registry entirely possible.
Trace what the actual registry changes
In addKYCAddressViaSignature, lines 79-112, identify five parts:
- The group/user approval bit must currently be false.
- The timestamp must be at or before the signed deadline.
- The message binds the group, user and deadline to the typed-data domain.
- The recovered signer must still hold that group's required role.
- Successful verification sets the approval bit to true.
Now read removeKYCAddresses. It clears the bit. It does not consume the old signed message, advance a revocation version or otherwise change which approval can be accepted next.
| Step | Registry bit before | Result | Registry bit after |
|---|---|---|---|
| Submit a valid approval | False | Accepted | True |
| Submit it again immediately | True | Rejected as already approved | True |
| Group-role holder removes the user | True | Removed | False |
| Resubmit it while still valid | False | Accepted again | True |
Anyone can resubmit the signature: the function does not bind the caller to the approved user, and the signature becomes public after its first on-chain use. The group's required role can itself be reassigned.
The immediate duplicate is a useful negative control. A test that stops there can mistakenly conclude that replay protection exists. Removal recreates the state that the acceptance guard requires.
The boundaries change the impact
The deadline limits reuse of the signed approval. It does not automatically expire an approved bit already stored in the registry. At exactly the deadline, the source permits submission; after it, submission fails.
The signer role also matters. Removing the authority's required role can make the old signature fail. That can affect other approvals and is not a substitute for a deliberate per-user revocation design.
Finally, inspect getKYCStatus. It combines the registry bit with a separate sanctions-list result. Replaying an approval cannot make a sanctioned address pass that independent condition. Do not turn a real registry-removal bypass into an unsupported claim that sanctions checks can be ignored.
Choose what removal must invalidate
For a one-use approval, record consumption and reject later use of that approval. For revocable group/user authorization, a signed version tied to mutable revocation state can provide another design: removal invalidates approvals issued against the old version.
These are design choices to implement and review, not interchangeable fields to add mechanically. Decide whether several outstanding approvals may coexist, which entity owns the counter, and what a removal invalidates. A signer-wide counter can interfere with unrelated users; a nonce that is never checked or advanced changes nothing. That concurrency warning is a design critique beyond the historical report's nonce recommendation.
ERC-2612 permits provide a concrete comparison in the specification: a permit binds its owner's current nonce and successful use increments that nonce. Borrow the state-transition reasoning, rather than assume that a token allowance and a KYC entitlement have identical semantics.
Write the lifecycle tests before the conclusion
Test ordinary approval, immediate duplicate, removal and replay of the old approval. Then test the deadline boundary, lost signer authority, a different group/user or domain, and a sanctions-list result that remains true after registry approval is restored. Test a fresh deliberately issued approval after removal as a separate policy case.
For each case, predict both the stored registry bit and the effective getKYCStatus result. A signature test that checks only recovery misses the entitlement; a status test that checks only the bit misses sanctions.
The same review habit applies to other inherited assumptions. In the Compound-fork donation analysis, the important boundary is underlying cash versus share supply. Here it is a valid historical message versus current permission. In each case, name the state that must change and follow the next transaction.
Practice against the Flux Finance training target, then use the reviewed results to compare detection paths. Read the debrief after your attempt is reviewed.
Updated 29 October 2026. An earlier version said the same approval could be replayed indefinitely. Replay needs the user to be removed first, works only within the signed deadline and while the signer keeps its role, and does not bypass the sanctions check.
Tagged