~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Anyone signed in can bring a group here, past `GROUP_FOUNDERS`

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

importAccount checks may_found (import.rs:422), as do createGroup and provisionGroup, but migrateReceive asks only that the caller is signed in and holds group.configure by the arriving group's own records. Anyone who controls a did:plc and a server answering migrateExport and getRepo (the fake_export in tests/migration.rs shows how little it takes) can be taken in on a host whose GROUP_FOUNDERS leaves them out. Then they publish the PLC operation themselves from the recommendedCreds answer and call migrateActivate. Config.md says GROUP_FOUNDERS is "who the host starts groups for ... by createGroup, provisionGroup or moving an account here". No test covers it: no test in tests/migration.rs sets founders.

How to see it

Read against docs/fresh at 4636e6d, the code at: migration.rs:442 (migrate_receive), migration.rs:627 (the only check, group.configure). Paths are under crates/group-host/src unless they say otherwise. Severity: medium.

What you expected

Refuse migrateReceive with NotAllowed unless host.may_found(&me), before anything is pulled. Add a test, and add the group move to the GROUP_FOUNDERS row in config.md.

Where

The host, as built from 4636e6d. Found while checking the docs against the code.