putRole.json limits name to 64 graphemes (640 bytes) and description to 300 (3000 bytes). createInvite.json limits message to 300 graphemes. The host has no generic lexicon validation, and these handlers check nothing, so a 10 kB role name or invite message is stored and served. Only requestJoin's message is checked (group_join.rs:86). displayName (64 graphemes / 640 bytes), description (300 / 3000), rule title (100) and text (2000), and space name (64) are all stored at any length. A displayName of 10,000 characters is written to the profile as given. A consumer that validates the record against its lexicon then rejects it. The host does enforce such a limit elsewhere (group_join.rs:85-86), so here it is missing rather than a policy.
How to see it
Read against docs/fresh at 4636e6d, the code at: group_members.rs:212, 251; group_invites.rs:196; group_config.rs update_profile (:177-204), put_rule (:288-300); group.rs new_group/shape; group_spaces.rs:136-138 (name), :215-217. Paths are under crates/group-host/src unless they say otherwise. Severity: low.
What you expected
Check them as requestJoin does, with a small shared helper. check each field's bytes and graphemes against its lexicon limits in the handlers, and refuse with InvalidRequest as group_join.rs does.
Where
The host, as built from 4636e6d. Found while checking the docs against the code.
What happened
putRole.jsonlimitsnameto 64 graphemes (640 bytes) anddescriptionto 300 (3000 bytes).createInvite.jsonlimitsmessageto 300 graphemes. The host has no generic lexicon validation, and these handlers check nothing, so a 10 kB role name or invite message is stored and served. OnlyrequestJoin's message is checked (group_join.rs:86). displayName (64 graphemes / 640 bytes), description (300 / 3000), rule title (100) and text (2000), and space name (64) are all stored at any length. AdisplayNameof 10,000 characters is written to the profile as given. A consumer that validates the record against its lexicon then rejects it. The host does enforce such a limit elsewhere (group_join.rs:85-86), so here it is missing rather than a policy.How to see it
Read against
docs/freshat 4636e6d, the code at: group_members.rs:212, 251; group_invites.rs:196; group_config.rsupdate_profile(:177-204),put_rule(:288-300); group.rsnew_group/shape; group_spaces.rs:136-138 (name), :215-217. Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
Check them as
requestJoindoes, with a small shared helper. check each field's bytes and graphemes against its lexicon limits in the handlers, and refuse with InvalidRequest as group_join.rs does.Where
The host, as built from 4636e6d. Found while checking the docs against the code.