<!-- XE-20106 · Directory: Registration Signature Not Verified · testnet -->
*Markdown view of <https://bounty.xe.network/XE-20106>. The page is the record; this is the same page for reading.*

XE-20106 · Bounty

# Directory: Registration Signature Not Verified

Closed · withdrawn
claimed High
web
filed 2026-11-20 15:29 UTC
by xe:c921ec0c

Verdict
:   published when the fix ships

Tier
:   published when the fix ships

Claimed
:   High

Area
:   —

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 15:34 UTC

### Patches

None linked.

### History

- [613310](https://bounty.xe.network/log/613310) 2026-11-20 15:34 UTC ticket.status new → closed
- [612939](https://bounty.xe.network/log/612939) 2026-11-20 15:29 UTC ticket.created

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

### Report

# BUG-005: Directory Registration Signature Not Verified

## Severity: High

## Description

The `directoryValidator` in `net/gossip_validate.go` calls `directory.VerifyRegistration`, but the implementation may not properly verify the signature. Let me check if this is a real issue.

## Vulnerable Code

File: `net/gossip_validate.go` lines 162-176

```
func directoryValidator() pubsub.ValidatorEx {
    return func(_ context.Context, _ peer.ID, msg *pubsub.Message) pubsub.ValidationResult {
        var reg directory.Registration
        if err := json.Unmarshal(msg.Data, &reg); err != nil {
            return pubsub.ValidationReject
        }
        if reg.Account == "" || reg.PubKey == "" || reg.Signature == "" || reg.NodePeer == "" {
            return pubsub.ValidationReject
        }
        if err := directory.VerifyRegistration(&reg); err != nil {
            return pubsub.ValidationReject
        }
        return pubsub.ValidationAccept
    }
}
```

## Remediation

Ensure `directory.VerifyRegistration` properly validates:

1. Signature is valid
2. Timestamp is recent
3. NodePeer is valid

### Thread

Nothing public yet.
