SPB Git

Repository Public

QYV-SVC-041.json 2.1 KB 23 lines json

1{2  "id": "QYV-SVC-041",3  "title": "TRON transactions valid for up to 24 hours could be signed (cold payloads): the wallet did not bound the validity window at signing time",4  "severity": "low",5  "cvss_vector": "",6  "cvss_score": null,7  "cwe": "CWE-613",8  "masvs": "MASVS-CRYPTO-1",9  "area": "service",10  "location": "Sources/QyvoraWallet/WalletService+Tron.swift:586",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "03a3554",15  "regression_test": "QyvoraWalletTests.TronAuditRegressionTests/aColdDeviceDoesNotSignATransactionValidForMoreThanAnHour",16  "description": "Root cause: the planner bounds the lifetime of what it builds (30 s to 1 h, 120 s by default, 30 min for a cold device), and `TronTransaction.init` refuses more than the protocol's 24 hours — but `TronTransaction.decode` (the cold path) accepts any expiration, and `signTron` checked neither that the transaction was still valid nor how long it would stay valid. A payload given to a cold device with an expiration a day ahead was signed. Impact: a signed transaction is a bearer instrument until it expires: whoever holds it (a compromised companion device, a node that answered 'accepted' and kept it) decides when it lands within that window, on whatever TRON network has its reference block; a long window also widens QYV-SVC-040 / QYV-APP-040. No loss beyond the payment that was reviewed.",17  "recommendation": "Fixed: `signTron` (online and cold) refuses an expired transaction (`transactionExpired`) and one that would stay valid for more than `tronMaximumSigningWindowMilliseconds` = 3 900 000 ms (the planner's longest lifetime, one hour, plus five minutes for a late device clock) with `signingFailed`. The device clock is the reference: a cold device whose clock is wrong refuses, and says to check the clock.",18  "evidence": "Before the fix `signColdTransaction` signed the 86 400 s payload of the regression test. Fuzz target `tron-review` asserts the window on every signature it obtains.",19  "fingerprint": "055639baf19c",20  "reported": "2026-12-05",21  "owner": "multichain-tron"22}23
Files main
Menu

Theme