SPB Git

Repository Public

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

1{2  "id": "QYV-SVC-024",3  "title": "Solana memos could carry bidirectional and zero-width characters, and a foreign memo was printed with its line breaks in a review",4  "severity": "low",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-451",8  "masvs": "MASVS-CODE-4",9  "area": "service",10  "location": "Sources/QyvoraSolana/SolanaInstructions.swift:70",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "04bb687",15  "regression_test": "QyvoraSolanaTests.SolanaAuditRegressionTests/memosCannotDisguiseTheReview; fuzz targets solana-instructions, solana-review (every summary must be displayable)",16  "description": "Root cause: `SolanaMemoProgram.isAcceptable` refused only C0/C1 control characters, so the planner accepted U+202E (right-to-left override), the isolates, zero-width characters and the line separators; and `SolanaDecodedInstruction.summary` printed the memo of a transaction that was not built here as it was. The summary of a cold review is a list of lines: a memo containing a line break and the text of a warning, or an override that reorders an address, could make the review of a foreign transaction read differently from what it does. Impact: display spoofing on the review of a transaction the user is asked to sign on a cold device; the instructions themselves are still listed.",17  "recommendation": "Fixed: `isDisplayable` refuses control, format (bidirectional, zero-width, byte order mark), line and paragraph separator, private-use, surrogate and unassigned characters; the planner refuses such a memo (`invalidMemo`) and the summary of a decoded memo writes each of them as `\\u{...}`. The fuzz harnesses check that no summary contains such a character.",18  "evidence": "",19  "fingerprint": "72cef9aad25d",20  "reported": "2026-12-05",21  "owner": "multichain-solana"22}23
Files main
Menu

Theme