GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names · Issue #1778 · developing-today/code

id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778

New issue
Copy link
New issue
Copy link
Closed
#3945
Closed
id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names#1778
#3945
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

Problem

The directory's name and description cleaners in pkgs/id promise "must not contain control characters", but the check is char::is_control — Unicode category Cc only. Category-Cf format characters (U+200B ZERO WIDTH SPACE, U+202E RIGHT-TO-LEFT OVERRIDE, U+2066/U+2069 bidi isolates, U+2060 WORD JOINER, U+FEFF, U+00AD SOFT HYPHEN) pass both cleaners, so an account name, a group name, or a group description can carry invisible or text-reordering characters into every view that displays it. This is the same Cf class as #1674, but a different module, different functions, and a different fix: #1674 is scoped to petname.rs (normalize_name/fold/skeleton), and #1770 is scoped to invite.rs, which has no check at all. Neither covers the directory — the layer that creates the alleged names the petname layer then has to defend viewers against.

Evidence (verified this run on main 35726e8e, src/directory.rs sha256 9ef8669c…, identical on sandbox and laptop clones)

  • clean_name (pkgs/id/src/directory.rs:1846-1859): trim, non-empty, ≤64 chars, then !name.chars().any(char::is_control) with error text "name must not contain control characters". Rust's char::is_control is general category Cc only.
  • clean_description (directory.rs:1861-1875): same check (allowing \n), same gap.
  • Call sites: account creation (insert_account, directory.rs:1463, reached from sign_up/sign_up_keyed apply paths), group creation (directory.rs:1588), group update — both the entry point (update_group, directory.rs:862) and the journal apply path (directory.rs:1611). Because the journal apply path re-cleans, a fix here covers replayed entries too.
  • Display surfaces: directory_view.rs:1609 feeds account.name as the alleged name into petname::labels (the viewer-facing contact labels); directory_view.rs:1666,1679 render group and member names; web/explore.rs:399 renders group.description through html_escape, which neutralises markup but not bidi/format characters.
  • Probe (faithful Python mirror of clean_name/clean_description — Rust is_control ≡ category Cc — run on the laptop; probe + log at ~/git/fleet/probe-2026-10-28-laneB-dircf/):
    • Control: Alice<TAB>Admin name → REFUSED (the Cc guard works); LF in a description → accepted, by design.
    • BUG: Alice+U+200B → ACCEPTED; Alice+U+202E+Admin → ACCEPTED; Alice+U+2066+Admin+U+2069 → ACCEPTED; Owners+U+2060 → ACCEPTED; U+FEFF+Alice → ACCEPTED; Al+U+00AD+ice → ACCEPTED; description safe text+U+202E+evil → ACCEPTED. All are category Cf.
    • Plain Alice Smith → accepted, unchanged.

Why it matters

Directory names are self-asserted and shown to other people: account names become the "alleged" half of every contact label, and group names/descriptions are rendered in the directory and web views. An invisible-character account or group name renders identically to a legitimate one (the exact spoof shape the petname module exists to prevent, created here at the source), and a U+202E override in a name or description can reorder the visible text around it. The cleaners' own error messages claim a guarantee they do not deliver.

Acceptance criteria

  • clean_name refuses (or strips, with the choice pinned and documented) Unicode format characters (category Cf) — at minimum U+200B, U+202A–U+202E, U+2060, U+2066–U+2069, U+FEFF, U+00AD — so the "must not contain control characters" promise holds; clean_description gets the same rule (keeping its \n allowance).
  • Tests in directory.rs cover at least: ZWSP in an account/group name, RLO in a name, RLO in a description, and a plain name/description with ordinary spaces and punctuation still accepted.
  • Existing directory tests still pass (laptop or CI).
  • Triage records the layering against id(petname): format characters (Cf) bypass both petname guards — U+200B makes a spoof of another contact's name, U+202E passes the 'no control characters' rule #1674 (petname-side) and id(invite): Invite::new has no control-character check at all — a crafted invite name carries newline/tab/CR into the /invite page and the prefilled petname #1770 (invite-side): whether one shared name-cleaning helper should own the Cf rule for all three, or each module keeps its own check.

Dedup

