Performance certificates accepted without verifying proof-of-work or attestation roots
Report
Title: Performance certificates accepted without verifying proof-of-work or attestation roots
Suggested tier: Low (borderline Informational — team to decide)
XE address (reward destination): 9b663fdac108be34a3b715ef78a9f9bd878af6ef8142f388c6514918e6852dd7
Summary
perf.VerifyCertificateContent checks only the certificate hash, the provider
signature, score > 0, workload version, puzzle count, CPUHash format, and the
multiplier range [500, 10000]. It never calls the existing perf.VerifyWork,
and never checks StartAttestationRoot / EndAttestationRoot against real
timekeeper attestations. node/perf.go, ingestCertificate, applies no other
check to gossiped certificates. The certificate does not even carry the nonces
needed to re-verify the CPU chain — only the issuing node holds them (exposed
via GET /certificate/nonces/{hash}).
Impact
A provider can self-issue a certificate claiming any score, CPU hash, attestation roots, and any multiplier within [500, 10000], and every node will retain it and use it for lease pricing / provider display.
Impact is bounded: the multiplier is legitimately provider-controlled within the range, and the score is not used for ranking in the node code (logging/display only). Live certificates on the testnet confirm the fields in use (e.g. provider 26740934… score 0.0337, multiplier 1000; f90fa879… score 0.0425, multiplier 2500).
How this was verified
Code inspection (no executable PoC — this is a verification gap proven by reading the code; any node can verify it by inspection):
perf/certificate.go,VerifyCertificateContent— checks only hash, provider signature, score > 0, workload version, puzzle count, CPUHash format, multiplier range. Never callsperf.VerifyWork, never checks attestation roots.node/perf.go,ingestCertificate— the only check applied to gossiped certificates isVerifyCertificateContent.perf/benchmark.go,VerifyWork(seed, nonces, puzzles)exists but is never called on received certificates; the certificate carries no nonces for re-verification.
Suggested fix
Verify VerifyWork at ingest (fetch the nonces from the issuing node, or embed
the witness in the certificate), and/or verify the attestation roots against
the stored timekeeper attestations.
Thread
Update: I now have an executable PoC for this — a forged certificate is not just accepted by the verifier, it is ingested, retained, and served as the provider's current certificate, and gossiped network-wide.
Verification layer (perf). A self-issued cert with Score = 1e9, invented CPUHash (dedede…), garbage WorkProof (0000…), free-form attestation roots, Seed = "forged-seed-not-a-real-benchmark-seed", multiplier 10000 passes VerifyCertificateContent — the only check that matters. A second forgery with score 0.0001 passes identically: the verifier is indifferent to every performance claim. Tamper control: a cert built from real full-target benchmark work (8 puzzles, VerifyWork confirms the genuine CPU hash/final hash), then altered to a wrong CPUHash, wrong WorkProof, 1000x inflated score, and Puzzles=1024 over 8-puzzle work, is still accepted. VerifyWork(seed, nil nonces, 1024) fails as expected — the witness is absent by design. Expired certs also pass the content check — VerifyCertificate (which enforces expiry) rejects them, but VerifyCertificateContent does not, and ingest uses only the latter. Price impact of the multiplier (the only cert field that reaches money): LeaseCost(1vCPU,1GB,1GB,60s) = 259 @ mult 500, 517 @ 1000, 5170 @ 10000.
Ingest layer (node). (&Node{}).ingestCertificate(forged) returns true; the cert is retained and served as the provider's current certificate (GetCertificateByProvider) and via the ledger lookup path (certificateInfoByHash exposes multiplier 10000). Gossip propagation: net/gossip_validate.go certificateValidator also calls only VerifyCertificateContent, so a forged cert passes topic validation and is relayed network-wide, not just accepted locally. An expired forgery is also retained by hash (ingest applies no expiry check; only the display path currentValid() filters it). Ledger-side expiry checks (validateAndAddLease / renew / accept compare block/attestation time vs ExpiresAt) still gate actual lease use, so expired retention alone is hygiene. VerifyCertificate (with expiry) is never called anywhere in non-test code — only VerifyCertificateContent is used (ingest + gossip validator). loadPersistedCertificates loads persisted certs with no verification at all (local-disk trust only; not a finding).
Nonces cannot be fetched to forge a passing VerifyWork. node.CertificateNonces returns nonces only for the node's own local cert (api/vm.go GET /certificate/nonces/{hash}); for a gossiped cert it returns nil (proven in the ingest PoC). Negative control: genuine nonces for provider A fail VerifyWork under provider B's seed — the seed is bound to DeriveSeed(startMedian, providerPubkey), so cross-provider nonce replay is impossible by construction. The flaw is that nobody runs VerifyWork at all, not that VerifyWork is bypassable.
Impact, honestly bounded (same as #392): a provider can self-issue a certificate claiming any score/CPU hash/attestation roots/multiplier in range, and every node retains, relays, and displays it. Score deception can steer consumers toward a slow/expensive provider; the multiplier is provider-chosen by design, so the monetary effect is bounded by the legitimate range and by the consumer pinning a cert they (in principle) inspected. Score is used nowhere for ranking or pricing — only rendered on the provider page and logged.
Suggested fix: verify VerifyWork at ingest (fetch nonces from the issuing node, or embed the witness in the certificate), verify attestation roots against stored timekeeper attestations, and call VerifyCertificate (expiry) — not just VerifyCertificateContent — in ingestCertificate, the gossip validator, and loadPersistedCertificates. Bound Score and cross-check it against (EndMedian-StartMedian).
PoCs:
perf-cert-forgery_test.go— 3 tests, PASS 3/3 (2026-11-13):
(The real-work test takes ~42 s — full-target 8-puzzle benchmark on this VM.)go test ./perf -run 'TestForgedCertificateAccepted|TestWorkProofAndScoreAreNeverChecked|TestExpiredCertificatePassesContentCheck' -v -count=1perf-cert-ingest_test.go— 1 test, PASS (2026-11-13):go test -vet=off ./node -run TestForgedCertificateIngested -v -count=1
PoC files: perf-cert-forgery_test.go, perf-cert-ingest_test.go — available on request (the .go files cannot be uploaded to GitHub as attachments; I can paste their contents here if the team wants them). Repo: github.com/xeprotocol/xe, testnet-0005, commit 89a542e.
XE address (reward destination): 9b663fdac108be34a3b715ef78a9f9bd878af6ef8142f388c6514918e6852dd7
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-13380 and says what differs; it is read like any other.