{"id":"XE-16974","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"689","source_url":"https://github.com/xeprotocol/xe/issues/689","reporter_id":2920,"title":"[Low] No confirmation before irreversible money-out: CLI send, CLI lease, web wallet send","area":"sdk-docs-web","claimed_tier":null,"assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-17T08:11:51.785606+00:00","updated_at":"2026-11-22T23:26:11.894991+00:00","source_created_at":"2026-11-17T08:11:28+00:00","told_at":"2026-11-22T23:26:11.915001+00:00","status_changed_at":"2026-11-22T23:26:11.900756+00:00","url":"https://bounty.xe.network/XE-16974","body":"## Summary\n\nThree money-out paths submit immediately with no review step, breaking the codebase's own convention: CLI `send`, CLI `lease`, and the web wallet send. A fat-finger amount or destination is irreversible — and combined with the checksum-less address format (companion report filed in the same batch), a typo is silent permanent loss.\n\n## Root Cause\n\n- `cmdSend` (`cmd/xe/main.go:667-730`): destination from `args[0]`, default asset XCU, submits via `SubmitBlock` with no confirmation anywhere in the function.\n- `cmdLease` (`cmd/xe/main.go:1010-1099`): prints Cost (`:1045`) and the auto-picked Provider (`:1052`), then submits (`:1088`) with no confirmation — the user cannot even veto the auto-picked provider.\n- Web wallet `onSend` (`web/assets/wallet.js:805-870`): validates and submits via `buildAndSubmitSend` (`:845`) with no confirmation dialog.\n\nContrast within the same codebase: `cmdBurn` requires typing `'yes'` (`cmd/xe/main.go:900-905`, \"This cannot be undone\"). The trivial actions are guarded; money movement isn't.\n\n## Impact\n\nFat-finger amount/destination is irreversible. Combined with the checksum-less address format, a one-character destination typo silently locks funds forever (see the companion report for an executed PoC: 110,000 XCU locked in the demo).\n\n## Note on related reports\n\nSearched \"confirmation send\" and \"CLI send no confirmation\" — only #267 (flag-parser bypass of the *burn* confirmation, a different mechanism) and unrelated hits. The companion address-checksum report has a different root cause and fix; this report is about the missing confirmation step itself.\n\n## Suggested fix\n\nAdd a review + confirmation step (print destination, amount, asset; require explicit confirm) to `cmdSend`, `cmdLease`, and the web wallet send, matching the `cmdBurn` convention.\n","patch_refs":[],"thread":[{"id":18801,"source":"desk","source_ref":"reply:16478","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-16974 and says what differs; it is read like any other.","created_at":"2026-11-22T23:26:11.894991+00:00"}]}