You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sdk-core): require txParams with recipients for TSS tx signing
Without this guard, a compromised BitGo API could modify
signableHex to redirect funds to an attacker address. The
client SDK would sign without detecting the tampering because
verifyTransaction() received an empty recipients array and
skipped address/amount verification.
- Throw early in signRequestBase() when txParams.recipients is
absent or empty for RequestType.tx (ecdsaMPCv2 and ecdsa)
- Remove the `|| { recipients: [] }` silent fallback so
verifyTransaction() always receives caller-supplied params
- Add optional txParams to recreateTxRequest() and propagate
it to signTxRequest() to keep the pending-approval re-sign
path working
- Extract recipients from pendingApproval.info.transactionRequest
in recreateAndSignTSSTransaction() so that path passes the guard
- Update existing tests to supply txParams with recipients and
add negative tests for missing/empty recipients cases
WP-8419
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments