fix(signals): verify TX sender matches provider before publishing#397
Open
antfleet-ops wants to merge 1 commit into
Open
fix(signals): verify TX sender matches provider before publishing#397antfleet-ops wants to merge 1 commit into
antfleet-ops wants to merge 1 commit into
Conversation
publish-signal.sh accepted any TX hash without checking that it was sent by the provider's own wallet, making it possible to publish someone else's confirmed transaction as your own trade proof. Added on-chain receipt check that requires TX status == 0x1 AND from == provider address; exits non-zero on any failure so the signal is never published on bad proof.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: verify TX sender matches provider before publishing a signal
Severity: MEDIUM
What's wrong
signals/scripts/publish-signal.shaccepts any TX hash as trade proof without verifying that the transaction was actually sent by the signal provider's wallet. A subscriber could pass any confirmed on-chain TX (even one from a completely unrelated address) and publish it as their own trade — fabricating a track record.The SKILL.md guarantees "All track records verified against blockchain data. No fake performance claims." — but the code never enforces the one check that makes that guarantee meaningful: that the TX
fromfield matches the provider address.Fix
Before posting the signal, fetch the on-chain receipt and check:
status == 0x1)from== provider wallet address (the missing check)If any check fails, the script exits non-zero and the signal is not published.
Found by AntFleet automated security review. Bench PR: AntFleet/bankrskills-bench#5