Skip to content

privacy: node-404 checks only the newest observer alias, so an older hidden case-variant can leak name/role/timestamps #286

Description

@dborup

Found in a post-merge review of #203 and confirmed by reading master 34f672c6.

cmd/server/node_not_found.go looks up the observer for a missing node with WHERE lower(id) = ? ORDER BY last_seen DESC LIMIT 1 (code). Observer ids arrive raw from the MQTT topic, so the same pubkey can exist as several rows that differ only in letter case. Only the newest row's name is passed to identityHidden. If an older case-variant carries the hidden name, the check misses it, and the 404 body can expose that observer's name, role and timestamps. The shared privacy check is correct; the gap is that this caller does not give it every name.

Expected

  • Collect all names for the pubkey (every case-variant observer row, plus the inactive node) and hide the identity if any of them is hidden.
  • Use the same rule when choosing which observer row to return.

Tests

Activity

  1. added
    bugSomething isn't working
    type:bugSomething broken
    on Oct 6, 2026
  2. added a commit that references this issue on Oct 6, 2026
  3. dborup commented on Oct 6, 2026

    @dborup
    OwnerAuthor

    Fixed by #294 (merged as 54e9c0f5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtype:bugSomething broken

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions