{"id":"XE-0451","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"259","source_url":"https://github.com/xeprotocol/xe/issues/259","reporter_id":190,"title":"[Low-Medium] net: certificate gossip topic validator accepts long-expired certificates (VerifyCertificateContent skips the expiry check only VerifyCertificate performs)","area":null,"claimed_tier":"minor","assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":null,"status":"triaging","closed_reason":null,"github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-04T09:26:12.858358+00:00","updated_at":"2026-11-05T04:18:08.287712+00:00","source_created_at":"2026-11-04T09:24:37+00:00","told_at":null,"status_changed_at":"2026-11-05T04:17:40.952940+00:00","url":"https://bounty.xe.network/XE-0451","body":"**Suggested severity: Low-Medium**\n\n**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.\n\nReviewed at commit `02e9641b0ac64437f57e09d63301f88cce61a802`.\n\n## Summary\nThe 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.\n\n## Evidence\n- `net/gossip_validate.go:160-175`: calls `perf.VerifyCertificateContent`.\n- `perf/certificate.go:146-154`: `VerifyCertificate` is the only function that checks expiry.\n- `net/certsync.go:28-34`: `cert_request` msg handler returns retained certs, including expired ones.\n\nObserved (PoC against a copy of the repo):\n```\ncert expired 552h ago -> certificateValidator -> 0 (ValidationAccept)\nperf.VerifyCertificate(now) on the same cert -> rejects (expired)\n```\n\n## Impact\nExpired 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.\n\n**Fix direction:** call `perf.VerifyCertificate` (with the current time) in the topic validator, and filter expired certs in the `cert_request` response.\n","patch_refs":[{"id":268,"repo":"xeprotocol/xe","kind":"pr","ref":"260","title":"fix(net,node): enforce expiry checks on gossip certificates and sync responses (fixes #259)","url":"https://github.com/xeprotocol/xe/pull/260","note":"","state":"open","author":"tipprb","added_by":"desk","created_at":"2026-11-04T09:40:30.491687+00:00"}],"thread":[]}