Skip to content

btc: Validate TxHash in AuditContract. - #3620

Open
jholdstock wants to merge 1 commit into
decred:masterfrom
jholdstock:btc_wrong_tx
Open

btc: Validate TxHash in AuditContract.#3620
jholdstock wants to merge 1 commit into
decred:masterfrom
jholdstock:btc_wrong_tx

Conversation

@jholdstock

Copy link
Copy Markdown
Member

If AuditContract checks the coinID and the contract but not the transaction hash, it is possible for a malicious server to send a taker a transaction which meets those criteria yet underpays the expected amount.

This check was already performed in the DCR asset so the fix for BTC has been modeled on that implementation.

If AuditContract checks the coinID and the contract but not the
transaction hash, it is possible for a malicious server to send a BTC
taker a transaction which meets those criteria yet underpays the
expected amount.

This check was already performed in the DCR asset so the fix for BTC has
been modeled on that implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant