SPB Git

Repository Public

QYV-APP-011.json 2.6 KB 30 lines json

1{2  "id": "QYV-APP-011",3  "title": "Trivial PINs are accepted",4  "severity": "medium",5  "cvss_vector": "CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",6  "cvss_score": 5.7,7  "cwe": "CWE-521",8  "masvs": "MASVS-AUTH-2",9  "area": "wallet",10  "location": "Sources/QyvoraVault/Vault.swift:455",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "14514f6",15  "regression_test": "QyvoraWalletTests.CredentialPolicyTests (trivialPINsAreNamedByTheRuleThatCatchesThem, theServiceRefusesToEnableATrivialPIN)",16  "description": "Root cause: `enablePIN` checks the length only (six characters or more); `000000` or `123456` are accepted. Impact: the three free attempts before the first delay are enough to try the most common PINs for someone holding the unlocked-by-passcode device. The PIN is bound to a device secret and the counter lives in the Keychain, which limits the attack to the device itself.",17  "recommendation": "Refuse repeated and sequential PINs and the most common ones in `enablePIN` (the `PasswordQuality` detectors already exist), with a typed error.",18  "evidence": "guard pin.count >= PINPolicy.minimumPINLength",19  "fingerprint": "e28132388dac",20  "frameworks": [21    "WSB-PHYS-002~Mobile"22  ],23  "reported": "2026-12-04",24  "owner": "integrator",25  "fixed": "2026-12-04",26  "resolution_note": "Fixed: `WalletService.pinRejection` (the rule of `enablePIN`, also used by the two PIN set-up screens) refuses: one digit repeated, a constant step between digits wrapping at ten (123456, 987654, 246802, 890123), a repeated group of one to three digits, three pairs, a palindrome, only two different digits, a year from 1900 to 2099 at the start or at the end (birth years and dates), and a list of 52 PINs that head the published frequency lists (keypad lines and diagonals, 135790, 314159...). Between 4 % and 10 % of the 1 000 000 PINs are refused (counted by the test). Verification: package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release). Residual risk: A PIN is still six digits: 10^6 values less the refused ones, behind the escalating delays (QYV-SVC-010). `Vault.enablePIN` itself checks the length only; the rule is in the wallet service, its only caller in the application.",27  "verification": "package tests on M4M64c (Swift 6.3.3, release) and on the laptop (Swift 6.4, release).",28  "residual_risk": "A PIN is still six digits: 10^6 values less the refused ones, behind the escalating delays (QYV-SVC-010). `Vault.enablePIN` itself checks the length only; the rule is in the wallet service, its only caller in the application."29}30
Files main
Menu

Theme