You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cleanRemote: sanitize peer-controlled names (strip @ and control chars), not just length-cap #75
Part of #9 (display names). Surfaced by the PR #74 review (finding 1, LOW).
Where
core/src/host/hooks.jscleanRemote builds the local record for a friend's published Bot:
name: String(bot.name??remote.handle).slice(0,60)
It length-caps the display name but does not strip @, newlines, or control characters. homeName and owner are peer-controlled the same way.
Why it matters
After Fix: a remote Bot's @handle mention renders as the raw handle, not a Bot mention (#71) #74 the client rewrites known handles to these display names in user-facing UI (mention chips, sidebar previews via nameMentions), so a peer name that itself contains a handle-like @… token renders looking like a live mention of another Bot. The client side is now single-pass (displays the name verbatim, no rescan), but the confusing text still comes from the record.
Activity
Sanitize peer-controlled names in cleanRemote
Merge pull request #76 from Birfy/cursor/sanitize-cleanremote-names-cc89