<!-- XE-0451 · [Low-Medium] net: certificate gossip topic validator accepts long-expired certificates (VerifyCertificateContent skips the expiry check only VerifyCertificate performs) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0451>. The page is the record; this is the same page for reading.*

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](https://github.com/xeprotocol/xe/issues/259)
filed 2026-11-04 09:24 UTC
by Fahri Raditya Arrifudin

Verdict
:   published when the fix ships

Tier
:   published when the fix ships

Claimed
:   Minor

Area
:   —

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-05 04:18 UTC

### Patches

- [xe#260](https://github.com/xeprotocol/xe/pull/260) open by tipprb
  fix(net,node): enforce expiry checks on gossip certificates and sync responses (fixes #259)

### History

- [5063](https://bounty.xe.network/log/5063) 2026-11-05 04:18 UTC github.labels
- [5050](https://bounty.xe.network/log/5050) 2026-11-05 04:17 UTC ticket.status accepted → triaging
- [5049](https://bounty.xe.network/log/5049) 2026-11-05 04:17 UTC ticket.status fixing → accepted
- [4237](https://bounty.xe.network/log/4237) 2026-11-04 09:40 UTC github.labels
- [4236](https://bounty.xe.network/log/4236) 2026-11-04 09:40 UTC ticket.status accepted → fixing
- [4235](https://bounty.xe.network/log/4235) 2026-11-04 09:40 UTC ticket.status triaging → accepted
- [4234](https://bounty.xe.network/log/4234) 2026-11-04 09:40 UTC ticket.status new → triaging
- [4233](https://bounty.xe.network/log/4233) 2026-11-04 09:40 UTC patch.linked
- [4199](https://bounty.xe.network/log/4199) 2026-11-04 09:26 UTC note.added
- [4198](https://bounty.xe.network/log/4198) 2026-11-04 09:26 UTC ticket.created

[Full history](https://bounty.xe.network/log?ref=XE-0451) · [JSON](https://bounty.xe.network/v1/tickets/XE-0451) · [markdown](https://bounty.xe.network/XE-0451.md)

### 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.
