Repository navigation
Conversation
A signed message file pairs each signed ingress with a separately signed request status query. The JSON wrapper is not signed, and `send` polled whatever `request_status` accompanied the ingress. Pairing a message with the genuine status query of another message signed by the same key made `send` print the other request's outcome, e.g. a successful transfer's block index for a transfer that failed. - Recompute the request ID from the signed ingress content and require the plaintext `request_id`s, the read_state path signed in the status query, and the status query's canister to match it. - Check every message in a file before sending any of them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The tests do not verify whole-file preflight ordering, leaving a regression unguarded where a valid first transfer could be submitted before a tampered second message is rejected.
1 open issue
What changed in this PR
This PR hardens quill send against mismatched signed message bundles that could make it report another request’s outcome.
Changes:
- Recomputes the ingress request ID and checks it against the status query’s identifiers, canister, and signed path.
- Validates every paired message before submitting any, with indexed errors for invalid entries.
- Adds validation regression tests and documents the security fix.
| File | Description |
|---|---|
src/lib/signing.rs |
Adds request-status binding validation and regression tests. |
src/commands/send.rs |
Enforces validation before submission, including whole-batch preflight checks. |
CHANGELOG.md |
Documents the protection against mismatched status queries. |
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sendsend; release 0.5.9
lwshang
marked this pull request as ready for review
December 1, 2026 08:12
|
✅ No security or compliance issues detected. Reviewed 3 of 6 changed files (3 skipped) up to b985bc5. Security Overview
Detected Code Changes
|
raymondk
approved these changes
Dec 1, 2026
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.

A signed message file pairs each signed ingress with a separately signed request status query. The JSON wrapper is not signed, and
quill sendpolled whateverrequest_statusaccompanied the ingress without checking that it belongs to it. Pairing a message with the genuine status query of another message signed by the same key (within the expiry window) madesenddisplay the other request's outcome, e.g. a successful transfer's block index for a transfer that actually failed.Changes
IngressWithRequestId::validate_request_statusrecomputes the request ID from the signed ingress content and requires all of these to match it:ingress.request_id, if presentrequest_status.request_idrequest_status/<id>path in the signed read_state enveloperequest_status.canister_id, which must equal the ingress canistersendvalidates every message in a file (including the existingrole/call_typechecks) before sending any of them. Errors name the failing message index.request_id, a canister mismatch and an ingressrequest_idmismatch. A CLI test checks thatsendrejects a file with a crossed second message before sending the first.The existing output tests pipe real signed bundles (secp256k1 and Ed25519) through
send --dry-run, so they also exercise the check on honest files.🤖 Generated with Claude Code