html-embed: conservative collab strip removes admin's embed on a non-admin co-editor's store #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in security review of PR #16 (merged in
7a03321d).Severity: low (data-loss / availability; documented, intentional).
The collab persist strip keys to the storing connection's user. If a non-admin co-editor stores while an admin's legitimately-authored embed exists and their store does not re-add it, the embed is stripped and the admin must re-add it.
apps/server/src/collaboration/extensions/persistence.extension.ts(~L154-164).Possible refinement: diff against the previously persisted admin-authored embeds so an admin's embed survives a non-admin's unrelated store.