Repository Public
1{2 "id": "QYV-APP-101",3 "title": "A payment request scanned inside the send form filled in the address and the amount of another coin, network or asset; requests were parsed without bounds and partly",4 "severity": "medium",5 "cvss_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",6 "cvss_score": 3.1,7 "cwe": "CWE-20",8 "masvs": "MASVS-PLATFORM-1",9 "area": "app",10 "location": "App/Sources/Wallet/SendFormView.swift:198",11 "tool": "manual-review",12 "rule": "",13 "status": "fixed",14 "fix_commit": "7685b32",15 "regression_test": "QyvoraWalletTests.PaymentRequestTests (4 tests: onlyWhatTheFormShowsIsTaken, aRequestTheWalletCannotHonourIsRefusedAsAWhole, aRequestIsOfferedOnlyOnTheNetworksOfItsScheme, otherTextsAreNamedForWhatTheyAre); static check QYV-STA-024.",16 "description": "Root cause: a payment request (`bitcoin:`, `ethereum:`, `solana:`…) is attacker-controlled input — a QR code someone else printed. Two paths read it. The Scan action of the dashboard bound the request to the family of its scheme. The scanner INSIDE the send form did not: it took the address and the decimal amount of any request and let the address validation decide. Where address forms are shared the validation passes: a `bitcoin:` request scanned in a Bitcoin Cash form with a legacy address (valid on both), any test coin scanned in another test coin's form (shared version bytes), an `ethereum:…@137` request scanned in an Ethereum form, or a token request scanned while the coin was selected. The form then showed the address of the request and its amount in the units of another asset (\"1\" bitcoin became 1 BCH; an amount of USDC became an amount of ETH). The parser also read requests of any length, silently dropped what it did not understand (an unknown `req-` parameter that BIP-21 says invalidates the request, an unreadable amount, a chain identifier that was not a number) and returned a contract call other than a transfer as plain text. Impact: the user still sees the network of the form, the address and the amount, on the form and on the review, and signs after an authentication; what is lost is the binding between the request and the network and asset it was written for. Rated by the CVSS band (3.1) and, higher, by the policy class \"weakening of a protection that leaves another barrier standing\": medium.",17 "recommendation": "Parse in one bounded place; refuse a request the wallet cannot honour entirely; take a request only on the network and asset it names.",18 "evidence": "",19 "fingerprint": "7d522baef885",20 "reported": "2026-12-05",21 "owner": "integrator",22 "fixed": "2026-12-05",23 "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.",24 "found_by": "review of App/Sources for the new chains (2026-12-05)",25 "resolution_note": "The parser moved to the engine (`WalletScanParser`, Sources/QyvoraWallet/PaymentRequests.swift) with tests: 2 048 characters, 130 for an address, 120 visible characters for a note, 16 parameters; a `req-` parameter, a parameter given twice, an unreadable amount, a chain identifier that is not a number, a function call other than `transfer` and a note with invisible characters refuse the whole request with a sentence; only recipient, amount, token and note are taken. The form's scanner checks `Payment.matches` against its network and the token against its asset, and fills nothing in otherwise. A scanned request still only fills the visible form: nothing is prepared or signed without the Review button, the acknowledgements and the authentication.",26 "residual_risk": "A request for the right network and asset still chooses the recipient and the amount shown: reading them is the user's. A Solana Pay transaction request (a link to call) is refused as an address that is not one; nothing is fetched. The parser is exercised by unit tests and a small random-text loop, not by the fuzzing engine."27}28