Repository Public
1{2 "id": "QYV-APP-100",3 "title": "Interface duties for the sweep of exposed coins, the fee quote, hidden tokens and the unverified-amounts confirmation",4 "severity": "low",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-451",8 "masvs": "MASVS-PLATFORM-3",9 "area": "application",10 "location": "App/Sources",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "description": "Design, for the screens being rebuilt (not reviewed here). (1) `prepareSweepOfExposed(chain:)` returns a `BitcoinSendPlan`: the screen must show it through `review(for:)` and display the destination address and the fee like any payment; on Bitcoin Cash the review of a sweep carries no fork-replay warning (QYV-APP-062) — harmless for the coins (replayed on eCash / Bitcoin SV, the sweep pays the same key of the same wallet there) but the fee is spent on both chains. (2) On an unaudited mainnet build a sweep above the per-transaction ceiling (150 USD of LTC / DOGE / BCH) is refused as a whole: the service offers no partial sweep, so a wallet holding more than the ceiling behind published keys cannot sweep at all; the screen must say so rather than show a generic error. (3) `acceptUnverifiedAmounts` of `signColdTransaction` must be set only from a separate, explicit confirmation shown with the warning text of `PSBTReview.warnings` — never defaulted to true, never merged with the blind-signing consent. (4) `SendFeeQuote` is an estimate (`isEstimate`): it must be labelled as such and never shown in place of the fee of the review; `feeQuote` is refused in cold mode (`offline`) and behind the mainnet gate. (5) `SendReview.expiresAt` on Solana is an estimate from the device clock (60 s): the chain decides by block height; a countdown must not suggest otherwise. (6) Amounts of a token must be formatted with `SendReview.amountDecimals` / `amountSymbol` (the service's), not with the decimals of a `ChainToken` or `HiddenToken.token` value the screen holds.",15 "recommendation": "Implement the six points in the send, sweep, cold-signing and token screens; add UI tests for (3) and (6).",16 "evidence": "App/Sources/Security/SweepExposedSheet.swift:199; App/Sources/Security/SecColdSignView.swift:261; App/Sources/Wallet/SendFormView.swift:355; App/Sources/Wallet/SendReviewView.swift:167; App/Sources/Wallet/SendReviewView.swift:174",17 "fingerprint": "d412ac98ee1c",18 "reported": "2026-12-05",19 "owner": "integrator",20 "proposed_fix": "Service side in place: limits, gate and metadata are enforced in the service whatever the interface passes (tests in NewEntryPointsAuditRegressionTests.swift). The six points are for the integrator of App/Sources.",21 "residual_risk": "What a screen displays is checked by reading the code and by screenshots of the simulator, not by automated interface tests: the application target has no test bundle. The service rule and the static checks hold whatever the screens become. An acknowledgement proves a tap, not a reading.",22 "fix_commit": "8ffcf8a",23 "regression_test": "QyvoraWalletTests.MainnetPolicyTests.aCriticalWarningThatWasNotAcknowledgedRefusesTheSignature; MultiChainSendTests.coldSigningOnSolanaAndTronTouchesNoNetwork and solanaPaymentSimulatedSignedTrackedAndNeverSignedTwice; static checks QYV-STA-021 and QYV-STA-022; screens read on the simulator (see verification).",24 "resolution_note": "The six points: (1) a sweep is handed to the wallet's review through `review(for:)` (SecSendReviewHandoff, installed by MainShell) and is shown and signed like any payment; the minimal review the sheet keeps for the case where no review screen is installed now signs through the same door with an empty acknowledgement set, so it cannot sign a plan that carries a critical warning; (2) a sweep above the ceiling of an unaudited build is explained (refused as a whole, what to do) instead of a bare refusal; (3) `acceptUnverifiedAmounts` comes only from its own control, shown with the warning, off by default, separate from the blind-signing consent, and never offered on mainnet (static check QYV-STA-022 watches the assignment); (4) fee quotes are prefixed \"≈\" with their basis and never replace the fee of the review; (5) the Solana countdown is worded \"valid about\" and the details give the last valid block height; (6) amounts on the review are formatted with `SendReview.amountDecimals` and `amountSymbol`, and a token added by its address also shows the amount in base units, as signed. (Commits 0fe8b74 and 8ffcf8a.)",25 "verification": "Package tests of the whole root package on M5M36 (Swift 6.4, release, 895 tests in 23 runs, no failure) at commit f0ddca7; QyvoraWalletTests (212 tests) run five consecutive times on the laptop without failure after the last source change; application target compiled for iphoneos on M3U96a and for the simulator on the laptop; changed screens read on the simulator \"Qyvora iPhone B\" where the review record security/audit/review/multichain-app-screens.json says so; static checks and framework steps of the audit re-run. The final laptop run of the whole package and the quick audit were made after this register was written: their results are in the report of the work, not here.",26 "updated": "2026-12-05",27 "fixed": "2026-12-05"28}29