SPB Git

Repository Public

QYV-APP-006.json 3.6 KB 34 lines json

1{2  "id": "QYV-APP-006",3  "title": "The recovery phrase can be captured by screenshot or screen recording, and is not masked by default",4  "severity": "medium",5  "cvss_vector": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N",6  "cvss_score": 4.7,7  "cwe": "CWE-200",8  "masvs": "MASVS-PLATFORM-3",9  "area": "app",10  "location": "Sources/QyvoraUI/SeedPhrase.swift:54",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "34332de",15  "regression_test": "QyvoraUITests.CaptureProtectionTests (theRecoveryWordsAreHiddenWheneverTheSceneIsCaptured, aRevealedPasswordGoesBackToDotsWhileCaptured, theScreenshotWarningSaysWhatToDo); static-checks 'screen capture: recording / screenshot awareness present' (QYV-STA-009 when absent)",16  "description": "Root cause: `SeedPhraseGrid` relies on `.privacySensitive` and on the privacy cover, which act in the app switcher and in redacted contexts only; `masked` (press and hold to reveal) is off by default; nothing observes `UIScreen.isCaptured` or the screenshot notification. Impact: a screenshot of the phrase lands in the photo library (and its cloud synchronisation); a screen recording or mirroring session captures it.",17  "recommendation": "Show the phrase masked by default; hide it while `UIScreen.main.isCaptured` (or the scene's capture state) is true; warn after `UIApplication.userDidTakeScreenshotNotification`; consider rendering the words inside a secure-entry container so that screenshots show a blank area.",18  "evidence": "masked: Bool = false",19  "fingerprint": "2c7ca4c93fdf",20  "frameworks": [21    "WSC-4.18",22    "WSC-4.19",23    "WSB-PHYS-001",24    "MASVS-PLATFORM-3",25    "MASTG-TEST-0290"26  ],27  "reported": "2026-12-04",28  "owner": "integrator",29  "fixed": "2026-12-04",30  "resolution_note": "Fixed: `SeedPhraseGrid` (every screen that shows the words: creation, reveal, private recovery sheet) replaces the words by dots while the scene is captured (`isSceneCaptured`: screen recording, AirPlay or cable mirroring) and says why; a password shown in clear by its eye button goes back to dots while captured; the three screens that show the phrase display a critical banner after `userDidTakeScreenshotNotification`. The phrase is shown only after an explicit action and a re-authentication, is hidden again when the screen or the application is left, and cannot be selected or copied. Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Capture and screenshot behaviour not exercised on a device. Residual risk: iOS gives an application no way to prevent a screenshot: the warning comes after the image was saved. The words are not masked by default once revealed (press-and-hold masking exists in the component and is not used: 24 words must be copied by hand). The share sheet of the private recovery sheet produces a document with the phrase by design, behind a re-authentication and an acknowledgement.",31  "verification": "package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release); application target compiled for iphoneos on M3U96a. Capture and screenshot behaviour not exercised on a device.",32  "residual_risk": "iOS gives an application no way to prevent a screenshot: the warning comes after the image was saved. The words are not masked by default once revealed (press-and-hold masking exists in the component and is not used: 24 words must be copied by hand). The share sheet of the private recovery sheet produces a document with the phrase by design, behind a re-authentication and an acknowledgement."33}34
Files main
Menu

Theme