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.
What happened
importAccountchecksmay_found(import.rs:422), as docreateGroupandprovisionGroup, butmigrateReceiveasks only that the caller is signed in and holdsgroup.configureby the arriving group's own records. Anyone who controls a did:plc and a server answeringmigrateExportandgetRepo(thefake_exportin tests/migration.rs shows how little it takes) can be taken in on a host whoseGROUP_FOUNDERSleaves them out. Then they publish the PLC operation themselves from therecommendedCredsanswer and callmigrateActivate. Config.md saysGROUP_FOUNDERSis "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/freshat 4636e6d, the code at: migration.rs:442 (migrate_receive), migration.rs:627 (the only check,group.configure). Paths are undercrates/group-host/srcunless they say otherwise. Severity: medium.What you expected
Refuse
migrateReceivewithNotAllowedunlesshost.may_found(&me), before anything is pulled. Add a test, and add the group move to theGROUP_FOUNDERSrow in config.md.Where
The host, as built from 4636e6d. Found while checking the docs against the code.