Bounty
XE-0451 · Bounty

[Low-Medium] net: certificate gossip topic validator accepts long-expired certificates (VerifyCertificateContent skips the expiry check only VerifyCertificate performs)

Triaging claimed Minor xe#259 filed 2026-11-04 09:24 UTC by Fahri Raditya Arrifudin

Report

Suggested severity: Low-Medium

Duplicate check: swept the full live tracker. #6's certificate component is forgery (fake score/expiry on a self-signed cert). This report is the propagation layer: an honestly-signed but long-expired certificate is accepted by the gossip topic validator and served on request. Different defect, different function.

Reviewed at commit 02e9641b0ac64437f57e09d63301f88cce61a802.

Summary

The certificate gossip topic validator calls perf.VerifyCertificateContent (hash + signature + bounds) but not perf.VerifyCertificate, which is the only function that checks now > ExpiresAt. Long-expired certificates therefore propagate on the xe/certificates topic and are returned by the cert_request handler.

Evidence

  • net/gossip_validate.go:160-175: calls perf.VerifyCertificateContent.
  • perf/certificate.go:146-154: VerifyCertificate is the only function that checks expiry.
  • net/certsync.go:28-34: cert_request msg handler returns retained certs, including expired ones.

Observed (PoC against a copy of the repo):

cert expired 552h ago -> certificateValidator -> 0 (ValidationAccept)
perf.VerifyCertificate(now) on the same cert -> rejects (expired)

Impact

Expired certificates propagate network-wide and are served on request. Consumption-side filtering (certSet.currentValid) limits the blast radius, which is why this is Low-Medium rather than higher.

Fix direction: call perf.VerifyCertificate (with the current time) in the topic validator, and filter expired certs in the cert_request response.

Thread

Nothing public yet.