<!-- XE-13245 · [Severe] Provider mints XE for a VM that never existed — settlement has no proof-of-service, stake is zero · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13245>. The page is the record; this is the same page for reading.*

XE-13245 · Bounty

# \[Severe\] Provider mints XE for a VM that never existed — settlement has no proof-of-service, stake is zero

Closed · duplicate
—claimed Severe
[xe#374](https://github.com/xeprotocol/xe/issues/374)
filed 2026-11-11 11:59 UTC
by agung marley

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Severe

Area
:   Leasing / ledger

Duplicate of
:   [XE-0012](https://bounty.xe.network/XE-0012) accepted

Tracked
:   internally

Updated
:   2026-11-20 00:06 UTC

Told
:   2026-11-20 00:05 UTC

### Patches

- [xe#878](https://github.com/xeprotocol/xe/pull/878) open by tipprb
  fix(xe): severe--provider-mints-xe-for (fixes #374)

### History

- [543781](https://bounty.xe.network/log/543781) 2026-11-20 00:05 UTC github.state\_pushed
- [543780](https://bounty.xe.network/log/543780) 2026-11-20 00:05 UTC github.labels
- [543758](https://bounty.xe.network/log/543758) 2026-11-20 00:05 UTC reply.mirrored
- [543476](https://bounty.xe.network/log/543476) 2026-11-20 00:04 UTC proposal.adopted
- [543475](https://bounty.xe.network/log/543475) 2026-11-20 00:04 UTC reply.sent
- [543474](https://bounty.xe.network/log/543474) 2026-11-20 00:04 UTC ticket.status new → closed
- [541989](https://bounty.xe.network/log/541989) 2026-11-20 00:04 UTC proposal.adopted
- [541988](https://bounty.xe.network/log/541988) 2026-11-20 00:04 UTC ticket.facts area
- [541987](https://bounty.xe.network/log/541987) 2026-11-20 00:04 UTC proposal.adopted
- [541986](https://bounty.xe.network/log/541986) 2026-11-20 00:04 UTC ticket.facts
- [541985](https://bounty.xe.network/log/541985) 2026-11-20 00:04 UTC proposal.adopted
- [541984](https://bounty.xe.network/log/541984) 2026-11-20 00:04 UTC ticket.facts

[Full history](https://bounty.xe.network/log?ref=XE-13245) · [JSON](https://bounty.xe.network/v1/tickets/XE-13245) · [markdown](https://bounty.xe.network/XE-13245.md)

### Report

## Summary

`lease_settle` — the protocol's only post-genesis XE creation — is purely time-based. A provider collects full emission while delivering no compute, and the victim consumer's XUSD escrow is burned anyway. The settled lease even *improves* the provider's on-chain reputation (`leases_settled_as_provider` \+1, `unfulfilled` 0).

## Evidence

`validateAndAddLeaseSettle` (`core/ledger.go:2117`) gates settlement only on: lease exists, not already settled, provider matches, state `LeaseAccepted`, timekeeper attestations, `settleTime >= expiry` and `<= expiry + LeaseSettleGrace`, `b.Amount == LeaseTotalEmission(lease)`. **No check that a VM was provisioned, running, or ever reachable** — attestations only prove wall-clock time (`core/attestation.go:13`, payload \= `sha256(leaseHash || timestamp)`). `LeaseStakeDivisor = 0` (`core/ledger.go:116`) → stake is always 0; accept enforces stake 0, settle refunds 0\. The stock node itself can be a fake provider: `XE_VM_MOCK=1` → `vm.NewMockManager()` (`node/node.go:522-524`); `Provision()` only creates a temp dir and returns `Status: "running"`.

## Reproduction (confirmed 3 independent ways, full PoC: `poc-f4.md`)

All runs use the exact testnet-0005 code (commit `89a542e`), on a local 2-node devnet with the same 5 s minimum lease / 120 s grace as testnet-0005.

**Run A — stock node, `XE_VM_MOCK=1`, full auto-flow:** lease `e40f924a…` (1 vCPU / 1 GB / 60 s / 0.5×, cost 259 mXUSD, stake 0\) auto-accepted in \~5 s. `GET /vms` showed `status: running` with mock credentials — but the mock dir was **empty** and `ps` showed **no QEMU/lima processes ever**. After a real 60 s wait, auto-settle fired: settle block `bf07de81…`, provider XE **5,000,000 → 5,000,518 mXE (\+518 \= ⌈259×2000/1000⌉)**, consumer XUSD stuck at 999,741 (escrow burned, nothing received). Reputation: settled-as-provider 0→1, unfulfilled 0\.

**Run B — hand-built blocks, no VM backend at all:** provider node stopped; hand-built `lease_accept` (`15ffda16…`) and `lease_settle` (`9980c973…`, \+518 mXE → 5,001,036) POSTed to the plain consumer node only. Lease 2 settled. Settlement is just a signed block \+ two wall-clock attestations.

**Run C — bare-ledger harness** (imports only `core`\+`store`): settle accepted, \+518 mXE. Controls: early settle correctly rejected (`lease not yet expired`); double settle correctly rejected (`lease already settled`).

## Venue caveat (stated honestly)

This was **not** demonstrated on public testnet-0005 itself: the faucet rejects this VM's hosting-network IP, and XUSD is operator-minted only — the faucet dispenses XE only (it holds 0 XUSD), so an independent tester cannot obtain the XUSD a lease costs. A public-testnet repeat needs the XE team to mint test XUSD to a throwaway account; the reproduction steps in `poc-f4.md` §5 are written so that repeat is a straight rerun. The devnet used identical timing (5 s min lease, 120 s grace) and the identical code.

## Fix direction

Require proof-of-service at settle (e.g. provider attestation of VM liveness/SSH reachability, or consumer-signed delivery receipt); restore a non-zero provider stake so fake providers have collateral at risk; make mock mode refuse to accept/settle leases (or mark mock-provisioned leases as ineligible for emission).

My XE address for any reward: 5422b32c07cf2b2ca53b00c2073be5a895dae3fdf13645c05ebdd1c08864cf8f

— @agngmarley

[poc-f4.md](https://github.com/user-attachments/files/34686355/poc-f4.md)

### Thread

**Joseph Denne**team2026-11-20 00:05 UTCgithub

Thanks. This is the same finding as https://bounty.xe.network/XE-0012, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-13245 and says what differs; it is read like any other.
