Repository Public
1{2 "id": "QYV-APP-008",3 "title": "QYInternalMainnet is set in the only Info.plist, with no build-configuration guard",4 "severity": "low",5 "cvss_vector": "",6 "cvss_score": null,7 "cwe": "CWE-1188",8 "masvs": "MASVS-CODE-4",9 "area": "app",10 "location": "App/Resources/Info.plist:45",11 "tool": "manual-review",12 "rule": "",13 "status": "open",14 "fix_commit": "",15 "regression_test": "",16 "description": "Root cause: the key that makes the mainnet switch available (owner decision of 2026-12-04 for the internal TestFlight build) is in the single committed Info.plist; nothing distinguishes an internal build from a public one. Impact: a public build produced from this tree would offer mainnet with an unaudited engine (the user opt-in and the per-transaction limits still apply).",17 "recommendation": "Derive the key from a build setting (e.g. `QY_INTERNAL_MAINNET = NO` by default, `YES` only in an internal configuration or xcconfig) and make the release script refuse an App Store export when it is set. The release gate of the audit reports the value found in the built application.",18 "evidence": "<key>QYInternalMainnet</key>",19 "fingerprint": "d5cab6f0a118",20 "frameworks": [21 "wallet-audit:mainnet-gate"22 ],23 "reported": "2026-12-04",24 "owner": "integrator",25 "open_note": "Not changed. The key is the owner's standing decision of 2026-12-04 for the internal TestFlight build, and internal TestFlight and an App Store submission use the same archive: a build-configuration guard cannot tell them apart. Changing how the key reaches Info.plist was outside this pass (instruction: do not change the mainnet opt-in mechanism).",26 "proposed_disposition": "Owner decision. Proposed: derive the key from a build setting (`QY_INTERNAL_MAINNET`, NO by default in App/project.yml) that `App/Scripts/release.sh` sets to YES only for an explicit `internal` argument, and make the script refuse an upload when the setting is YES and the target is not internal TestFlight; the audit already reports the value found in the built application (QYV-BIN-001, QYV-STA-014).",27 "updated": "2026-12-04",28 "resolution_note": "Still open. Not changed. The key is the owner's standing decision of 2026-12-04 for the internal TestFlight build, and internal TestFlight and an App Store submission use the same archive: a build-configuration guard cannot tell them apart. Changing how the key reaches Info.plist was outside this pass (instruction: do not change the mainnet opt-in mechanism). Proposed disposition: Owner decision. Proposed: derive the key from a build setting (`QY_INTERNAL_MAINNET`, NO by default in App/project.yml) that `App/Scripts/release.sh` sets to YES only for an explicit `internal` argument, and make the script refuse an upload when the setting is YES and the target is not internal TestFlight; the audit already reports the value found in the built application (QYV-BIN-001, QYV-STA-014)."29}30