Searched open + recently closed issues for Cf / format character / U+200B / clean_name terms: only #1674 (petname.rs-scoped), #1770 (invite.rs, no Cc check at all), and closed lab-ops-hub UTS-46 items (#652/#516, different package). No filing covers directory.rs clean_name/clean_description.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-720

  2. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 28, 2026
  3. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b)
    • Session / ID: new-issue-creator-code-b cron run 2026-10-28 13:50 CDT
    • Found via: filed this run
    • Task: Triage the Cf (format character) bypass in directory clean_name/clean_description (directory.rs:1846-1875) — U+200B/U+202E/U+2066/U+2060/U+FEFF/U+00AD accepted for account/group names and group descriptions; pin refuse-vs-strip and layering vs id(petname): format characters (Cf) bypass both petname guards — U+200B makes a spoof of another contact's name, U+202E passes the 'no control characters' rule #1674/id(invite): Invite::new has no control-character check at all — a crafted invite name carries newline/tab/CR into the /invite page and the prefilled petname #1770.
    • Expectation: effort/xs — done when clean_name/clean_description refuse or strip Cf with tests, per the issue's acceptance criteria.
    • Links: queue packet packet-1778.json (repo-health-code-pilot)
  4. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  6. 165 remaining items

    Load more actions
  7. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  8. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked — Drew-owned PR boundary

    • Agent: OpenChamber scheduled lane (repo-worker-code)
    • Session / ID: OpenCode session ses_e5e6495a3a4ffeuo6k3NS8K6x5; queue task 4889
    • Fresh evidence: id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778 is OPEN and assigned to Drew; PR fix(id): reject Cf in directory names and descriptions #3945 is OPEN and Drew-authored on the task branch.
    • Disposition: parked for 30 minutes. PR fix(id): reject Cf in directory names and descriptions #3945, its branch/worktree, CI, and review were not inspected or touched.
    • Resume condition: explicit ownership release or rerouting; revalidate before resuming.
    • Queue: task 4889 is parked until 2026-11-02T09:26:36Z.
    • Links: id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778 · fix(id): reject Cf in directory names and descriptions #3945
  9. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1 — parked (lane F, task 4889)

    • Task: task 4889 (small_fix, issue id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778)
    • Outcome: parked 30m — Drew-owned hard stop, metadata only.
    • Evidence (fresh 2026-11-02T09:35Z): issue id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778 OPEN, assigned dezren39; canonical PR fix(id): reject Cf in directory names and descriptions #3945 OPEN, non-draft, authored by dezren39, head c1d3d68 unchanged. No PR contents, branch, worktree, CI, or review inspected or modified.
    • Resume: PR fix(id): reject Cf in directory names and descriptions #3945 closes, ownership changes, or explicit rerouting; revalidate first.
  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 2, 2026
  11. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up (ownership correction + CI disposition)

    • Agent: Lane C queue worker shift (repo-worker-code) · queue task 4889
    • Correction: The earlier Drew-owned park was a false positive of the author+assignee heuristic. PR fix(id): reject Cf in directory names and descriptions #3945 is fleet work: branch queue/4889-1778-id-directory-cf, body "Fixes id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778", worktree ~/git/fleet/4889. No held/user/owned/do-not-merge/do-not-auto-edit label on id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778 or PR fix(id): reject Cf in directory names and descriptions #3945 (verified fresh).
    • CI disposition: Run 41343718780 on head 85877d4 completed FAILURE, but it is a poisoned run: all 20 failed jobs fail in infra — source-snapshot guard "could not derive the flake source copy path" (id(ci): flake-check builds can receive a corrupted source copy — run 40617526037 failed 7 checks with parse errors absent from the git tree #1569), Magic Nix Cache HTTP 418, GitHub API ResourceExhausted rate limit — including biome/prettier/web checks on a Rust-only change, and rustfmt-check failing to even build its derivation. Suspect the run, not the PR.
    • Change verification: PR body laptop tests — cargo test -p id --lib --no-default-features --features world directory::tests 43 passed; invite Cf test passed; rustfmt + diff-check passed. Codex review on the fix commit c1d3d68: no findings, none unresolved. Head 85877d4 is only a clean main-merge (no directory.rs overlap).
    • Next: Merge PR fix(id): reject Cf in directory names and descriptions #3945 under standing merge authority (verified change, infra-only CI failure), verify id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778 closes, complete task 4889.
  12. dezren39
    added a commit that references this issue on Nov 2, 2026

    fix(id): reject Cf in directory names and descriptions (#3945)

    de83550
  13. dezren39
    closed this as completedin #3945on Nov 2, 2026
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  15. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: Lane C queue worker shift (repo-worker-code) · queue task 4889
    • Outcome: PR fix(id): reject Cf in directory names and descriptions #3945 squash-merged as de83550; id(directory): format characters (Cf) bypass clean_name/clean_description — U+202E and U+200B pass the 'no control characters' rule for account and group names #1778 CLOSED by the PR's Fixes keyword (verified fresh).
    • Verification: Laptop directory::tests 43 passed + invite Cf test passed (PR body); Codex no findings on the fix commit; CI run 41343718780 was infra-poisoned (see pickup note) and did not block the merge under standing authority.
    • Labels: queue/status/work labels removed at terminal state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.