fix: harden the plugin runtime after the 2.9.0 security review

This commit is contained in:
LukeGus committed 2026-09-25 08:48:54 -05:00
1 parent 2961297989
commit c6a44b7ff3
69 files changed
+4613 -312

No files matched your search

@@ -128,6 +128,10 @@ export function createSessionGuests(deps: SharingDeps): SessionGuestsV1 {
return {
async resolve({ shareToken, roomGuestToken, clientIp }) {
if (shareToken) {
// Guessing link tokens is limited the same way room tokens are.
if (guestLimiter.isLimited(clientIp)) {
return { ok: false, reason: "Too many requests" };
}
const share = await shares.findByLinkToken(shareToken);
if (!share || share.shareType !== "link") {
return { ok: false, reason: "Invalid or expired share link" };