SPB Git

Repository Public

QYV-SVC-043.json 1.8 KB 23 lines json

1{2  "id": "QYV-SVC-043",3  "title": "TRON: the transaction of a review was not checked against the figures of the review before signing",4  "severity": "low",5  "cvss_vector": "",6  "cvss_score": null,7  "cwe": "CWE-345",8  "masvs": "MASVS-CODE-4",9  "area": "service",10  "location": "Sources/QyvoraWallet/WalletService+Tron.swift:137",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "03a3554",15  "regression_test": "QyvoraWalletTests.TronAuditRegressionTests/aReviewThatDoesNotMatchItsTransactionIsNotSigned; QyvoraWalletTests.MainnetPolicyTests/aForgedTronPlanAboveTheCeilingIsNotSigned",16  "description": "Root cause: `signAndBroadcastTron` signed `details.plan.transaction` after checking the account and the limits, without checking that this transaction is the payment the review shows (recipient, asset, amount). Not exploitable through the public interface: `SendReview`, `TronSendDetails` and `TronSendPlan` have no public initialiser and only `let` properties, so a review can only come from `prepareSend`. The check is the barrier behind that property (a future initialiser, a decoding path, a bug in the assembly of the review): without it, what is shown ≠ what is signed would rest on the type system alone. Hardening, rated by impact and likelihood (no CVSS vector).",17  "recommendation": "Fixed: `requireMatches(review, plan:)` decodes the review of the bytes about to be signed and requires the same sender, recipient, asset (TRX, or the token contract) and amount, the owner permission, no blind-signing contract, and for TRX no fee limit; anything else is `stalePlan`. The limits are then read from the bytes again (`enforceTronLimits`), so a plan that agrees with a forged review still cannot exceed them.",18  "evidence": "",19  "fingerprint": "dc26ad5d1458",20  "reported": "2026-12-05",21  "owner": "multichain-tron"22}23
Files main
Menu

Theme