XE-9933 · Bounty
Performance Certificate Forgery & Gossip Pollution: VerifyCertificateContent omits expiration, attestation roots, and work proof validation
Closed · duplicate
—
web
filed 2026-11-12 08:28 UTC
by xe:e4cd6974
Report
Vulnerability Summary
In perf/certificate.go:156-200, VerifyCertificateContent(c *Certificate) error is invoked by the P2P gossip layer (net/gossip_validate.go:170) and the certificate ingestion engine (node/perf.go:344) to validate performance benchmark certificates:
func VerifyCertificateContent(c *Certificate) error {
expected := HashCertificate(c)
if c.Hash != expected {
return fmt.Errorf("certificate hash mismatch")
}
...
if err := core.VerifyPayloadKey(c.ProviderPubKey, c.Provider); err != nil {
return fmt.Errorf("certificate key: %w", err)
}
if err := core.VerifyHexSignature(c.ProviderPubKey, c.Signature, hashBytes); err != nil {
return fmt.Errorf("certificate signature: %w", err)
}
if c.Score <= 0 {
return fmt.Errorf("certificate score must be positive, got %f", c.Score)
}
...
if c.PriceMultiplierMilli < PriceMultiplierMin || c.PriceMultiplierMilli > PriceMultiplierMax {
return fmt.Errorf("price_multiplier_milli %d out of bounds [%d, %d]",
c.PriceMultiplierMilli, PriceMultiplierMin, PriceMultiplierMax)
}
return nil
}
Critical verification omissions in VerifyCertificateContent:
- Expiration Ignored: The gossip validation layer
certificateValidator()callsVerifyCertificateContent(&cert)without callingVerifyCertificate(c, now). It never checksnow > c.ExpiresAt, nor does it enforcec.ExpiresAt - c.IssuedAt <= CertificateValidity. An attacker can broadcast certificates valid for decades or certificates that expired years ago. - Unverified Work Proof:
c.WorkProofis hashed into the certificate identifier but never validated againstc.Seed,c.Puzzles, or benchmark computation rules. - Attestation Roots Omitted:
c.StartAttestationRootandc.EndAttestationRoot(and median timekeeper timestamps) are never verified against timekeeper attestations on the statechain or lattice. - Arbitrary Score Spoofing: An attacker can generate an ephemeral keypair, set
Score = 999999999.0, sign the certificate hash, and gossip it network-wide.
Impact & Exploit Scenario
- Gossip Cache Poisoning & Eviction: Malicious actors can flood the
/xe/perf-cert/1.0.0gossipsub topic with forged certificates containing maximum scores and arbitrary provider addresses. - Honest Certificate Eviction: Nodes ingest these certificates via
node/perf.go:344and persist them intocore.CertificateStore(BadgerDB), forcibly evicting authentic provider certificates (n.certs().put(cert)). - Marketplace Distortion: Consumers querying
GET /providersor selecting computational providers via certificate score metrics are tricked into choosing phantom or spoofed providers with exaggerated performance ratings.
Proposed Remediation
- In
perf/certificate.go, enforce strict bounds insideVerifyCertificateContent:- Require
c.IssuedAt > 0andc.ExpiresAt > c.IssuedAt. - Enforce
c.ExpiresAt - c.IssuedAt <= CertificateValidity. - Validate that
c.StartAttestationRootandc.EndAttestationRootare non-empty 64-character hex strings and correspond to valid timekeeper Merkle roots.
- Require
- In
net/gossip_validate.go:170, enforce current time validation:if err := perf.VerifyCertificate(&cert, time.Now().UnixNano()); err != nil { return pubsub.ValidationReject }
Thread
Joseph Denneteam2026-11-20 00:33 UTCdesk
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-9933 and says what differs; it is read like any other.