Commit f0090c0
security: gate lxma://test-* deep-link handlers behind #if DEBUG
The test-only URL handlers (test-call, test-send, test-identity-switch,
test-restart, test-ble-*, etc.) were registered unconditionally in
onOpenURL. In a release build that ships remote-control backdoors: a
crafted lxma://test-call?to=HEX places a call, test-send sends a message
from the user's identity, and test-identity-switch wipes the active
identity — all from just opening a URL. Wrap the whole test block in
#if DEBUG; the production lxma:// fall-through (pendingDeepLink) stays
outside the guard, and the interop harness runs DEBUG builds so it's
unaffected. (Smoke tests use a separate lxma-test:// surface.)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e1de2ab commit f0090c0
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| |||
345 | 354 | | |
346 | 355 | | |
347 | 356 | | |
| 357 | + | |
348 | 358 | | |
349 | 359 | | |
350 | 360 | | |
| |||
0 commit comments